Class OciConfig.BuilderBase<BUILDER extends OciConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OciConfig>  
- Type Parameters:
- BUILDER- type of the builder extending this abstract builder
- PROTOTYPE- type of the prototype interface
- Direct Known Subclasses:
- OciConfig.Builder
- Enclosing interface:
- OciConfig
OciConfig.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddAuthStrategies(List<? extends String> authStrategies) The list of authentication strategies that will be attempted byAbstractAuthenticationDetailsProviderwhen one is called for.The OCI authentication fingerprint.authFingerprint(String authFingerprint) The OCI authentication fingerprint.The OCI authentication key file.authKeyFile(String authKeyFile) The OCI authentication key file.Optional<char[]>The OCI authentication passphrase.authPassphrase(char[] authPassphrase) The OCI authentication passphrase.authPassphrase(String authPassphrase) The OCI authentication passphrase.Optional<char[]>The OCI authentication private key.authPrivateKey(char[] authPrivateKey) The OCI authentication private key.authPrivateKey(String authPrivateKey) The OCI authentication private key.The OCI authentication key file path.authPrivateKeyPath(String authPrivateKeyPath) The OCI authentication key file path.The OCI region.authRegion(String authRegion) The OCI region.The list of authentication strategies that will be attempted byAbstractAuthenticationDetailsProviderwhen one is called for.authStrategies(List<? extends String> authStrategies) The list of authentication strategies that will be attempted byAbstractAuthenticationDetailsProviderwhen one is called for.The singular authentication strategy to apply.authStrategy(String authStrategy) The singular authentication strategy to apply.The OCI tenant id.authTenantId(String authTenantId) The OCI tenant id.The OCI user id.authUserId(String authUserId) The OCI user id.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.config()If this instance was configured, this would be the config instance used.Update builder from configuration (node of this type).The OCI configuration profile path.configPath(String configPath) The OCI configuration profile path.The OCI configuration/auth profile name.configProfile(String configProfile) The OCI configuration/auth profile name.Update this builder from an existing prototype instance.from(OciConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.The OCI IMDS hostname.imdsHostName(String imdsHostName) The OCI IMDS hostname.The OCI IMDS connection timeout.imdsTimeout(Duration imdsTimeout) The OCI IMDS connection timeout.protected voidHandles providers and decorators.toString()protected voidValidates required properties.
- 
Constructor Details- 
BuilderBaseprotected BuilderBase()Protected to support extensibility.
 
- 
- 
Method Details- 
fromUpdate this builder from an existing prototype instance.- Parameters:
- prototype- existing prototype to update this builder from
- Returns:
- updated builder instance
 
- 
fromUpdate this builder from an existing prototype builder instance.- Parameters:
- builder- existing builder prototype to update this builder from
- Returns:
- updated builder instance
 
- 
preBuildPrototypeprotected void preBuildPrototype()Handles providers and decorators.
- 
validatePrototypeprotected void validatePrototype()Validates required properties.
- 
configUpdate builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Parameters:
- config- configuration instance used to obtain values to update this builder
- Returns:
- updated builder instance
 
- 
clearAuthStrategyClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
authStrategyThe singular authentication strategy to apply. This will be preferred overauthStrategies()if both are present.- Parameters:
- authStrategy- the singular authentication strategy to be applied
- Returns:
- updated builder instance
- See Also:
 
- 
authStrategiesThe list of authentication strategies that will be attempted byAbstractAuthenticationDetailsProviderwhen one is called for. This is only used ifauthStrategy()is not present.- auto- if present in the list, or if no value for this property exists, the behavior will be as if- config,config-file,instance-principals,resource-principalwere supplied instead.
- config- the- SimpleAuthenticationDetailsProviderwill be used, customized with other configuration properties described here.
- config-file- the- ConfigFileAuthenticationDetailsProviderwill be used, customized with other configuration properties described here.
- instance-principals- the- InstancePrincipalsAuthenticationDetailsProviderwill be used.
- resource-principal- the- ResourcePrincipalAuthenticationDetailsProviderwill be used.
 If there are many strategy descriptors supplied, the first one that is deemed to be available or suitable will be used and all others will be ignored. - Parameters:
- authStrategies- the list of authentication strategies that will be applied, defaulting to- auto
- Returns:
- updated builder instance
- See Also:
 
- 
addAuthStrategiesThe list of authentication strategies that will be attempted byAbstractAuthenticationDetailsProviderwhen one is called for. This is only used ifauthStrategy()is not present.- auto- if present in the list, or if no value for this property exists, the behavior will be as if- config,config-file,instance-principals,resource-principalwere supplied instead.
- config- the- SimpleAuthenticationDetailsProviderwill be used, customized with other configuration properties described here.
- config-file- the- ConfigFileAuthenticationDetailsProviderwill be used, customized with other configuration properties described here.
- instance-principals- the- InstancePrincipalsAuthenticationDetailsProviderwill be used.
- resource-principal- the- ResourcePrincipalAuthenticationDetailsProviderwill be used.
 If there are many strategy descriptors supplied, the first one that is deemed to be available or suitable will be used and all others will be ignored. - Parameters:
- authStrategies- the list of authentication strategies that will be applied, defaulting to- auto
- Returns:
- updated builder instance
- See Also:
 
- 
clearConfigPathClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
configPathThe OCI configuration profile path.This configuration property has an effect only when config-fileis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known asfileConfigIsPresent(). When it is present, this property must also be present and then the ConfigFileReader.parse(String) method will be passed this value. It is expected to be passed with a valid OCI configuration file path.- Parameters:
- configPath- the OCI configuration profile path
- Returns:
- updated builder instance
- See Also:
 
- 
clearConfigProfileClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
configProfileThe OCI configuration/auth profile name.This configuration property has an effect only when config-fileis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known asfileConfigIsPresent(). When it is present, this property may also be optionally provided in order to override the default "DEFAULT".- Parameters:
- configProfile- the optional OCI configuration/auth profile name
- Returns:
- updated builder instance
- See Also:
 
- 
clearAuthFingerprintClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
authFingerprintThe OCI authentication fingerprint.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the API signing key's fingerprint. See SimpleAuthenticationDetailsProvider.getFingerprint() for more details.- Parameters:
- authFingerprint- the OCI authentication fingerprint
- Returns:
- updated builder instance
- See Also:
 
- 
authKeyFileThe OCI authentication key file.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the SimpleAuthenticationDetailsProvider.getPrivateKey(). This file must exist in theuser.homedirectory. Alternatively, this property can be set using eitherauthPrivateKey()or usingauthPrivateKeyPath().- Parameters:
- authKeyFile- the OCI authentication key file
- Returns:
- updated builder instance
- See Also:
 
- 
clearAuthPrivateKeyPathClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
authPrivateKeyPathThe OCI authentication key file path.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the SimpleAuthenticationDetailsProvider.getPrivateKey(). This file path is an alternative for usingauthKeyFile()where the file must exist in theuser.homedirectory. Alternatively, this property can be set usingauthPrivateKey().- Parameters:
- authPrivateKeyPath- the OCI authentication key file path
- Returns:
- updated builder instance
- See Also:
 
- 
clearAuthPrivateKeyClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
authPrivateKeyThe OCI authentication private key.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the SimpleAuthenticationDetailsProvider.getPrivateKey(). Alternatively, this property can be set using eitherauthKeyFile()residing in theuser.homedirectory, or usingauthPrivateKeyPath().- Parameters:
- authPrivateKey- the OCI authentication private key
- Returns:
- updated builder instance
- See Also:
 
- 
authPrivateKeyThe OCI authentication private key.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the SimpleAuthenticationDetailsProvider.getPrivateKey(). Alternatively, this property can be set using eitherauthKeyFile()residing in theuser.homedirectory, or usingauthPrivateKeyPath().- Parameters:
- authPrivateKey- the OCI authentication private key
- Returns:
- updated builder instance
- See Also:
 
- 
clearAuthPassphraseClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
authPassphraseThe OCI authentication passphrase.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the SimpleAuthenticationDetailsProvider.getPassphraseCharacters().- Parameters:
- authPassphrase- the OCI authentication passphrase
- Returns:
- updated builder instance
- See Also:
 
- 
authPassphraseThe OCI authentication passphrase.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the SimpleAuthenticationDetailsProvider.getPassphraseCharacters().- Parameters:
- authPassphrase- the OCI authentication passphrase
- Returns:
- updated builder instance
- See Also:
 
- 
clearAuthRegionClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
authRegionThe OCI region.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, either this property orRegionProvidermust be provide a value in order to set the ConfigFileAuthenticationDetailsProvider.getRegion().- Parameters:
- authRegion- the OCI region
- Returns:
- updated builder instance
- See Also:
 
- 
clearAuthTenantIdClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
authTenantIdThe OCI tenant id.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the ConfigFileAuthenticationDetailsProvider.getTenantId().- Parameters:
- authTenantId- the OCI tenant id
- Returns:
- updated builder instance
- See Also:
 
- 
clearAuthUserIdClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
authUserIdThe OCI user id.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). When it is present, this property must be provided in order to set the ConfigFileAuthenticationDetailsProvider.getUserId().- Parameters:
- authUserId- the OCI user id
- Returns:
- updated builder instance
- See Also:
 
