Package org.forgerock.oauth2.core
Interface AccessToken
-
- All Superinterfaces:
IntrospectableToken,Token
- All Known Implementing Classes:
StatefulAccessToken,StatelessAccessToken
public interface AccessToken extends IntrospectableToken
Models an OAuth2 access token.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddExtraData(String key, String value)Stores additional data inside the token.StringgetAuditTrackingId()Gets the token's audit tracking id.StringgetClaims()Gets the token's claims.org.forgerock.json.JsonValuegetConfirmationKey()Get's the tokens confirmation claim.StringgetGrantType()Gets the token's grant type.StringgetNonce()Gets the token's nonce.StringgetSessionId()Gets the token's associated session id.StringgetTokenId()Gets the token's identifier.StringgetTokenType()Gets the token's type.Map<String,Object>toMap()Converts the token into aMapof its key data.-
Methods inherited from interface org.forgerock.oauth2.core.IntrospectableToken
getAuthTimeSeconds, getClientId, getExpiryTime, getRealm, getResourceOwnerId, getScope, isExpired
-
Methods inherited from interface org.forgerock.oauth2.core.Token
getAuditTrackingIdKey, getTokenInfo, getTokenName, toJsonValue
-
-
-
-
Method Detail
-
getNonce
String getNonce()
Gets the token's nonce.- Returns:
- The token's nonce.
-
getSessionId
String getSessionId()
Gets the token's associated session id.- Returns:
- The token's session id.
-
getTokenId
String getTokenId()
Description copied from interface:TokenGets the token's identifier.- Specified by:
getTokenIdin interfaceToken- Returns:
- The token's id.
-
getClaims
String getClaims()
Gets the token's claims.- Returns:
- The token's claims.
-
getTokenType
String getTokenType()
Gets the token's type.- Returns:
- The token's type.
-
getGrantType
String getGrantType()
Gets the token's grant type.- Returns:
- The token's grant type.
-
getConfirmationKey
org.forgerock.json.JsonValue getConfirmationKey()
Get's the tokens confirmation claim.- Returns:
- the JSON confirmation key
-
toMap
Map<String,Object> toMap()
Description copied from interface:TokenConverts the token into aMapof its key data.
-
addExtraData
void addExtraData(String key, String value)
Stores additional data inside the token.- Parameters:
key- The key.value- The value.
-
getAuditTrackingId
String getAuditTrackingId()
Gets the token's audit tracking id.- Specified by:
getAuditTrackingIdin interfaceToken- Returns:
- The token's audit tracking id.
-
-