public class FixedContentResourcePrincipalFederationClient extends Object implements FederationClient
This class returns a security token, supplied as a fixed value.
Constructor and Description |
---|
FixedContentResourcePrincipalFederationClient(String resourcePrincipalSessionToken,
SessionKeySupplier sessionKeySupplier)
Constructor of FixedContentResourcePrincipalFederationClient.
|
Modifier and Type | Method and Description |
---|---|
String |
getSecurityToken()
Gets a security token from the federation endpoint.
|
String |
getStringClaim(String key)
Get a claim embedded in the security token.
|
String |
refreshAndGetSecurityToken()
Gets a security token from the federation endpoint.
|
public FixedContentResourcePrincipalFederationClient(String resourcePrincipalSessionToken, SessionKeySupplier sessionKeySupplier)
Constructor of FixedContentResourcePrincipalFederationClient.
resourcePrincipalSessionToken
- the constant value for the RPSTsessionKeySupplier
- the associated SessionKeySupplierpublic String getSecurityToken()
FederationClient
Gets a security token from the federation endpoint. May use a cached token if it judged to still be valid.
getSecurityToken
in interface FederationClient
public String refreshAndGetSecurityToken()
FederationClient
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.
refreshAndGetSecurityToken
in interface FederationClient
public String getStringClaim(String key)
FederationClient
Get a claim embedded in the security token. May use the cached token if it is judged to still be valid.
getStringClaim
in interface FederationClient
Copyright © 2016–2023. All rights reserved.