| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final SecurityTokenAdapter | |
| private final SessionKeySupplier |
| Access | Constructor and Description |
|---|---|
| public | FixedContentResourcePrincipalFederationClient(String
the constant value for the RPST resourcePrincipalSessionToken, SessionKeySupplier the associated SessionKeySupplier sessionKeySupplier)Constructor of FixedContentResourcePrincipalFederationClient. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getSecurityToken()
Implements com. Gets a security token from the federation endpoint. |
| 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 | |
| securityTokenAdapter | back to summary |
|---|---|
| private final SecurityTokenAdapter securityTokenAdapter | |
| sessionKeySupplier | back to summary |
|---|---|
| private final SessionKeySupplier sessionKeySupplier | |
| FixedContentResourcePrincipalFederationClient | back to summary |
|---|---|
| public FixedContentResourcePrincipalFederationClient(String resourcePrincipalSessionToken, SessionKeySupplier sessionKeySupplier) Constructor of FixedContentResourcePrincipalFederationClient.
| |
| 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. | |
| 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) | |