@Entity public class OAuth2RefreshTokenEntity extends Object implements org.springframework.security.oauth2.common.OAuth2RefreshToken
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_CLIENT |
static String |
PARAM_DATE |
static String |
PARAM_TOKEN_VALUE |
static String |
QUERY_ALL |
static String |
QUERY_BY_CLIENT |
static String |
QUERY_BY_TOKEN_VALUE |
static String |
QUERY_EXPIRED_BY_DATE |
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) |
public static final String QUERY_BY_TOKEN_VALUE
public static final String QUERY_BY_CLIENT
public static final String QUERY_EXPIRED_BY_DATE
public static final String QUERY_ALL
public static final String PARAM_TOKEN_VALUE
public static final String PARAM_CLIENT
public static final String PARAM_DATE
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.OAuth2RefreshToken
public 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 © 2018. All rights reserved.