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 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
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 |
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.
|
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.
|
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
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 federationEndpoint(String federationEndpoint)
Configures the custom federationEndpoint to use.
public B leafCertificateSupplier(X509CertificateSupplier leafCertificateSupplier)
Configures the custom leafCertificateSupplier to use.
public P build()
Build a new AuthenticationDetailsProvider that uses the FederationCLient.
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 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–2019. All rights reserved.