Package com.oracle.bmc.auth.internal
Class ResourcePrincipalV2FederationClient
- java.lang.Object
- 
- com.oracle.bmc.auth.internal.AbstractFederationClient
- 
- com.oracle.bmc.auth.internal.ResourcePrincipalV2FederationClient
 
 
- 
- All Implemented Interfaces:
- FederationClient,- ProvidesConfigurableRefresh
 
 public class ResourcePrincipalV2FederationClient extends AbstractFederationClient This class gets a security token from the auth service by signing the request with the provided private key.
- 
- 
Field Summary- 
Fields inherited from class com.oracle.bmc.auth.internal.AbstractFederationClientadditionalClientConfigurator, circuitBreaker, clientConfigurator, federationClient, resourcePrincipalTokenClient, securityTokenAdapter, sessionKeySupplier
 
- 
 - 
Constructor SummaryConstructors Constructor Description ResourcePrincipalV2FederationClient(String resourcePrincipalTokenEndpoint, String federationEndpoint, SessionKeySupplier sessionKeySupplier, KeyPairAuthenticationDetailProvider keyPairAuthenticationDetailsProvider, ClientConfigurator clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration)Constructor of ResourcePrincipalsV2FederationClient.ResourcePrincipalV2FederationClient(String resourcePrincipalTokenEndpoint, String federationEndpoint, String resourcePrincipalTokenPath, String securityContext, SessionKeySupplier sessionKeySupplier, KeyPairAuthenticationDetailProvider keyPairAuthenticationDetailsProvider, ClientConfigurator clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration)Constructor of ResourcePrincipalsV2FederationClient.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SecurityTokenAdaptergetSecurityTokenFromServer()Gets a security token from the federation server- 
Methods inherited from class com.oracle.bmc.auth.internal.AbstractFederationClientgetSecurityToken, getSecurityTokenAdapter, getStringClaim, makeClient, prepareRptCall, refreshAndGetSecurityToken, refreshAndGetSecurityTokenIfExpiringWithin, refreshAndGetSecurityTokenIfExpiringWithin, refreshAndGetSecurityTokenInner, requestSessionToken
 
- 
 
- 
- 
- 
Constructor Detail- 
ResourcePrincipalV2FederationClientpublic ResourcePrincipalV2FederationClient(String resourcePrincipalTokenEndpoint, String federationEndpoint, SessionKeySupplier sessionKeySupplier, KeyPairAuthenticationDetailProvider keyPairAuthenticationDetailsProvider, ClientConfigurator clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration) Constructor of ResourcePrincipalsV2FederationClient.- Parameters:
- resourcePrincipalTokenEndpoint- the endpoint that can provide the resource principal token.
- federationEndpoint- the endpoint that can provide the resource principal session token.
- sessionKeySupplier- the session key supplier.
- keyPairAuthenticationDetailsProvider- the key pair authentication details provider.
- clientConfigurator- the reset client configurator.
- circuitBreakerConfiguration- the rest client circuit breaker configuration. *
 
 - 
ResourcePrincipalV2FederationClientpublic ResourcePrincipalV2FederationClient(String resourcePrincipalTokenEndpoint, String federationEndpoint, String resourcePrincipalTokenPath, String securityContext, SessionKeySupplier sessionKeySupplier, KeyPairAuthenticationDetailProvider keyPairAuthenticationDetailsProvider, ClientConfigurator clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration) Constructor of ResourcePrincipalsV2FederationClient.- Parameters:
- resourcePrincipalTokenEndpoint- the endpoint that can provide the resource principal token.
- federationEndpoint- the endpoint that can provide the resource principal session token.
- resourcePrincipalTokenPath- the resource principal token path
- securityContext- the security context
- sessionKeySupplier- the session key supplier.
- keyPairAuthenticationDetailsProvider- the key pair authentication details provider.
- clientConfigurator- the reset client configurator.
- circuitBreakerConfiguration- the rest client circuit breaker configuration. *
 
 
- 
 - 
Method Detail- 
getSecurityTokenFromServerprotected SecurityTokenAdapter getSecurityTokenFromServer() Gets a security token from the federation server- Specified by:
- getSecurityTokenFromServerin class- AbstractFederationClient
- Returns:
- the security token, which is basically a JWT token string
 
 
- 
 
-