org.surfnet.oaaas.model
Class AccessToken
java.lang.Object
org.surfnet.oaaas.model.AbstractEntity
org.surfnet.oaaas.model.AccessToken
- All Implemented Interfaces:
- Serializable
@Entity
public class AccessToken
- extends AbstractEntity
Representation of an AccessToken
- See Also:
- Serialized Form
AccessToken
public AccessToken()
AccessToken
public AccessToken(String token,
AuthenticatedPrincipal principal,
Client client,
long expires,
List<String> scopes)
AccessToken
public AccessToken(String token,
AuthenticatedPrincipal principal,
Client client,
long expires,
List<String> scopes,
String refreshToken)
encodePrincipal
public void encodePrincipal()
decodePrincipal
public void decodePrincipal()
getToken
public String getToken()
- Returns:
- the token
setToken
public void setToken(String token)
- Parameters:
token - the token to set
getClient
public Client getClient()
- Returns:
- the client
setClient
public void setClient(Client client)
- Parameters:
client - the client to set
getExpires
public long getExpires()
- Returns:
- the expires
setExpires
public void setExpires(long expires)
- Parameters:
expires - the expires to set
getScopes
public List<String> getScopes()
- Returns:
- the scopes
setScopes
public void setScopes(List<String> scopes)
- Parameters:
scopes - the scopes to set
getPrincipal
public AuthenticatedPrincipal getPrincipal()
- Returns:
- the principal
getEncodedPrincipal
public String getEncodedPrincipal()
- Returns:
- the encodedPrincipal
getRefreshToken
public String getRefreshToken()
- Returns:
- the refreshToken
setRefreshToken
public void setRefreshToken(String refreshToken)
- Parameters:
refreshToken - the refreshToken to set
getResourceOwnerId
public String getResourceOwnerId()
- Returns:
- the resourceOwnerId
getClientId
public String getClientId()
Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.