@Deprecated public class DefaultOAuth2AccessToken extends Object implements Serializable, OAuth2AccessToken
ACCESS_TOKEN, BEARER_TYPE, EXPIRES_IN, OAUTH2_TYPE, REFRESH_TOKEN, SCOPE, TOKEN_TYPE
Constructor and Description |
---|
DefaultOAuth2AccessToken(OAuth2AccessToken accessToken)
Deprecated.
Copy constructor for access token.
|
DefaultOAuth2AccessToken(String value)
Deprecated.
Create an access token from the value provided.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Deprecated.
|
Map<String,Object> |
getAdditionalInformation()
Deprecated.
Additional information that token granters would like to add to the token, e.g. to support new token types.
|
Date |
getExpiration()
Deprecated.
The instant the token expires.
|
int |
getExpiresIn()
Deprecated.
|
OAuth2RefreshToken |
getRefreshToken()
Deprecated.
The refresh token associated with the access token, if any.
|
Set<String> |
getScope()
Deprecated.
The scope of the token.
|
String |
getTokenType()
Deprecated.
The token type, as introduced in draft 11 of the OAuth 2 spec.
|
String |
getValue()
Deprecated.
The token value.
|
int |
hashCode()
Deprecated.
|
boolean |
isExpired()
Deprecated.
Convenience method for checking expiration
|
void |
setAdditionalInformation(Map<String,Object> additionalInformation)
Deprecated.
Additional information that token granters would like to add to the token, e.g. to support new token types.
|
void |
setExpiration(Date expiration)
Deprecated.
The instant the token expires.
|
protected void |
setExpiresIn(int delta)
Deprecated.
|
void |
setRefreshToken(OAuth2RefreshToken refreshToken)
Deprecated.
The refresh token associated with the access token, if any.
|
void |
setScope(Set<String> scope)
Deprecated.
The scope of the token.
|
void |
setTokenType(String tokenType)
Deprecated.
The token type, as introduced in draft 11 of the OAuth 2 spec.
|
void |
setValue(String value)
Deprecated.
|
String |
toString()
Deprecated.
|
static OAuth2AccessToken |
valueOf(Map<String,String> tokenParams)
Deprecated.
|
public DefaultOAuth2AccessToken(String value)
public DefaultOAuth2AccessToken(OAuth2AccessToken accessToken)
accessToken
- public void setValue(String value)
public String getValue()
getValue
in interface OAuth2AccessToken
public int getExpiresIn()
getExpiresIn
in interface OAuth2AccessToken
protected void setExpiresIn(int delta)
public Date getExpiration()
getExpiration
in interface OAuth2AccessToken
public void setExpiration(Date expiration)
expiration
- The instant the token expires.public boolean isExpired()
isExpired
in interface OAuth2AccessToken
public String getTokenType()
getTokenType
in interface OAuth2AccessToken
public void setTokenType(String tokenType)
tokenType
- The token type, as introduced in draft 11 of the OAuth 2 spec.public OAuth2RefreshToken getRefreshToken()
getRefreshToken
in interface OAuth2AccessToken
public void setRefreshToken(OAuth2RefreshToken refreshToken)
refreshToken
- The refresh token associated with the access token, if any.public Set<String> getScope()
getScope
in interface OAuth2AccessToken
public void setScope(Set<String> scope)
scope
- The scope of the token.public static OAuth2AccessToken valueOf(Map<String,String> tokenParams)
public Map<String,Object> getAdditionalInformation()
getAdditionalInformation
in interface OAuth2AccessToken
public void setAdditionalInformation(Map<String,Object> additionalInformation)
additionalInformation
- the additional information to setCopyright © 2019. All rights reserved.