public interface AccessToken extends IntrospectableToken
Modifier and Type | Method and Description |
---|---|
void |
addExtraData(String key,
String value)
Deprecated.
Use
AccessToken.addExtraData(String, Supplier) instead. |
void |
addExtraData(String key,
Supplier<String> value)
Stores additional data inside the token.
|
String |
getAuditTrackingId()
Gets the token's audit tracking id.
|
String |
getAuthGrantId()
Get the grant ID associated with this token.
|
String |
getClaims()
Gets the token's claims.
|
JsonValue |
getConfirmationKey()
Get's the tokens confirmation claim.
|
String |
getGrantType()
Gets the token's grant type.
|
String |
getNonce()
Gets the token's nonce.
|
JsonValue |
getPermissions()
Get the UMA permissions contained in the token.
|
String |
getTokenId()
Gets the token's identifier.
|
String |
getTokenType()
Gets the token's type.
|
void |
setPermissions(JsonValue permissions)
Set the UMA permissions contained in the token.
|
Map<String,Object> |
toMap()
Converts the token into a
Map of its key data. |
getAuthLevel, getAuthTimeSeconds, getClientId, getExpiryTime, getRealm, getResourceOwner, getResourceOwnerId, getScope, isExpired
getTokenInfo, getTokenName, toJsonValue
String getNonce()
String getTokenId()
Token
getTokenId
in interface Token
String getClaims()
String getTokenType()
String getGrantType()
JsonValue getConfirmationKey()
Map<String,Object> toMap()
Token
Map
of its key data.@Deprecated void addExtraData(String key, String value)
AccessToken.addExtraData(String, Supplier)
instead.key
- The key.value
- The value.void addExtraData(String key, Supplier<String> value)
key
- The key.value
- The value supplier that returns the value to include inside the token.String getAuditTrackingId()
getAuditTrackingId
in interface Token
JsonValue getPermissions()
void setPermissions(JsonValue permissions)
permissions
- The permissions object.String getAuthGrantId()
Copyright © 2010-2020, ForgeRock All Rights Reserved.