Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Last active February 12, 2019 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/8b4b1cb945135139bad8d3fbf81eaa7e to your computer and use it in GitHub Desktop.
Save abhirockzz/8b4b1cb945135139bad8d3fbf81eaa7e to your computer and use it in GitHub Desktop.
AuthenticationDetailsProvider provider = SimpleAuthenticationDetailsProvider
.builder()
.tenantId(System.getenv().get("TENANCY"))
.userId(System.getenv().get("USER"))
.fingerprint(System.getenv().get("FINGERPRINT"))
.passPhrase(System.getenv().get("PASSPHRASE"))
.privateKeySupplier(privateKeySupplier)
.build();
objStoreClient = new ObjectStorageClient(provider);
objStoreClient.setRegion(System.getenv().get("REGION"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment