Interface OAuth20AccessToken
-
- All Superinterfaces:
org.apereo.cas.ticket.AuthenticationAwareTicket,java.lang.Comparable<org.apereo.cas.ticket.Ticket>,OAuth20Token,java.io.Serializable,org.apereo.cas.ticket.ServiceTicket,org.apereo.cas.ticket.Ticket
public interface OAuth20AccessToken extends OAuth20Token
An access token is an OAuth token which can be used multiple times and has a long lifetime. It is used to access resources on behalf of a user and OAuth client.- Since:
- 5.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPREFIXThe prefix for access tokens.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetExpiresIn()Expiration time of the Access Token in seconds since the response was generated.java.lang.StringgetIdToken()Gets id token.java.lang.StringgetToken()Gets token or code that is exchanged for this access token.voidsetIdToken(java.lang.String idToken)Sets id token.-
Methods inherited from interface org.apereo.cas.ticket.OAuth20Token
getClaims, getClientId, getGrantType, getResponseType, getScopes
-
-
-
-
Field Detail
-
PREFIX
static final java.lang.String PREFIX
The prefix for access tokens.- See Also:
- Constant Field Values
-
-
Method Detail
-
setIdToken
void setIdToken(java.lang.String idToken)
Sets id token.- Parameters:
idToken- the id token
-
getIdToken
java.lang.String getIdToken()
Gets id token.- Returns:
- the id token
-
getToken
java.lang.String getToken()
Gets token or code that is exchanged for this access token.- Returns:
- the token
-
getExpiresIn
long getExpiresIn()
Expiration time of the Access Token in seconds since the response was generated.- Returns:
- access token expiration in seconds
-
-