@Entity public class OAuth2AccessTokenEntity extends Object implements org.springframework.security.oauth2.common.OAuth2AccessToken
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_TOKEN_FIELD_NAME |
| Constructor and Description |
|---|
OAuth2AccessTokenEntity()
Create a new, blank access token
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAdditionalInformation()
Get all additional information to be sent to the serializer.
|
AuthenticationHolderEntity |
getAuthenticationHolder()
The authentication in place when this token was created.
|
ClientDetailsEntity |
getClient() |
Date |
getExpiration() |
int |
getExpiresIn() |
Long |
getId() |
OAuth2AccessTokenEntity |
getIdToken() |
String |
getIdTokenString() |
com.nimbusds.jwt.JWT |
getJwt() |
OAuth2RefreshTokenEntity |
getRefreshToken() |
Set<String> |
getScope() |
String |
getTokenType() |
String |
getValue()
Get the string-encoded value of this access token.
|
boolean |
isExpired() |
void |
setAuthenticationHolder(AuthenticationHolderEntity authenticationHolder) |
void |
setClient(ClientDetailsEntity client) |
void |
setExpiration(Date expiration) |
void |
setId(Long id) |
void |
setIdToken(OAuth2AccessTokenEntity idToken) |
void |
setJwt(com.nimbusds.jwt.JWT jwt) |
void |
setRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken) |
void |
setRefreshToken(OAuth2RefreshTokenEntity refreshToken) |
void |
setScope(Set<String> scope) |
void |
setTokenType(String tokenType) |
void |
setValue(String value)
Set the "value" of this Access Token
|
public static String ID_TOKEN_FIELD_NAME
public OAuth2AccessTokenEntity()
public Map<String,Object> getAdditionalInformation()
getAdditionalInformation in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic AuthenticationHolderEntity getAuthenticationHolder()
public void setAuthenticationHolder(AuthenticationHolderEntity authenticationHolder)
authentication - the authentication to setpublic ClientDetailsEntity getClient()
public void setClient(ClientDetailsEntity client)
client - the client to setpublic String getValue()
getValue in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic void setValue(String value) throws ParseException
value - the JWT stringParseException - if "value" is not a properly formatted JWT stringpublic Date getExpiration()
getExpiration in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic void setExpiration(Date expiration)
public String getTokenType()
getTokenType in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic void setTokenType(String tokenType)
public OAuth2RefreshTokenEntity getRefreshToken()
getRefreshToken in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic void setRefreshToken(OAuth2RefreshTokenEntity refreshToken)
public void setRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken)
public Set<String> getScope()
getScope in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic boolean isExpired()
isExpired in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic OAuth2AccessTokenEntity getIdToken()
public void setIdToken(OAuth2AccessTokenEntity idToken)
idToken - the idToken to setpublic String getIdTokenString()
public com.nimbusds.jwt.JWT getJwt()
public void setJwt(com.nimbusds.jwt.JWT jwt)
jwtValue - the jwtValue to setpublic int getExpiresIn()
getExpiresIn in interface org.springframework.security.oauth2.common.OAuth2AccessTokenCopyright © 2015. All Rights Reserved.