public class OAuth2AccessTokenImpl extends Object implements org.springframework.security.oauth2.common.OAuth2AccessToken
Constructor and Description |
---|
OAuth2AccessTokenImpl(com.google.gson.JsonObject introspectionResponse,
String tokenString) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalInformation() |
Date |
getExpiration() |
int |
getExpiresIn() |
com.google.gson.JsonObject |
getIntrospectionResponse() |
org.springframework.security.oauth2.common.OAuth2RefreshToken |
getRefreshToken() |
Set<String> |
getScope() |
String |
getTokenType() |
String |
getValue() |
boolean |
isExpired() |
void |
setIntrospectionResponse(com.google.gson.JsonObject token) |
public OAuth2AccessTokenImpl(com.google.gson.JsonObject introspectionResponse, String tokenString)
public Map<String,Object> getAdditionalInformation()
getAdditionalInformation
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
public Set<String> getScope()
getScope
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
public org.springframework.security.oauth2.common.OAuth2RefreshToken getRefreshToken()
getRefreshToken
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
public String getTokenType()
getTokenType
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
public boolean isExpired()
isExpired
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
public Date getExpiration()
getExpiration
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
public int getExpiresIn()
getExpiresIn
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
public String getValue()
getValue
in interface org.springframework.security.oauth2.common.OAuth2AccessToken
public com.google.gson.JsonObject getIntrospectionResponse()
public void setIntrospectionResponse(com.google.gson.JsonObject token)
token
- the token to setCopyright © 2018. All rights reserved.