public class ResourcePrincipalV2FederationClient extends AbstractFederationClient
This class gets a security token from the auth service by signing the request with the provided private key.
additionalClientConfigurator, circuitBreaker, clientConfigurator, federationClient, resourcePrincipalTokenClient, sessionKeySupplier| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
protected SecurityTokenAdapter |
getSecurityTokenFromServer()
Gets a security token from the federation server
|
getSecurityToken, getSecurityTokenAdapter, getStringClaim, makeClient, prepareRptCall, refreshAndGetSecurityToken, refreshAndGetSecurityTokenIfExpiringWithin, refreshAndGetSecurityTokenIfExpiringWithin, refreshAndGetSecurityTokenInner, requestSessionTokenpublic ResourcePrincipalV2FederationClient(String resourcePrincipalTokenEndpoint, String federationEndpoint, SessionKeySupplier sessionKeySupplier, KeyPairAuthenticationDetailProvider keyPairAuthenticationDetailsProvider, ClientConfigurator clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration)
Constructor of ResourcePrincipalsV2FederationClient.
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. *public ResourcePrincipalV2FederationClient(String resourcePrincipalTokenEndpoint, String federationEndpoint, String resourcePrincipalTokenPath, String securityContext, SessionKeySupplier sessionKeySupplier, KeyPairAuthenticationDetailProvider keyPairAuthenticationDetailsProvider, ClientConfigurator clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration)
Constructor of ResourcePrincipalsV2FederationClient.
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 pathsecurityContext - the security contextsessionKeySupplier - the session key supplier.keyPairAuthenticationDetailsProvider - the key pair authentication details provider.clientConfigurator - the reset client configurator.circuitBreakerConfiguration - the rest client circuit breaker configuration. *protected SecurityTokenAdapter getSecurityTokenFromServer()
Gets a security token from the federation server
getSecurityTokenFromServer in class AbstractFederationClientCopyright © 2016–2024. All rights reserved.