Package org.forgerock.oauth2.core
Interface IntrospectableToken
-
- All Superinterfaces:
Token
- All Known Subinterfaces:
AccessToken,RefreshToken
- All Known Implementing Classes:
StatefulAccessToken,StatefulRefreshToken,StatelessAccessToken,StatelessRefreshToken
public interface IntrospectableToken extends Token
An OAuth 2.0 token abstraction for introspection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAuthTimeSeconds()Gets the end user's authentication time in seconds.StringgetClientId()Gets the token's client id.longgetExpiryTime()Gets the token's expiry time.StringgetRealm()Gets the token's realm.StringgetResourceOwnerId()Gets the token's resource owner id.Set<String>getScope()Gets the token's scopes.booleanisExpired()Gets whether the token has expired.-
Methods inherited from interface org.forgerock.oauth2.core.Token
getAuditTrackingId, getAuditTrackingIdKey, getTokenId, getTokenInfo, getTokenName, toJsonValue, toMap
-
-
-
-
Method Detail
-
getExpiryTime
long getExpiryTime()
Gets the token's expiry time.- Returns:
- The token's expiry time.
-
isExpired
boolean isExpired()
Gets whether the token has expired.- Returns:
- Whether the token has expired.
-
getRealm
String getRealm()
Gets the token's realm.- Returns:
- The token's realm.
-
getClientId
String getClientId()
Gets the token's client id.- Returns:
- The token's client id.
-
getResourceOwnerId
String getResourceOwnerId()
Gets the token's resource owner id.- Returns:
- The token's resource owner id.
-
getAuthTimeSeconds
long getAuthTimeSeconds()
Gets the end user's authentication time in seconds.- Returns:
- The authentication time.
-
-