@Entity public class OAuth2RefreshTokenEntity extends Object implements org.springframework.security.oauth2.common.OAuth2RefreshToken
| Constructor and Description |
|---|
OAuth2RefreshTokenEntity() |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationHolderEntity |
getAuthenticationHolder()
The authentication in place when the original access token was
created
|
ClientDetailsEntity |
getClient() |
Date |
getExpiration() |
Long |
getId() |
com.nimbusds.jwt.JWT |
getJwt()
Get the JWT object directly
|
String |
getValue()
Get the JWT-encoded value of this token
|
boolean |
isExpired()
Has this token expired?
|
void |
setAuthenticationHolder(AuthenticationHolderEntity authenticationHolder) |
void |
setClient(ClientDetailsEntity client) |
void |
setExpiration(Date expiration) |
void |
setId(Long id) |
void |
setJwt(com.nimbusds.jwt.JWT jwt) |
void |
setValue(String value)
Set the value of this token as a string.
|
public OAuth2RefreshTokenEntity()
public AuthenticationHolderEntity getAuthenticationHolder()
public void setAuthenticationHolder(AuthenticationHolderEntity authenticationHolder)
authentication - the authentication to setpublic String getValue()
getValue in interface org.springframework.security.oauth2.common.OAuth2RefreshTokenpublic void setValue(String value) throws ParseException
value - ParseException - if the value is not a valid JWT stringpublic Date getExpiration()
public void setExpiration(Date expiration)
public boolean isExpired()
public ClientDetailsEntity getClient()
public void setClient(ClientDetailsEntity client)
client - the client to setpublic com.nimbusds.jwt.JWT getJwt()
public void setJwt(com.nimbusds.jwt.JWT jwt)
jwt - the jwt to setCopyright © 2015. All Rights Reserved.