- All Superinterfaces:
- Prototype.Api
- All Known Implementing Classes:
- OciConfig.BuilderBase.OciConfigImpl
Meta configuration of OCI integration for Helidon.
 
Allows customization of discovery of authentication details provider and of region.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forOciConfig.static classOciConfig.BuilderBase<BUILDER extends OciConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OciConfig> Fluent API builder base forOciConfig.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionList of attempted authentication strategies in caseauthenticationMethod()is set to "auto".Authentication method to use.Timeout of authentication operations, where applicable.static OciConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static OciConfig.BuilderCreate a new fluent API builder from an existing instance.config()Get the config used to update the builder.Config file method configuration (if provided and used).Config method configuration (if provided and used).static OciConfigcreate()Create a new instance with default values.static OciConfigDeprecated.static OciConfigCreate a new instance from configuration.Customization of federation endpoint for authentication providers.The OCI IMDS URI (http URL pointing to the metadata service, if customization needed).Customize the number of retries to contact IMDS service.The OCI IMDS connection timeout.Optional<com.oracle.bmc.Region> region()Explicit region.Session token method configuration (if provided and used).tenantId()OCI tenant id for Instance Principal, Resource Principal or OKE Workload.
- 
Field Details- 
AUTHENTICATION_METHOD_AUTODefault authentication method. The default is to use automatic discovery - i.e. cycle through possible providers until one yields an authentication details provider instance.- See Also:
 
 
- 
- 
Method Details- 
builderCreate a new fluent API builder to customize configuration.- Returns:
- a new builder
 
- 
builderCreate a new fluent API builder from an existing instance.- Parameters:
- instance- an existing instance used as a base for the builder
- Returns:
- a builder based on an instance
 
- 
createCreate a new instance from configuration.- Parameters:
- config- used to configure the new instance
- Returns:
- a new instance configured from configuration
 
- 
createDeprecated.Create a new instance from configuration.- Parameters:
- config- used to configure the new instance
- Returns:
- a new instance configured from configuration
 
- 
createCreate a new instance with default values.- Returns:
- a new instance
 
- 
regionOptional<com.oracle.bmc.Region> region()Explicit region. The configured region will be used by region provider. This may be ignored by authentication detail providers, as in most cases region is provided by them.- Returns:
- explicit region
 
- 
authenticationMethodString authenticationMethod()Authentication method to use. If the configured method is not available, an exception would be thrown for OCI related services.Known and supported authentication strategies for public OCI: - "auto" - use the list of
     allowedAuthenticationMethods()(in the provided order), and choose the first one capable of providing data
- "config" -
     use configuration of the application to obtain values needed to set up connectivity, uses
     SimpleAuthenticationDetailsProvider
- "config-file" - use configuration file of OCI (home/.oci/config), usesConfigFileAuthenticationDetailsProvider
- resource-principal- use identity of the OCI resource the service is executed on (fn), uses- ResourcePrincipalAuthenticationDetailsProvider, and is available in a separate module- helidon-integrations-oci-authentication-resource
- instance-principal- use identity of the OCI instance the service is running on, uses- InstancePrincipalsAuthenticationDetailsProvider, and is available in a separate module- helidon-integrations-oci-authentication-resource
- oke-workload-identity- use identity of the OCI Kubernetes workload, uses- com.oracle.bmc.auth.okeworkloadidentity.OkeWorkloadIdentityAuthenticationDetailsProvider, and is available in a separate module- helidon-integrations-oci-authentication-oke-workload
 - Returns:
- the authentication method to apply
 
- "auto" - use the list of
     
- 
allowedAuthenticationMethodsList of attempted authentication strategies in caseauthenticationMethod()is set to "auto".In case the list is empty, all available strategies will be tried, ordered by their Weight- Returns:
- list of authentication strategies to be tried
- See Also:
 
- 
configMethodConfigOptional<ConfigMethodConfig> configMethodConfig()Config method configuration (if provided and used).- Returns:
- information needed for config authenticationMethod()
 
- 
configFileMethodConfigOptional<ConfigFileMethodConfig> configFileMethodConfig()Config file method configuration (if provided and used).- Returns:
- information to customize config for authenticationMethod()
 
- 
sessionTokenMethodConfigOptional<SessionTokenMethodConfig> sessionTokenMethodConfig()Session token method configuration (if provided and used).- Returns:
- information to customize config for authenticationMethod()
 
- 
imdsTimeoutDuration 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
 
- 
imdsBaseUriThe OCI IMDS URI (http URL pointing to the metadata service, if customization needed).- Returns:
- the OCI IMDS URI
 
- 
imdsDetectRetriesCustomize the number of retries to contact IMDS service.- Returns:
- number of retries, each provider has its own defaults
 
- 
authenticationTimeoutDuration authenticationTimeout()Timeout of authentication operations, where applicable. This is a timeout for each operation (if there are retries, each timeout will be this duration). Defaults to 10 seconds.- Returns:
- authentication operation timeout
 
- 
federationEndpointCustomization of federation endpoint for authentication providers.- Returns:
- custom federation endpoint URI
 
- 
tenantIdOCI tenant id for Instance Principal, Resource Principal or OKE Workload.- Returns:
- the OCI tenant id
 
- 
configGet the config used to update the builder.- Returns:
- configuration
 
 
- 
create(io.helidon.config.Config)