public abstract class StatefulToken
extends org.forgerock.json.JsonValue
Constructor and Description |
---|
StatefulToken(Object object) |
Modifier and Type | Method and Description |
---|---|
protected abstract long |
defaultExpireTime() |
String |
getAuditTrackingId() |
long |
getAuthTimeSeconds()
Gets the end user's authentication time in seconds.
|
String |
getClaims()
Gets the requested claims associated w/ this access token.
|
String |
getClientId()
Gets the client's id.
|
long |
getExpiryTime() |
String |
getRealm() |
String |
getResourceOwnerId()
Gets the resource owner's id.
|
protected String |
getResourceString(String string)
Gets the display String for the given String.
|
Set<String> |
getScope()
Gets the scope.
|
protected Set<String> |
getSetProperty(String key) |
protected String |
getStringProperty(String key)
Get a string property from the store.
|
protected Long |
getTimeLeft() |
String |
getTokenId() |
String |
getTokenName() |
String |
getTokenType()
Gets the token type.
|
boolean |
isExpired()
Determines if the Access Token is expired.
|
protected void |
setAuthGrantId(String authGrantId)
Sets the authorization grant id.
|
protected void |
setAuthTime(long authTime)
Sets the end user's original authentication
time in seconds since epoch.
|
protected void |
setClientId(String clientId)
Sets the client's id.
|
protected void |
setExpiryTime(long expiryTime)
Sets the expiry time.
|
protected void |
setGrantType(String grantType)
Sets the grant type.
|
protected void |
setId(String id)
Sets the token id.
|
protected void |
setRedirectUri(String redirectUri)
Sets the redirect uri.
|
protected void |
setResourceOwnerId(String resourceOwnerId)
Sets the resource owner's id.
|
protected void |
setScope(Set<String> scope)
Sets the scope.
|
protected void |
setStringProperty(String key,
String value)
Set a string property in the store.
|
protected void |
setTokenName(String tokenName)
Sets the token name.
|
protected void |
setTokenType(String tokenType)
Sets the token type.
|
org.forgerock.json.JsonValue |
toJsonValue() |
add, add, add, add, addPermissive, array, as, asBigDecimal, asBoolean, asCollection, asCollection, asDouble, asEnum, asInteger, asList, asList, asLong, asMap, asMap, asMapOfList, asNumber, asSet, asSet, asString, asURI, clear, clone, contains, copy, defaultTo, diff, expect, field, fieldIfNotNull, get, get, get, getObject, getPointer, isBoolean, isCollection, isDefined, isEqualTo, isList, isMap, isNotNull, isNull, isNumber, isSet, isString, iterator, json, keys, object, object, patch, put, put, put, putPermissive, remove, remove, remove, required, set, setObject, size, toIndex, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public StatefulToken(Object object)
protected void setId(String id)
id
- The token id.protected void setResourceOwnerId(String resourceOwnerId)
resourceOwnerId
- The resource owner's id.protected void setClientId(String clientId)
clientId
- The client's id.protected void setRedirectUri(String redirectUri)
redirectUri
- The redirect uri.protected void setExpiryTime(long expiryTime)
expiryTime
- The expiry time.protected void setAuthGrantId(String authGrantId)
authGrantId
- The authorization grant id.protected void setTokenType(String tokenType)
tokenType
- The token type.protected void setTokenName(String tokenName)
tokenName
- The token name.protected void setGrantType(String grantType)
grantType
- The grant type.protected void setAuthTime(long authTime)
authTime
- The authentication time.public String getClientId()
public String getResourceOwnerId()
public String getTokenId()
public String getTokenName()
public String getRealm()
public String getClaims()
public String getTokenType()
public String getAuditTrackingId()
public long getAuthTimeSeconds()
protected String getResourceString(String string)
string
- The String.protected String getStringProperty(String key)
key
- The property key.protected final void setStringProperty(String key, String value)
key
- The property key.value
- The value.public org.forgerock.json.JsonValue toJsonValue()
protected Long getTimeLeft()
public long getExpiryTime()
protected abstract long defaultExpireTime()
public boolean isExpired()
true
if current time is greater than the expiry time.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.