@Entity public class AccessToken extends AbstractEntity
| Constructor and Description |
|---|
AccessToken() |
AccessToken(String token,
AuthenticatedPrincipal principal,
Client client,
long expires,
List<String> scopes) |
AccessToken(String token,
AuthenticatedPrincipal principal,
Client client,
long expires,
List<String> scopes,
String refreshToken) |
| Modifier and Type | Method and Description |
|---|---|
void |
decodePrincipal() |
void |
encodePrincipal() |
Client |
getClient() |
String |
getEncodedPrincipal() |
long |
getExpires() |
AuthenticatedPrincipal |
getPrincipal() |
String |
getRefreshToken() |
String |
getResourceOwnerId() |
List<String> |
getScopes() |
String |
getToken() |
void |
setClient(Client client) |
void |
setExpires(long expires) |
void |
setRefreshToken(String refreshToken) |
void |
setScopes(List<String> scopes) |
void |
setToken(String token) |
equals, getCreationDate, getId, getModificationDate, hashCode, setId, toString, updateTimeStamps, validate, violationpublic AccessToken()
public AccessToken(String token, AuthenticatedPrincipal principal, Client client, long expires, List<String> scopes)
public void encodePrincipal()
public void decodePrincipal()
public String getToken()
public void setToken(String token)
token - the token to setpublic Client getClient()
public void setClient(Client client)
client - the client to setpublic long getExpires()
public void setExpires(long expires)
expires - the expires to setpublic AuthenticatedPrincipal getPrincipal()
public String getEncodedPrincipal()
public String getRefreshToken()
public void setRefreshToken(String refreshToken)
refreshToken - the refreshToken to setpublic String getResourceOwnerId()
Copyright © 2012 SURFnet bv, The Netherlands. All Rights Reserved.