public class AccessTokenInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
NEVER_EXPIRES
Marker for never ending tokens.
|
| Constructor and Description |
|---|
AccessTokenInfo(JsonValue rawInfo,
String token,
Set<String> scopes,
long expiresAt)
Build an
AccessTokenInfo with the provided information. |
| Modifier and Type | Method and Description |
|---|---|
JsonValue |
asJsonValue()
Returns the raw JSON as a
JsonValue. |
long |
getExpiresAt()
Returns the time (expressed as a timestamp in milliseconds since epoch) when this token will be expired.
|
Map<String,Object> |
getInfo()
Returns the raw JSON as a map.
|
Set<String> |
getScopes()
Returns the scopes associated to this token.
|
String |
getToken()
Returns the access token identifier issued from the authorization server.
|
public static final long NEVER_EXPIRES
public AccessTokenInfo(JsonValue rawInfo, String token, Set<String> scopes, long expiresAt)
AccessTokenInfo with the provided information.rawInfo - raw response messagetoken - token identifierscopes - scopes of the tokenexpiresAt - Token expiration time expressed as a timestamp, in milliseconds since epochpublic Map<String,Object> getInfo()
public JsonValue asJsonValue()
JsonValue.JsonValue.public String getToken()
public Set<String> getScopes()
public long getExpiresAt()
NEVER_EXPIRES constant is returned, this token is always considered as available.Copyright © 2025 Open Identity Platform Community. All rights reserved.