Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created July 25, 2019 05:41
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/0f59880634d08eb20910f54a513d93a0 to your computer and use it in GitHub Desktop.
Save abhirockzz/0f59880634d08eb20910f54a513d93a0 to your computer and use it in GitHub Desktop.
private ObjectStorage objStoreClient = null;
final ResourcePrincipalAuthenticationDetailsProvider provider
= ResourcePrincipalAuthenticationDetailsProvider.builder().build();
public ObjectStoreListFunction() {
try {
objStoreClient = new ObjectStorageClient(provider);
} catch (Throwable ex) {
System.err.println("Failed to instantiate ObjectStorage client - " + ex.getMessage());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment