Top Description Fields Constructors Methods
com.oracle.bmc.auth.internal

public Class ResourcePrincipalsFederationClient

extends AbstractFederationClient
Class Inheritance
Imports
com.oracle.bmc.auth.InstancePrincipalsAuthenticationDetailsProvider, .SessionKeySupplier, com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration, com.oracle.bmc.http.ClientConfigurator, com.oracle.bmc.http.client.Method, org.slf4j.Logger, java.security.KeyPair, java.security.interfaces.RSAPublicKey

This class gets a security token from the auth service by signing the request with a PKI issued leaf certificate, passing along a temporary public key that is bounded to the the security token, and the leaf certificate.

Field Summary

Modifier and TypeField and Description
private static final Logger
private final InstancePrincipalsAuthenticationDetailsProvider
private final RptPathProvider
Inherited from com.oracle.bmc.auth.internal.AbstractFederationClient:
additionalClientConfiguratorcircuitBreakerclientConfiguratorfederationClientresourcePrincipalTokenClientsessionKeySupplier

Constructor Summary

AccessConstructor and Description
public
ResourcePrincipalsFederationClient(String
the endpoint that can provide the resource principal token.
resourcePrincipalTokenEndpoint
,
RptPathProvider
the path provider for the resource principal token
resourcePrincipalTokenPathProvider
,
String
the endpoint that can provide the resource principal session token.
resourcePrincipalSessionTokenEndpoint
,
SessionKeySupplier
the session key supplier.
sessionKeySupplier
,
InstancePrincipalsAuthenticationDetailsProvider
the instance principals authentication details provider.
instancePrincipalsAuthenticationDetailsProvider
,
ClientConfigurator
the reset client configurator.
clientConfigurator
,
CircuitBreakerConfiguration circuitBreakerConfiguration)

Constructor of ResourcePrincipalsFederationClient.

Method Summary

Modifier and TypeMethod and Description
protected SecurityTokenAdapter

Returns:

the security token, which is basically a JWT token string
getSecurityTokenFromServer
()

Implements abstract com.oracle.bmc.auth.internal.AbstractFederationClient.getSecurityTokenFromServer.

Gets a security token from the federation server

Inherited from com.oracle.bmc.auth.internal.AbstractFederationClient:
getSecurityTokengetSecurityTokenAdaptergetStringClaimmakeClientprepareRptCallrefreshAndGetSecurityTokenrefreshAndGetSecurityTokenIfExpiringWithinrefreshAndGetSecurityTokenIfExpiringWithinrefreshAndGetSecurityTokenInnerrequestSessionToken

Field Detail

LOGback to summary
private static final Logger LOG

Hides com.oracle.bmc.auth.internal.AbstractFederationClient.LOG.

providerback to summary
private final InstancePrincipalsAuthenticationDetailsProvider provider
resourcePrincipalTokenPathProviderback to summary
private final RptPathProvider resourcePrincipalTokenPathProvider

Constructor Detail

ResourcePrincipalsFederationClientback to summary
public ResourcePrincipalsFederationClient(String resourcePrincipalTokenEndpoint, RptPathProvider resourcePrincipalTokenPathProvider, String resourcePrincipalSessionTokenEndpoint, SessionKeySupplier sessionKeySupplier, InstancePrincipalsAuthenticationDetailsProvider instancePrincipalsAuthenticationDetailsProvider, ClientConfigurator clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration)

Constructor of ResourcePrincipalsFederationClient.

Parameters
resourcePrincipalTokenEndpoint:String

the endpoint that can provide the resource principal token.

resourcePrincipalTokenPathProvider:RptPathProvider

the path provider for the resource principal token

resourcePrincipalSessionTokenEndpoint:String

the endpoint that can provide the resource principal session token.

sessionKeySupplier:SessionKeySupplier

the session key supplier.

instancePrincipalsAuthenticationDetailsProvider:InstancePrincipalsAuthenticationDetailsProvider

the instance principals authentication details provider.

clientConfigurator:ClientConfigurator

the reset client configurator.

Method Detail

getSecurityTokenFromServerback to summary
protected SecurityTokenAdapter getSecurityTokenFromServer()

Implements abstract com.oracle.bmc.auth.internal.AbstractFederationClient.getSecurityTokenFromServer.

Gets a security token from the federation server

Returns:SecurityTokenAdapter

the security token, which is basically a JWT token string

Annotations
@Override