Last active
March 12, 2020 02:13
-
-
Save taewanme/2dbc031c56ba924fbf36b110df26689d to your computer and use it in GitHub Desktop.
sample.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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