| Modifier and Type | Field and Description |
|---|---|
| private final ClientConfigurator | |
| private final ResourcePrincipalAuthenticationDetailsProvider | |
| private static final Logger | |
| private final String | |
| private final String | |
| private final String | |
| private volatile SecurityTokenAdapter |
| Access | Constructor and Description |
|---|---|
| public | ResourcePrincipalsV3FederationClient(String
the direct url that can provide the resource principal
token. resourcePrincipalTokenUrl, String the endpoint that can provide the resource
principal session token. resourcePrincipalSessionTokenEndpoint, SessionKeySupplier the session key supplier. sessionKeySupplier, ResourcePrincipalAuthenticationDetailsProvider the auth provider for leaf resource leafAuthDetailsProvider, ClientConfigurator the rest client configurator. clientConfigurator, CircuitBreakerConfiguration the rest client circuit breaker configuration. circuitBreakerConfiguration)Constructor of ResourcePrincipalsFederationClient. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: A security token that can be used to authenticate requests.Overrides com. Implements com. Gets a security token from the federation endpoint. |
| protected SecurityTokenAdapter | Returns: the security token, which is basically a JWT token stringImplements abstract com. Gets a security token from the federation server |
| protected SecurityTokenAdapter | getSecurityTokenFromServerInner(RSAPublicKey publicKey, int depth, String lastResourcePrincipalTokenUrl, HttpClient resourcePrincipalTokenClient, HttpClient federationClient)
|
| protected ClientCall | |
| 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)Overrides com. 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)Overrides com. Implements com. Gets a security token from the federation endpoint if the security token expires within the provided duration. |
| protected SecurityTokenAdapter | requestSessionToken(HttpClient federationClient, GetResourcePrincipalSessionTokenRequest getResourcePrincipalSessionTokenRequest)
|
| clientConfigurator | back to summary |
|---|---|
| private final ClientConfigurator clientConfigurator Hides com. | |
| leafAuthDetailsProvider | back to summary |
|---|---|
| private final ResourcePrincipalAuthenticationDetailsProvider leafAuthDetailsProvider | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides com. | |
| OPC_PARENT_RPT_URL_HEADER | back to summary |
|---|---|
| private final String OPC_PARENT_RPT_URL_HEADER | |
| resourcePrincipalSessionTokenEndpoint | back to summary |
|---|---|
| private final String resourcePrincipalSessionTokenEndpoint | |
| resourcePrincipalTokenUrl | back to summary |
|---|---|
| private final String resourcePrincipalTokenUrl | |
| securityTokenAdapter | back to summary |
|---|---|
| private volatile SecurityTokenAdapter securityTokenAdapter Hides com. | |
| ResourcePrincipalsV3FederationClient | back to summary |
|---|---|
| public ResourcePrincipalsV3FederationClient(String resourcePrincipalTokenUrl, String resourcePrincipalSessionTokenEndpoint, SessionKeySupplier sessionKeySupplier, ResourcePrincipalAuthenticationDetailsProvider leafAuthDetailsProvider, ClientConfigurator clientConfigurator, CircuitBreakerConfiguration circuitBreakerConfiguration) Constructor of ResourcePrincipalsFederationClient.
| |
| getSecurityToken | back to summary |
|---|---|
| public String getSecurityToken() Overrides com. Implements com. Gets a security token from the federation endpoint. May use a cached token if it judged to still be valid. | |
| getSecurityTokenFromServer | back to summary |
|---|---|
| protected SecurityTokenAdapter getSecurityTokenFromServer() Implements abstract com. Gets a security token from the federation server
| |
| getSecurityTokenFromServerInner | back to summary |
|---|---|
| protected SecurityTokenAdapter getSecurityTokenFromServerInner(RSAPublicKey publicKey, int depth, String lastResourcePrincipalTokenUrl, HttpClient resourcePrincipalTokenClient, HttpClient federationClient) | |
| prepareRptCall | back to summary |
|---|---|
| protected ClientCall | |
| refreshAndGetSecurityTokenIfExpiringWithin | back to summary |
|---|---|
| public String refreshAndGetSecurityTokenIfExpiringWithin(Duration time, boolean refreshKeys) Overrides com. 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) Overrides com. Implements com. Gets a security token from the federation endpoint if the security token expires within the provided duration. This will always retrieve a new token from the federation endpoint and does not use a cached token. | |
| requestSessionToken | back to summary |
|---|---|
| protected SecurityTokenAdapter requestSessionToken(HttpClient federationClient, GetResourcePrincipalSessionTokenRequest getResourcePrincipalSessionTokenRequest) | |