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.
|
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.
|
org.forgerock.json.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(org.forgerock.json.JsonValue permissions)
Set the UMA permissions contained in the token.
|
Map<String,Object> |
toMap()
Returns a
Map of data associated with this token which the HTTP caller may be wish to receive. |
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()
getGrantType
in interface IntrospectableToken
org.forgerock.json.JsonValue getConfirmationKey()
Map<String,Object> toMap()
Token
Map
of data associated with this token which the HTTP caller may be wish to receive.
For example, when requesting an access token, the HTTP response body will contain JSON built using the result of calling this method. This response will include (amongst other things):
@Deprecated void addExtraData(String key, String value)
AccessToken.addExtraData(String, Supplier)
instead.AccessToken.toMap()
.
Any extra data added by this method is transient and will not be persisted.
key
- The key.value
- The value.AccessToken.toMap()
void addExtraData(String key, Supplier<String> value)
key
- The key.value
- The value supplier that returns the value to include inside the token.AccessToken.toMap()
String getAuditTrackingId()
getAuditTrackingId
in interface Token
org.forgerock.json.JsonValue getPermissions()
void setPermissions(org.forgerock.json.JsonValue permissions)
permissions
- The permissions object.String getAuthGrantId()
Copyright © 2010-2017, ForgeRock All Rights Reserved.