- 
imdsHostNameThe OCI IMDS hostname.This configuration property is used to identify the metadata service url. - Parameters:
- imdsHostName- the OCI IMDS hostname
- Returns:
- updated builder instance
- See Also:
 
- 
imdsTimeoutThe OCI IMDS connection timeout. This is used to auto-detect availability.This configuration property is used when attempting to connect to the metadata service. - Parameters:
- imdsTimeout- the OCI IMDS connection timeout
- Returns:
- updated builder instance
- See Also:
 
- 
authStrategyThe singular authentication strategy to apply. This will be preferred overauthStrategies()if both are present.- Returns:
- the auth strategy
 
- 
authStrategiesThe list of authentication strategies that will be attempted byAbstractAuthenticationDetailsProviderwhen one is called for. This is only used ifauthStrategy()is not present.- auto- if present in the list, or if no value for this property exists, the behavior will be as if- config,config-file,instance-principals,resource-principalwere supplied instead.
- config- the- SimpleAuthenticationDetailsProviderwill be used, customized with other configuration properties described here.
- config-file- the- ConfigFileAuthenticationDetailsProviderwill be used, customized with other configuration properties described here.
- instance-principals- the- InstancePrincipalsAuthenticationDetailsProviderwill be used.
- resource-principal- the- ResourcePrincipalAuthenticationDetailsProviderwill be used.
 If there are many strategy descriptors supplied, the first one that is deemed to be available or suitable will be used and all others will be ignored. - Returns:
