public final class StatelessAccessToken extends StatelessToken implements AccessToken
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
extraData |
jwt
Constructor and Description |
---|
StatelessAccessToken(org.forgerock.json.jose.jwt.Jwt jwt,
String jwtString)
Constructs a new StatelessAccessToken backed with the specified
Jwt . |
Modifier and Type | Method and Description |
---|---|
void |
addExtraData(String key,
String value)
Adds additional data to the Access Token.
|
AuditConstants.TrackingIdKey |
getAuditTrackingIdKey()
Get the audit tracking ID key for this token.
|
org.forgerock.json.JsonValue |
getConfirmationKey()
Get's the tokens confirmation claim.
|
String |
getGrantType()
Gets the token's grant type.
|
String |
getNonce()
Gets the token's nonce.
|
protected String |
getResourceString(String s) |
String |
getSessionId()
Gets the token's associated session id.
|
String |
getTokenName()
Gets the token's name.
|
Map<String,Object> |
toMap()
Converts the token into a
Map of its key data. |
getAuditTrackingId, getAuthGrantId, getAuthTimeSeconds, getClaims, getClientId, getExpiryTime, getJwtId, getRealm, getResourceOwnerId, getScope, getTimeLeft, getTokenId, getTokenInfo, getTokenType, isExpired, toJsonValue, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuditTrackingId, getClaims, getTokenId, getTokenType
getAuthTimeSeconds, getClientId, getExpiryTime, getRealm, getResourceOwnerId, getScope, isExpired
getTokenInfo, toJsonValue
public StatelessAccessToken(org.forgerock.json.jose.jwt.Jwt jwt, String jwtString)
Jwt
.jwt
- The stateless token.jwtString
- The JWT string.public String getTokenName()
Token
getTokenName
in interface Token
getTokenName
in class StatelessToken
public String getNonce()
AccessToken
getNonce
in interface AccessToken
public String getSessionId()
AccessToken
getSessionId
in interface AccessToken
public String getGrantType()
AccessToken
getGrantType
in interface AccessToken
public org.forgerock.json.JsonValue getConfirmationKey()
AccessToken
getConfirmationKey
in interface AccessToken
public Map<String,Object> toMap()
Token
Map
of its key data.toMap
in interface AccessToken
toMap
in interface Token
Map
of the token's key data.public AuditConstants.TrackingIdKey getAuditTrackingIdKey()
Token
getAuditTrackingIdKey
in interface Token
public void addExtraData(String key, String value)
Adds additional data to the Access Token.
If the value is null
then this method will ensure that the key is not present in the map.
addExtraData
in interface AccessToken
key
- The key.value
- The value.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.