public class AccessTokenInfo extends Object implements Serializable
| Constructor and Description |
|---|
AccessTokenInfo()
The default constructor.
|
AccessTokenInfo(String accessToken,
com.authlete.common.dto.IntrospectionResponse info)
A constructor with an access token and a response from Authlete's
/api/auth/introspection API.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
Get the value of the access token.
|
long |
getClientId()
Get the ID of the client application which is associated
with the access token.
|
long |
getExpiresAt()
Get the time at which the access token will expire.
|
com.authlete.common.dto.Property[] |
getProperties()
Get the extra properties associated with this access token.
|
String[] |
getScopes()
Get the scopes associated with the access token.
|
String |
getSubject()
Get the subject (= unique identifier) of the user who is
associated with the access token.
|
AccessTokenInfo |
setAccessToken(String accessToken)
Set the value of the access token.
|
AccessTokenInfo |
setClientId(long clientId)
Set the ID of the client application which is associated
with the access token.
|
AccessTokenInfo |
setExpiresAt(long expiresAt)
Set the time at which the access token will expire.
|
AccessTokenInfo |
setProperties(com.authlete.common.dto.Property[] properties)
Set the extra properties associated with the access token.
|
AccessTokenInfo |
setScopes(String[] scopes)
Set the scopes associated with the access token.
|
AccessTokenInfo |
setSubject(String subject)
Set the subject (= unique identifier) of the user who is
associated with the access token.
|
public AccessTokenInfo()
public AccessTokenInfo(String accessToken, com.authlete.common.dto.IntrospectionResponse info)
accessToken - An access token.info - A response from Authlete's /api/auth/introspection API.public String getAccessToken()
public AccessTokenInfo setAccessToken(String accessToken)
accessToken - The value of the access token.this object.public long getClientId()
public AccessTokenInfo setClientId(long clientId)
clientId - The client ID.this object.public String getSubject()
null if the access token was issued by Client
Credentials Flow.public AccessTokenInfo setSubject(String subject)
subject - The subject (= unique identifier) of the user.this object.public String[] getScopes()
null if no scope was requested when an access
token was issued.public AccessTokenInfo setScopes(String[] scopes)
scopes - The scopes.this object.public long getExpiresAt()
public AccessTokenInfo setExpiresAt(long expiresAt)
expiresAt - The time at which the access token will expire.
Milliseconds since the Unix epoch (1970-01-01).this object.public com.authlete.common.dto.Property[] getProperties()
null is returned.public AccessTokenInfo setProperties(com.authlete.common.dto.Property[] properties)
properties - Extra properties.this object.Copyright © 2016. All rights reserved.