- the auth strategies
 
- 
configPathThe OCI configuration profile path.This configuration property has an effect only when config-fileis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known asfileConfigIsPresent(). When it is present, this property must also be present and then the ConfigFileReader.parse(String) method will be passed this value. It is expected to be passed with a valid OCI configuration file path.- Returns:
- the config path
 
- 
configProfileThe OCI configuration/auth profile name.This configuration property has an effect only when config-fileis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known asfileConfigIsPresent(). When it is present, this property may also be optionally provided in order to override the default "DEFAULT".- Returns:
- the config profile
 
- 
authFingerprintThe OCI authentication fingerprint.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the API signing key's fingerprint. See SimpleAuthenticationDetailsProvider.getFingerprint() for more details.- Returns:
- the auth fingerprint
 
- 
authKeyFileThe OCI authentication key file.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the SimpleAuthenticationDetailsProvider.getPrivateKey(). This file must exist in theuser.homedirectory. Alternatively, this property can be set using eitherauthPrivateKey()or usingauthPrivateKeyPath().- Returns:
- the auth key file
 
- 
authPrivateKeyPathThe OCI authentication key file path.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the SimpleAuthenticationDetailsProvider.getPrivateKey(). This file path is an alternative for usingauthKeyFile()where the file must exist in theuser.homedirectory. Alternatively, this property can be set usingauthPrivateKey().- Returns:
- the auth private key path
 
- 
authPrivateKeyThe OCI authentication private key.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the SimpleAuthenticationDetailsProvider.getPrivateKey(). Alternatively, this property can be set using eitherauthKeyFile()residing in theuser.homedirectory, or usingauthPrivateKeyPath().- Returns:
- the auth private key
 
- 
authPassphraseThe OCI authentication passphrase.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the SimpleAuthenticationDetailsProvider.getPassphraseCharacters().- Returns:
- the auth passphrase
 
- 
authRegionThe OCI region.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, either this property orRegionProvidermust be provide a value in order to set the ConfigFileAuthenticationDetailsProvider.getRegion().- Returns:
- the auth region
 
- 
authTenantIdThe OCI tenant id.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known assimpleConfigIsPresent(). When it is present, this property must be provided in order to set the ConfigFileAuthenticationDetailsProvider.getTenantId().- Returns:
- the auth tenant id
 
- 
authUserIdThe OCI user id.This configuration property has an effect only when configis, explicitly or implicitly, present in the value for theauthStrategies(). When it is present, this property must be provided in order to set the ConfigFileAuthenticationDetailsProvider.getUserId().- Returns:
- the auth user id
 
- 
imdsHostNameThe OCI IMDS hostname.This configuration property is used to identify the metadata service url. - Returns:
- the imds host name
 
- 
imdsTimeoutThe OCI IMDS connection timeout. This is used to auto-detect availability.This configuration property is used when attempting to connect to the metadata service. - Returns:
- the imds timeout
 
- 
configIf this instance was configured, this would be the config instance used.- Returns:
- config node used to configure this builder, or empty if not configured
 
- 
toString
 
-