Skip to content

Instantly share code, notes, and snippets.

@taewanme
Last active March 12, 2020 02:13
Show Gist options
  • Save taewanme/2dbc031c56ba924fbf36b110df26689d to your computer and use it in GitHub Desktop.
Save taewanme/2dbc031c56ba924fbf36b110df26689d to your computer and use it in GitHub Desktop.
sample.java
import com.oracle.bmc.auth.AuthenticationDetailsProvider;
import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider;
import com.oracle.bmc.objectstorage.ObjectStorage;
import com.oracle.bmc.objectstorage.ObjectStorageClient;
String configurationFilePath = "~/.oci/config";
String profile = "DEFAULT";
AuthenticationDetailsProvider provider =
new ConfigFileAuthenticationDetailsProvider(configurationFilePath, profile);
ObjectStorage client = new ObjectStorageClient(provider);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment