B
- builder classP
- provider classpublic abstract class AbstractFederationClientAuthenticationDetailsProviderBuilder<B extends AbstractFederationClientAuthenticationDetailsProviderBuilder<B,P>,P extends AbstractAuthenticationDetailsProvider> extends AbstractRequestingAuthenticationDetailsProvider.Builder<B>
Abstract builder base class for authentication details provider extending
AbstractRequestingAuthenticationDetailsProvider
Modifier and Type | Field and Description |
---|---|
protected static String |
FALLBACK_METADATA_SERVICE_URL
Fallback url of metadata service.
|
protected String |
federationEndpoint
The federation endpoint url.
|
protected X509CertificateSupplier |
leafCertificateSupplier
The leaf certificate, or null if detecting from instance metadata.
|
protected static String |
METADATA_SERVICE_BASE_URL
Default base url of metadata service.
|
protected String |
metadataBaseUrl
Base url of metadata service.
|
protected Region |
region
Detected region.
|
protected static Service |
SERVICE
Service instance for auth.
|
protected String |
tenancyId
Tenancy OCI, or null if detecting from instance metadata.
|
additionalFederationClientConfigurators, federationClient, federationClientConfigurator, intermediateCertificateSuppliers, sessionKeySupplier
Constructor and Description |
---|
AbstractFederationClientAuthenticationDetailsProviderBuilder() |
Modifier and Type | Method and Description |
---|---|
protected void |
autoDetectCertificatesUsingMetadataUrl()
Auto detects and configures the certificates needed using Instance metadata.
|
protected String |
autoDetectEndpointUsingMetadataUrl()
Auto detects the endpoint that should be used when talking to OCI Auth, if no endpoint
has been configured already.
|
protected void |
autoDetectUsingMetadataUrl()
Auto-detect endpoint and certificate information using Instance metadata.
|
P |
build()
Build a new AuthenticationDetailsProvider that uses the FederationClient.
|
protected abstract P |
buildProvider(SessionKeySupplier sessionKeySupplierToUse)
Build the actual provider.
|
B |
circuitBreakerConfigurator(CircuitBreakerConfiguration circuitBreakerConfiguration)
Configures the Circuit Breaker to use, if any.
|
protected com.oracle.bmc.auth.internal.FederationClient |
createFederationClient(SessionKeySupplier sessionKeySupplier) |
B |
federationEndpoint(String federationEndpoint)
Configures the custom federationEndpoint to use.
|
String |
getFederationEndpoint()
The federation endpoint url.
|
X509CertificateSupplier |
getLeafCertificateSupplier()
The leaf certificate, or null if detecting from instance metadata.
|
String |
getMetadataBaseUrl()
Base url of metadata service.
|
Region |
getRegion()
Detected region.
|
String |
getTenancyId()
Tenancy OCI, or null if detecting from instance metadata.
|
B |
leafCertificateSupplier(X509CertificateSupplier leafCertificateSupplier)
Configures the custom leafCertificateSupplier to use.
|
B |
metadataBaseUrl(String metadataBaseUrl)
Configure the metadata endpoint to use when retrieving the instance data and principal for federation.
|
protected B |
purpose(String purpose) |
B |
tenancyId(String tenancyId) |
additionalFederationClientConfigurator, federationClientConfigurator, intermediateCertificateSuppliers, sessionKeySupplier
protected static final Service SERVICE
Service instance for auth.
protected static final String METADATA_SERVICE_BASE_URL
Default base url of metadata service.
protected static final String FALLBACK_METADATA_SERVICE_URL
Fallback url of metadata service.
protected volatile String metadataBaseUrl
Base url of metadata service.
protected String federationEndpoint
The federation endpoint url.
protected X509CertificateSupplier leafCertificateSupplier
The leaf certificate, or null if detecting from instance metadata.
protected String tenancyId
Tenancy OCI, or null if detecting from instance metadata.
protected Region region
Detected region.
public AbstractFederationClientAuthenticationDetailsProviderBuilder()
public B metadataBaseUrl(String metadataBaseUrl)
Configure the metadata endpoint to use when retrieving the instance data and principal for federation.
public B federationEndpoint(String federationEndpoint)
Configures the custom federationEndpoint to use.
public B leafCertificateSupplier(X509CertificateSupplier leafCertificateSupplier)
Configures the custom leafCertificateSupplier to use.
public B circuitBreakerConfigurator(CircuitBreakerConfiguration circuitBreakerConfiguration)
Configures the Circuit Breaker to use, if any.
public P build()
Build a new AuthenticationDetailsProvider that uses the FederationClient.
protected com.oracle.bmc.auth.internal.FederationClient createFederationClient(SessionKeySupplier sessionKeySupplier)
protected void autoDetectUsingMetadataUrl()
Auto-detect endpoint and certificate information using Instance metadata.
protected String autoDetectEndpointUsingMetadataUrl()
Auto detects the endpoint that should be used when talking to OCI Auth, if no endpoint has been configured already.
protected void autoDetectCertificatesUsingMetadataUrl()
Auto detects and configures the certificates needed using Instance metadata.
protected abstract P buildProvider(SessionKeySupplier sessionKeySupplierToUse)
Build the actual provider.
sessionKeySupplierToUse
- public String getMetadataBaseUrl()
Base url of metadata service.
public String getFederationEndpoint()
The federation endpoint url.
public X509CertificateSupplier getLeafCertificateSupplier()
The leaf certificate, or null if detecting from instance metadata.
public String getTenancyId()
Tenancy OCI, or null if detecting from instance metadata.
public Region getRegion()
Detected region.
Copyright © 2016–2021. All rights reserved.