@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 |
static String |
PARAM_APPROVED_SITE |
static String |
PARAM_CLIENT |
static String |
PARAM_DATE |
static String |
PARAM_REFERSH_TOKEN |
static String |
PARAM_RESOURCE_SET_ID |
static String |
PARAM_TOKEN_VALUE |
static String |
QUERY_ALL |
static String |
QUERY_BY_APPROVED_SITE |
static String |
QUERY_BY_CLIENT |
static String |
QUERY_BY_REFRESH_TOKEN |
static String |
QUERY_BY_RESOURCE_SET |
static String |
QUERY_BY_TOKEN_VALUE |
static String |
QUERY_EXPIRED_BY_DATE |
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 as part of the token response.
|
ApprovedSite |
getApprovedSite() |
AuthenticationHolderEntity |
getAuthenticationHolder()
The authentication in place when this token was created.
|
ClientDetailsEntity |
getClient() |
Date |
getExpiration() |
int |
getExpiresIn() |
Long |
getId() |
com.nimbusds.jwt.JWT |
getJwt() |
Set<Permission> |
getPermissions() |
OAuth2RefreshTokenEntity |
getRefreshToken() |
Set<String> |
getScope() |
String |
getTokenType() |
String |
getValue()
Get the string-encoded value of this access token.
|
boolean |
isExpired() |
void |
setApprovedSite(ApprovedSite approvedSite) |
void |
setAuthenticationHolder(AuthenticationHolderEntity authenticationHolder) |
void |
setClient(ClientDetailsEntity client) |
void |
setExpiration(Date expiration) |
void |
setId(Long id) |
void |
setIdToken(com.nimbusds.jwt.JWT idToken)
Add the ID Token to the additionalInformation map for a token response.
|
void |
setJwt(com.nimbusds.jwt.JWT jwt) |
void |
setPermissions(Set<Permission> permissions) |
void |
setRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken) |
void |
setRefreshToken(OAuth2RefreshTokenEntity refreshToken) |
void |
setScope(Set<String> scope) |
void |
setTokenType(String tokenType) |
public static final String QUERY_BY_APPROVED_SITE
public static final String QUERY_BY_TOKEN_VALUE
public static final String QUERY_BY_CLIENT
public static final String QUERY_BY_REFRESH_TOKEN
public static final String QUERY_EXPIRED_BY_DATE
public static final String QUERY_ALL
public static final String QUERY_BY_RESOURCE_SET
public static final String PARAM_TOKEN_VALUE
public static final String PARAM_CLIENT
public static final String PARAM_REFERSH_TOKEN
public static final String PARAM_DATE
public static final String PARAM_RESOURCE_SET_ID
public static final String PARAM_APPROVED_SITE
public static final String ID_TOKEN_FIELD_NAME
public OAuth2AccessTokenEntity()
public Map<String,Object> getAdditionalInformation()
getAdditionalInformation
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
public 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.OAuth2AccessToken
public Date getExpiration()
getExpiration
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
public void setExpiration(Date expiration)
public String getTokenType()
getTokenType
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
public void setTokenType(String tokenType)
public OAuth2RefreshTokenEntity getRefreshToken()
getRefreshToken
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
public 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.OAuth2AccessToken
public boolean isExpired()
isExpired
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
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.OAuth2AccessToken
public Set<Permission> getPermissions()
public void setPermissions(Set<Permission> permissions)
permissions
- the permissions to setpublic ApprovedSite getApprovedSite()
public void setApprovedSite(ApprovedSite approvedSite)
public void setIdToken(com.nimbusds.jwt.JWT idToken)
idToken
- Copyright © 2018. All rights reserved.