| Modifier and Type | Field and Description |
|---|---|
| protected final List | |
| protected final OciCircuitBreaker | |
| protected final ClientConfigurator | |
| protected final HttpClient | |
| private static final Logger | |
| protected final HttpClient | |
| private volatile SecurityTokenAdapter | |
| protected final SessionKeySupplier |
| Access | Constructor and Description |
|---|---|
| public | AbstractFederationClient(String
the endpoint that can provide the resource principal
token. resourcePrincipalTokenEndpoint, String the endpoint that can provide the resource principal session token. federationEndpoint, SessionKeySupplier the session key supplier. sessionKeySupplier, BasicAuthenticationDetailsProvider the instance principals authentication details
provider. basicAuthenticationDetailsProvider, ClientConfigurator the reset client configurator. clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration)Constructor of AbstractFederationClient. |
| public | AbstractFederationClient(String
the endpoint that can provide the resource principal
token. resourcePrincipalTokenEndpoint, String the endpoint that can provide the resource principal session token. federationEndpoint, SessionKeySupplier the session key supplier. sessionKeySupplier, BasicAuthenticationDetailsProvider the instance principals authentication details
provider. basicAuthenticationDetailsProvider, ClientConfigurator the reset client configurator. clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration, List<ClientConfigurator> additionalCLientConfigurators)Constructor of AbstractFederationClient. |
| public | AbstractFederationClient(String
the complete url that can provide the resource principal
token. resourcePrincipalTokenUrl, String the endpoint that can provide the resource principal
token. resourcePrincipalTokenEndpoint, String the endpoint that can provide the resource principal session token. federationEndpoint, SessionKeySupplier the session key supplier. sessionKeySupplier, BasicAuthenticationDetailsProvider the instance principals authentication details
provider. basicAuthenticationDetailsProvider, ClientConfigurator the reset client configurator. clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration, List<ClientConfigurator> additionalCLientConfigurators)Constructor of AbstractFederationClient. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: A security token that can be used to authenticate requests.Implements com. Gets a security token from the federation endpoint. |
| protected SecurityTokenAdapter | |
| protected abstract SecurityTokenAdapter | Returns: the security token, which is basically a JWT token stringGets a security token from the federation server |
| public String | getStringClaim(String key)
Implements com. Get a claim embedded in the security token. |
| protected HttpClient | |
| protected ClientCall | |
| public String | Returns: A security token that can be used to authenticate requests.Implements com. Gets a security token from the federation endpoint. |
| public String | Returns: A security token that can be used to authenticate requests.the duration to check time, boolean boolean value to enable/disable refresh of keys refreshKeys)Implements com. Gets a security token from the federation endpoint if the security token expires within the provided duration and allows to enable/disable refresh of keys. |
| public String | Returns: A security token that can be used to authenticate requests.the duration to check time)Implements com. Gets a security token from the federation endpoint. |
| protected String | refreshAndGetSecurityTokenInner(final boolean doFinalTokenValidityCheck, Optional<Duration> time, boolean refreshKeys)
|
| protected SecurityTokenAdapter | requestSessionToken(GetResourcePrincipalSessionTokenRequest getResourcePrincipalSessionTokenRequest)
|
| additionalClientConfigurator | back to summary |
|---|---|
| protected final List<ClientConfigurator> additionalClientConfigurator | |
| circuitBreaker | back to summary |
|---|---|
| protected final OciCircuitBreaker circuitBreaker | |
| clientConfigurator | back to summary |
|---|---|
| protected final ClientConfigurator clientConfigurator | |
| federationClient | back to summary |
|---|---|
| protected final HttpClient federationClient | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| resourcePrincipalTokenClient | back to summary |
|---|---|
| protected final HttpClient resourcePrincipalTokenClient | |
| securityTokenAdapter | back to summary |
|---|---|
| private volatile SecurityTokenAdapter securityTokenAdapter | |
| sessionKeySupplier | back to summary |
|---|---|
| protected final SessionKeySupplier sessionKeySupplier | |
| AbstractFederationClient | back to summary |
|---|---|
| public AbstractFederationClient(String resourcePrincipalTokenEndpoint, String federationEndpoint, SessionKeySupplier sessionKeySupplier, BasicAuthenticationDetailsProvider basicAuthenticationDetailsProvider, ClientConfigurator clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration) Constructor of AbstractFederationClient.
| |
| AbstractFederationClient | back to summary |
|---|---|
| public AbstractFederationClient(String resourcePrincipalTokenEndpoint, String federationEndpoint, SessionKeySupplier sessionKeySupplier, BasicAuthenticationDetailsProvider basicAuthenticationDetailsProvider, ClientConfigurator clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration, List<ClientConfigurator> additionalCLientConfigurators) Constructor of AbstractFederationClient.
| |
| AbstractFederationClient | back to summary |
|---|---|
| public AbstractFederationClient(String resourcePrincipalTokenUrl, String resourcePrincipalTokenEndpoint, String federationEndpoint, SessionKeySupplier sessionKeySupplier, BasicAuthenticationDetailsProvider basicAuthenticationDetailsProvider, ClientConfigurator clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration, List<ClientConfigurator> additionalCLientConfigurators) Constructor of AbstractFederationClient.
| |
| getSecurityToken | back to summary |
|---|---|
| public String getSecurityToken() Implements com. Gets a security token from the federation endpoint. May use a cached token if it judged to still be valid. | |
| getSecurityTokenAdapter | back to summary |
|---|---|
| protected SecurityTokenAdapter getSecurityTokenAdapter() Get securityTokenAdapter
| |
| getSecurityTokenFromServer | back to summary |
|---|---|
| protected abstract SecurityTokenAdapter getSecurityTokenFromServer() Gets a security token from the federation server
| |
| getStringClaim | back to summary |
|---|---|
| public String getStringClaim(String key) Implements com. Get a claim embedded in the security token. May use the cached token if it is judged to still be valid. | |
| makeClient | back to summary |
|---|---|
| protected HttpClient makeClient(String endpoint, RequestSigner requestSigner) | |
| prepareRptCall | back to summary |
|---|---|
| protected ClientCall | |
| refreshAndGetSecurityToken | back to summary |
|---|---|
| public String refreshAndGetSecurityToken() Implements com. Gets a security token from the federation endpoint. This will always retrieve a new token from the federation endpoint and does not use a cached token. | |
| refreshAndGetSecurityTokenIfExpiringWithin | back to summary |
|---|---|
| public String refreshAndGetSecurityTokenIfExpiringWithin(Duration time, boolean refreshKeys) Implements com. Gets a security token from the federation endpoint if the security token expires within the provided duration and allows to enable/disable refresh of keys. This will always retrieve a new token from the federation endpoint and does not use a cached token. | |
| refreshAndGetSecurityTokenIfExpiringWithin | back to summary |
|---|---|
| public String refreshAndGetSecurityTokenIfExpiringWithin(Duration time) Implements com. Gets a security token from the federation endpoint. This will always retrieve a new token from the federation endpoint and does not use a cached token. | |
| refreshAndGetSecurityTokenInner | back to summary |
|---|---|
| protected String refreshAndGetSecurityTokenInner(final boolean doFinalTokenValidityCheck, Optional<Duration> time, boolean refreshKeys) | |
| requestSessionToken | back to summary |
|---|---|
| protected SecurityTokenAdapter requestSessionToken(GetResourcePrincipalSessionTokenRequest getResourcePrincipalSessionTokenRequest) | |