public static class ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder extends AbstractFederationClientAuthenticationDetailsProviderBuilder<ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder,ResourcePrincipalAuthenticationDetailsProvider>
Builder for ResourcePrincipalAuthenticationDetailsProvider that understands the V2.2 configuration
Modifier and Type | Field and Description |
---|---|
protected CircuitBreakerConfiguration |
circuitBreakerConfig
The configuration for the circuit breaker.
|
protected String |
resourcePrincipalTokenEndpoint
The endpoint that can provide the resource principal token.
|
protected RptPathProvider |
resourcePrincipalTokenPathProvider
The path provider for the resource principal token.
|
protected String |
securityContext
The configuration for the security context.
|
AUTHORIZATION_HEADER_VALUE, circuitBreakerConfiguration, detectEndpointRetries, FALLBACK_METADATA_SERVICE_URL, federationEndpoint, leafCertificateSupplier, METADATA_SERVICE_BASE_URL, metadataBaseUrl, region, SERVICE, tenancyId, timeoutForEachRetry
additionalFederationClientConfigurators, federationClient, federationClientConfigurator, intermediateCertificateSuppliers, sessionKeySupplier
Modifier and Type | Method and Description |
---|---|
ResourcePrincipalAuthenticationDetailsProvider |
build_1_1(String ociResourcePrincipalRptEndpoint,
String ociResourcePrincipalRpstEndpoint)
Helper method that interprets the runtime environment to build a v1.1-configured client
|
ResourcePrincipalAuthenticationDetailsProvider |
build_2_1_2(String ociResourcePrincipalRptEndpoint,
String ociResourcePrincipalRpstEndpoint,
String ociResourcePrincipalTokenPath,
String ociSecurityContext,
String ociResourcePrincipalResourceId,
String ociResourcePrincipalTenancyId,
String ociResourcePrincipalPrivateKey,
String ociResourcePrincipalPassphrase,
String ociResourcePrincipalVersion)
Helper method that interprets the runtime environment to build a v2.1.2-configured client
|
ResourcePrincipalAuthenticationDetailsProvider |
build_2_1_or_2_1_1(String ociResourcePrincipalRptEndpoint,
String ociResourcePrincipalRpstEndpoint,
String ociResourcePrincipalResourceId,
String ociResourcePrincipalTenancyId,
String ociResourcePrincipalPrivateKey,
String ociResourcePrincipalPassphrase,
String ociResourcePrincipalVersion)
Helper method that interprets the runtime environment to build a v2.1 or 2.1.1-configured
client
|
static ResourcePrincipalAuthenticationDetailsProvider |
build_2_2(String ociResourcePrincipalPrivateKey,
String ociResourcePrincipalPassphrase,
String ociResourcePrincipalRpst,
String ociResourcePrincipalRegion,
String inputType)
Helper method that interprets the runtime environment to build a v2.2-configured client
|
ResourcePrincipalAuthenticationDetailsProvider |
build_3_0()
Helper method that interprets the runtime environment to build a v3.0-configured client
|
ResourcePrincipalAuthenticationDetailsProvider |
build()
Examine the environment of the running process; construct a
ResourcePrincipalAuthenticationDetailsProvider accordingly. |
protected ResourcePrincipalAuthenticationDetailsProvider |
buildProvider(SessionKeySupplier sessionKeySupplierToUse)
Build the actual provider.
|
ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder |
circuitBreakerConfig(CircuitBreakerConfiguration circuitBreakerConfig)
Set value for the CircuitBreaker Configuration.
|
protected FederationClient |
createFederationClient(SessionKeySupplier sessionKeySupplier)
Create the federation client.
|
protected void |
createRptPathProvider() |
ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder |
leafCertificateSupplier(X509CertificateSupplier leafCertificateSupplier)
Configures the custom leafCertificateSupplier to use.
|
ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder |
resourcePrincipalSessionTokenEndpoint(String resourcePrincipalSessionTokenEndpoint)
|
ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder |
resourcePrincipalTokenEndpoint(Service service,
Region region)
Configures the resourcePrincipalTokenEndpoint to use.
|
ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder |
resourcePrincipalTokenEndpoint(String resourcePrincipalTokenEndpoint)
Configures the resourcePrincipalTokenEndpoint to use.
|
ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder |
resourcePrincipalTokenPathProvider(RptPathProvider resourcePrincipalTokenPathProvider)
Configures the resourcePrincipalTokenPathProvider to use.
|
ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder |
securityContext(String securityContext)
Set value for the security context to use.
|
autoDetectCertificatesUsingMetadataUrl, autoDetectEndpointUsingMetadataUrl, autoDetectUsingMetadataUrl, circuitBreakerConfigurator, detectEndpointRetries, federationEndpoint, getFederationEndpoint, getLeafCertificateSupplier, getMetadataBaseUrl, getRegion, getTenancyId, metadataBaseUrl, purpose, tenancyId, timeoutForEachRetry
additionalFederationClientConfigurator, federationClientConfigurator, intermediateCertificateSuppliers, sessionKeySupplier
protected String resourcePrincipalTokenEndpoint
The endpoint that can provide the resource principal token.
Required.
protected RptPathProvider resourcePrincipalTokenPathProvider
The path provider for the resource principal token.
Defaults to DefaultRptPathProvider if null
protected CircuitBreakerConfiguration circuitBreakerConfig
The configuration for the circuit breaker.
protected String securityContext
The configuration for the security context.
public ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder resourcePrincipalTokenPathProvider(RptPathProvider resourcePrincipalTokenPathProvider)
Configures the resourcePrincipalTokenPathProvider to use.
public ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder resourcePrincipalTokenEndpoint(String resourcePrincipalTokenEndpoint)
Configures the resourcePrincipalTokenEndpoint to use.
public ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder circuitBreakerConfig(CircuitBreakerConfiguration circuitBreakerConfig)
Set value for the CircuitBreaker Configuration.
public ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder securityContext(String securityContext)
Set value for the security context to use.
public ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder resourcePrincipalTokenEndpoint(Service service, Region region)
Configures the resourcePrincipalTokenEndpoint to use.
@Deprecated public ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder resourcePrincipalSessionTokenEndpoint(String resourcePrincipalSessionTokenEndpoint)
AbstractFederationClientAuthenticationDetailsProviderBuilder.federationEndpoint(String)
Configures the resourcePrincipalSessionTokenEndpoint to use.
public ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder leafCertificateSupplier(X509CertificateSupplier leafCertificateSupplier)
Configures the custom leafCertificateSupplier to use.
public ResourcePrincipalAuthenticationDetailsProvider build()
Examine the environment of the running process; construct a ResourcePrincipalAuthenticationDetailsProvider
accordingly.
build
in class AbstractFederationClientAuthenticationDetailsProviderBuilder<ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder,ResourcePrincipalAuthenticationDetailsProvider>
public ResourcePrincipalAuthenticationDetailsProvider build_3_0()
Helper method that interprets the runtime environment to build a v3.0-configured client
public static ResourcePrincipalAuthenticationDetailsProvider build_2_2(String ociResourcePrincipalPrivateKey, String ociResourcePrincipalPassphrase, String ociResourcePrincipalRpst, String ociResourcePrincipalRegion, String inputType)
Helper method that interprets the runtime environment to build a v2.2-configured client
public ResourcePrincipalAuthenticationDetailsProvider build_2_1_2(String ociResourcePrincipalRptEndpoint, String ociResourcePrincipalRpstEndpoint, String ociResourcePrincipalTokenPath, String ociSecurityContext, String ociResourcePrincipalResourceId, String ociResourcePrincipalTenancyId, String ociResourcePrincipalPrivateKey, String ociResourcePrincipalPassphrase, String ociResourcePrincipalVersion)
Helper method that interprets the runtime environment to build a v2.1.2-configured client
public ResourcePrincipalAuthenticationDetailsProvider build_2_1_or_2_1_1(String ociResourcePrincipalRptEndpoint, String ociResourcePrincipalRpstEndpoint, String ociResourcePrincipalResourceId, String ociResourcePrincipalTenancyId, String ociResourcePrincipalPrivateKey, String ociResourcePrincipalPassphrase, String ociResourcePrincipalVersion)
Helper method that interprets the runtime environment to build a v2.1 or 2.1.1-configured client
public ResourcePrincipalAuthenticationDetailsProvider build_1_1(String ociResourcePrincipalRptEndpoint, String ociResourcePrincipalRpstEndpoint)
Helper method that interprets the runtime environment to build a v1.1-configured client
protected FederationClient createFederationClient(SessionKeySupplier sessionKeySupplier)
AbstractFederationClientAuthenticationDetailsProviderBuilder
Create the federation client.
createFederationClient
in class AbstractFederationClientAuthenticationDetailsProviderBuilder<ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder,ResourcePrincipalAuthenticationDetailsProvider>
sessionKeySupplier
- the session key supplierprotected void createRptPathProvider()
protected ResourcePrincipalAuthenticationDetailsProvider buildProvider(SessionKeySupplier sessionKeySupplierToUse)
AbstractFederationClientAuthenticationDetailsProviderBuilder
Build the actual provider.
buildProvider
in class AbstractFederationClientAuthenticationDetailsProviderBuilder<ResourcePrincipalAuthenticationDetailsProvider.ResourcePrincipalAuthenticationDetailsProviderBuilder,ResourcePrincipalAuthenticationDetailsProvider>
sessionKeySupplierToUse
- the session key supplier to useCopyright © 2016–2024. All rights reserved.