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.OAuth2AccessTokenpublic Set<String> getScope()
getScope in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic org.springframework.security.oauth2.common.OAuth2RefreshToken getRefreshToken()
getRefreshToken in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic String getTokenType()
getTokenType in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic boolean isExpired()
isExpired in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic Date getExpiration()
getExpiration in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic int getExpiresIn()
getExpiresIn in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic String getValue()
getValue in interface org.springframework.security.oauth2.common.OAuth2AccessTokenpublic com.google.gson.JsonObject getIntrospectionResponse()
public void setIntrospectionResponse(com.google.gson.JsonObject token)
token - the token to setCopyright © 2018. All rights reserved.