public class OracleCloudCredentials extends Object
.oci/config file or from the environment variables.| Constructor and Description |
|---|
OracleCloudCredentials() |
| Modifier and Type | Method and Description |
|---|---|
static File |
getConfigFile()
Returns the location of the configuration file, either the value of the OCI_CLI_CONFIG_FILE environment variable
or
~/.oci/config. |
static OracleCloudCredentials |
getDefault()
Returns the default Oracle Cloud configuration.
|
static String |
getDefaultProfile()
Returns the name of the default profile, either the value of the OCI_CLI_PROFILE environment variable or "DEFAULT".
|
String |
getFingerprint() |
String |
getKeyfile() |
String |
getKeyId() |
String |
getPassphrase() |
String |
getRegion() |
String |
getTenancy() |
String |
getUser() |
void |
load(File file,
String profile)
Loads the credentials from the specified file.
|
void |
loadFromEnvironment()
Loads the credentials from the environment variables.
|
void |
setPassphrase(String passphrase) |
public OracleCloudCredentials()
public static File getConfigFile()
~/.oci/config.public static OracleCloudCredentials getDefault() throws IOException
IOExceptionpublic static String getDefaultProfile()
public String getFingerprint()
public String getKeyfile()
public String getPassphrase()
public String getTenancy()
public void load(File file, String profile) throws IOException
file - the configuration file (null for the default location)profile - the name of the profile (null for the default profile)IOExceptionpublic void loadFromEnvironment()
public void setPassphrase(String passphrase)
Copyright © 2012–2025. All rights reserved.