@Entity public class AccessToken extends Object implements Serializable
| Constructor and Description |
|---|
AccessToken() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAuthentication()
Gets the authentication.
|
String |
getAuthenticationId()
Gets the authentication id.
|
String |
getClientId()
Get the clientId for which this token is issued.
|
Date |
getExpiration()
Gets the expiration.
|
String |
getId()
Gets the id.
|
String |
getRefreshToken()
Gets the refresh token.
|
byte[] |
getToken()
Gets the token.
|
String |
getTokenId()
Gets the token id.
|
String |
getUsername()
Get the identifier of the user associated with this refresh token.
|
void |
setAuthentication(byte[] authentication)
Sets the authentication.
|
void |
setAuthenticationId(String authenticationId)
Sets the authentication id.
|
void |
setClientId(String clientId)
Sets the client id.
|
void |
setExpiration(Date expiration)
Sets the expiration.
|
void |
setRefreshToken(String refreshToken)
Sets the refresh token.
|
void |
setToken(byte[] token)
Sets the token.
|
void |
setTokenId(String tokenId)
Sets the token id.
|
void |
setUsername(String username)
Sets the username.
|
public String getId()
public String getAuthenticationId()
public void setAuthenticationId(String authenticationId)
authenticationId - the new authentication idpublic String getTokenId()
public void setTokenId(String tokenId)
tokenId - the new token idpublic byte[] getToken()
public void setToken(byte[] token)
token - the new tokenpublic void setUsername(String username)
username - the new usernamepublic String getUsername()
public void setClientId(String clientId)
clientId - the new client idpublic String getClientId()
OAuthClient.getClientId()public void setAuthentication(byte[] authentication)
authentication - the new authenticationpublic byte[] getAuthentication()
public void setRefreshToken(String refreshToken)
refreshToken - the new refresh tokenpublic String getRefreshToken()
public void setExpiration(Date expiration)
expiration - the new expirationpublic Date getExpiration()
Copyright © 2018 Global Crop Diversity Trust. All rights reserved.