| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final String | |
| private volatile SecurityTokenAdapter | |
| private final SessionKeySupplier |
| Access | Constructor and Description |
|---|---|
| public | FileBasedResourcePrincipalFederationClient(SessionKeySupplier
the session key supplier. sessionKeySupplier, String the path to load the RPST from resourcePrincipalSessionTokenPath)Constructor of FileBasedResourcePrincipalFederationClient. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getSecurityToken()
Implements com. Gets a security token from the federation endpoint. |
| protected SecurityTokenAdapter | Returns: the security token, which is basically a JWT token stringGets a security token from file |
| public String | getStringClaim(String key)
Implements com. Get a claim embedded in the security token. |
| public String | refreshAndGetSecurityToken()
Implements com. Gets a security token from the federation endpoint. |
| public String | refreshAndGetSecurityTokenIfExpiringWithin(Duration
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 | refreshAndGetSecurityTokenIfExpiringWithin(Duration
the duration to check time)Implements com. Gets a security token from the federation endpoint if the security token expires within the provided duration. |
| private String | refreshAndGetSecurityTokenInner(final boolean doFinalTokenValidityCheck, Optional<Duration> time, boolean refreshKeys)
|
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| resourcePrincipalSessionTokenPath | back to summary |
|---|---|
| private final String resourcePrincipalSessionTokenPath | |
| securityTokenAdapter | back to summary |
|---|---|
| private volatile SecurityTokenAdapter securityTokenAdapter | |
| sessionKeySupplier | back to summary |
|---|---|
| private final SessionKeySupplier sessionKeySupplier | |
| FileBasedResourcePrincipalFederationClient | back to summary |
|---|---|
| public FileBasedResourcePrincipalFederationClient(SessionKeySupplier sessionKeySupplier, String resourcePrincipalSessionTokenPath) Constructor of FileBasedResourcePrincipalFederationClient.
| |
| getSecurityToken | back to summary |
|---|---|
| public String getSecurityToken() Implements com. Doc from com. Gets a security token from the federation endpoint. May use a cached token if it judged to still be valid. | |
| getSecurityTokenFromFile | back to summary |
|---|---|
| protected SecurityTokenAdapter getSecurityTokenFromFile() Gets a security token from file
| |
| getStringClaim | back to summary |
|---|---|
| public String getStringClaim(String key) Implements com. Doc from com. Get a claim embedded in the security token. May use the cached token if it is judged to still be valid.
| |
| refreshAndGetSecurityToken | back to summary |
|---|---|
| public String refreshAndGetSecurityToken() Implements com. Doc from com. Gets a security token from the federation endpoint. This will always retreive 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. Doc from 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. Doc from 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. | |
| refreshAndGetSecurityTokenInner | back to summary |
|---|---|
| private String refreshAndGetSecurityTokenInner(final boolean doFinalTokenValidityCheck, Optional<Duration> time, boolean refreshKeys) | |