@ConfigurationProperties(value="oraclecloud.vault") public class OracleCloudVaultClientConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OracleCloudVaultClientConfiguration.OracleCloudVault
An Oracle Cloud Vault
|
static class |
OracleCloudVaultClientConfiguration.OracleCloudVaultClientDiscoveryConfiguration
The Discovery Configuration class for Oracle Cloud Vault.
|
Constructor and Description |
---|
OracleCloudVaultClientConfiguration() |
Modifier and Type | Method and Description |
---|---|
OracleCloudVaultClientConfiguration.OracleCloudVaultClientDiscoveryConfiguration |
getDiscoveryConfiguration() |
String |
getPathToConfig()
If you are not using Instance Principal auth then you must pass the path to a valid OCI config file.
|
String |
getProfile()
Which profile in the config file should be used? Default value .
|
String |
getRegion()
The OCI region Ex: 'US-PHOENIX-1'.
|
List<OracleCloudVaultClientConfiguration.OracleCloudVault> |
getVaults()
A list of
OracleCloudVaultClientConfiguration.OracleCloudVault objects that contain secrets that will be retrieved, decoded and set into your application as config variables. |
boolean |
isUseInstancePrincipal()
Whether or not the configuration client should use https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm[Instance Principal Authentication] to interact with the SDK.
|
void |
setPathToConfig(String pathToConfig)
If you are not using Instance Principal auth then you must pass the path to a valid OCI config file.
|
void |
setProfile(String profile)
Which profile in the config file should be used? Default value .
|
void |
setRegion(String region)
The OCI region Ex: 'US-PHOENIX-1'.
|
void |
setUseInstancePrincipal(boolean useInstancePrincipal)
Whether or not the configuration client should use https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm[Instance Principal Authentication] to interact with the SDK.
|
void |
setVaults(List<OracleCloudVaultClientConfiguration.OracleCloudVault> vaults)
A list of
OracleCloudVaultClientConfiguration.OracleCloudVault objects that contain secrets that will be retrieved, decoded and set into your application as config variables. |
public static final String PREFIX
public OracleCloudVaultClientConfiguration.OracleCloudVaultClientDiscoveryConfiguration getDiscoveryConfiguration()
public List<OracleCloudVaultClientConfiguration.OracleCloudVault> getVaults()
OracleCloudVaultClientConfiguration.OracleCloudVault
objects that contain secrets that will be retrieved, decoded and set into your application as config variables.public void setVaults(List<OracleCloudVaultClientConfiguration.OracleCloudVault> vaults)
OracleCloudVaultClientConfiguration.OracleCloudVault
objects that contain secrets that will be retrieved, decoded and set into your application as config variables.vaults
- A list of Vaultspublic boolean isUseInstancePrincipal()
public void setUseInstancePrincipal(boolean useInstancePrincipal)
useInstancePrincipal
- Should we use instance principal authenticationpublic String getPathToConfig()
public void setPathToConfig(String pathToConfig)
pathToConfig
- The path to the OCI config filepublic String getProfile()
public void setProfile(String profile)
profile
- Which profile in the OCI config file to use (default: DEFAULT)public String getRegion()
public void setRegion(String region)
region
- Which region in the Oracle Cloud should the client work in?