Class OciConfig.BuilderBase<BUILDER extends OciConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OciConfig>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
OciConfig.Builder
- Enclosing interface:
OciConfig
OciConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAuthStrategies(List<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<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 authFingerprint.Clear existing value of authPassphrase.Clear existing value of authPrivateKey.Clear existing value of authPrivateKeyPath.Clear existing value of authRegion.Clear all authStrategies.Clear existing value of authStrategy.Clear existing value of authTenantId.Clear existing value of authUserId.Clear existing value of configPath.Clear existing value of configProfile.config()Configuration used to configure this instance.Deprecated.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends OciConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OciConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends OciConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OciConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clearAuthStrategy
Clear existing value of authStrategy.- Returns:
- updated builder instance
- See Also:
-
authStrategy
The 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:
-
clearAuthStrategies
Clear all authStrategies.- Returns:
- updated builder instance
- See Also:
-
authStrategies
The 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.config- theSimpleAuthenticationDetailsProviderwill be used, customized with other configuration properties described here.config-file- theConfigFileAuthenticationDetailsProviderwill be used, customized with other configuration properties described here.instance-principals- theInstancePrincipalsAuthenticationDetailsProviderwill be used.resource-principal- theResourcePrincipalAuthenticationDetailsProviderwill be used.
If there are more than one strategy descriptors defined, the first one that is deemed to be available/suitable will be used and all others will be ignored.
- Parameters:
authStrategies- the list of authentication strategies that will be applied, defaulting toauto- Returns:
- updated builder instance
- See Also:
-
addAuthStrategies
The 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.config- theSimpleAuthenticationDetailsProviderwill be used, customized with other configuration properties described here.config-file- theConfigFileAuthenticationDetailsProviderwill be used, customized with other configuration properties described here.instance-principals- theInstancePrincipalsAuthenticationDetailsProviderwill be used.resource-principal- theResourcePrincipalAuthenticationDetailsProviderwill be used.
If there are more than one strategy descriptors defined, the first one that is deemed to be available/suitable will be used and all others will be ignored.
- Parameters:
authStrategies- the list of authentication strategies that will be applied, defaulting toauto- Returns:
- updated builder instance
- See Also:
-
clearConfigPath
Clear existing value of configPath.- Returns:
- updated builder instance
- See Also:
-
configPath
The 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 asOciConfig.fileConfigIsPresent(). 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:
-
clearConfigProfile
Clear existing value of configProfile.- Returns:
- updated builder instance
- See Also:
-
configProfile
The 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 asOciConfig.fileConfigIsPresent(). 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:
-
clearAuthFingerprint
Clear existing value of authFingerprint.- Returns:
- updated builder instance
- See Also:
-
authFingerprint
The 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 asOciConfig.simpleConfigIsPresent(). 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:
-
authKeyFile
The 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 asOciConfig.simpleConfigIsPresent(). 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:
-
clearAuthPrivateKeyPath
Clear existing value of authPrivateKeyPath.- Returns:
- updated builder instance
- See Also:
-
authPrivateKeyPath
The 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 asOciConfig.simpleConfigIsPresent(). 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:
-
clearAuthPrivateKey
Clear existing value of authPrivateKey.- Returns:
- updated builder instance
- See Also:
-
authPrivateKey
The 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 asOciConfig.simpleConfigIsPresent(). 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:
-
authPrivateKey
The 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 asOciConfig.simpleConfigIsPresent(). 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:
-
clearAuthPassphrase
Clear existing value of authPassphrase.- Returns:
- updated builder instance
- See Also:
-
authPassphrase
The 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 asOciConfig.simpleConfigIsPresent(). 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:
-
authPassphrase
The 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 asOciConfig.simpleConfigIsPresent(). 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:
-
clearAuthRegion
Clear existing value of authRegion.- Returns:
- updated builder instance
- See Also:
-
authRegion
The OCI region.This configuration property has an effect only when
configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known asOciConfig.simpleConfigIsPresent(). 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:
-
clearAuthTenantId
Clear existing value of authTenantId.- Returns:
- updated builder instance
- See Also:
-
authTenantId
The 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 asOciConfig.simpleConfigIsPresent(). 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:
-
clearAuthUserId
Clear existing value of authUserId.- Returns:
- updated builder instance
- See Also:
-
authUserId
The 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:
-
imdsHostName
The 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:
-
imdsTimeout
The 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:
-
authStrategy
The singular authentication strategy to apply. This will be preferred overauthStrategies()if both are present.- Returns:
- the singular authentication strategy to be applied
-
authStrategies
The 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.config- theSimpleAuthenticationDetailsProviderwill be used, customized with other configuration properties described here.config-file- theConfigFileAuthenticationDetailsProviderwill be used, customized with other configuration properties described here.instance-principals- theInstancePrincipalsAuthenticationDetailsProviderwill be used.resource-principal- theResourcePrincipalAuthenticationDetailsProviderwill be used.
If there are more than one strategy descriptors defined, the first one that is deemed to be available/suitable will be used and all others will be ignored.
- Returns:
- the list of authentication strategies that will be applied, defaulting to
auto - See Also:
-
configPath
The 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 asOciConfig.fileConfigIsPresent(). 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 OCI configuration profile path
-
configProfile
The 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 asOciConfig.fileConfigIsPresent(). When it is present, this property may also be optionally provided in order to override the default "DEFAULT".- Returns:
- the optional OCI configuration/auth profile name
-
authFingerprint
The 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 asOciConfig.simpleConfigIsPresent(). 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 OCI authentication fingerprint
-
authKeyFile
The 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 asOciConfig.simpleConfigIsPresent(). 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 OCI authentication key file
-
authPrivateKeyPath
The 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 asOciConfig.simpleConfigIsPresent(). 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 OCI authentication key file path
-
authPrivateKey
The 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 asOciConfig.simpleConfigIsPresent(). 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 OCI authentication private key
-
authPassphrase
The 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 asOciConfig.simpleConfigIsPresent(). When it is present, this property must be provided in order to set the SimpleAuthenticationDetailsProvider.getPassphraseCharacters().- Returns:
- the OCI authentication passphrase
-
authRegion
The OCI region.This configuration property has an effect only when
configis, explicitly or implicitly, present in the value for theauthStrategies(). This is also known asOciConfig.simpleConfigIsPresent(). When it is present, either this property orRegionProvidermust be provide a value in order to set the ConfigFileAuthenticationDetailsProvider.getRegion().- Returns:
- the OCI region
-
authTenantId
The 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 asOciConfig.simpleConfigIsPresent(). When it is present, this property must be provided in order to set the ConfigFileAuthenticationDetailsProvider.getTenantId().- Returns:
- the OCI tenant id
-
authUserId
The 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 OCI user id
-
imdsHostName
The OCI IMDS hostname.This configuration property is used to identify the metadata service url.
- Returns:
- the OCI IMDS hostname
-
imdsTimeout
The 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 OCI IMDS connection timeout
- See Also:
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
Configuration used to configure this instance.- Returns:
- config instance
-
config(io.helidon.config.Config)