|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.springframework.security.oauth2.common.DefaultOAuth2AccessToken
public class DefaultOAuth2AccessToken
Basic access token for OAuth 2.
| 字段摘要 |
|---|
| 从接口 org.springframework.security.oauth2.common.OAuth2AccessToken 继承的字段 |
|---|
ACCESS_TOKEN, BEARER_TYPE, EXPIRES_IN, OAUTH2_TYPE, REFRESH_TOKEN, SCOPE, TOKEN_TYPE |
| 构造方法摘要 | |
|---|---|
DefaultOAuth2AccessToken(OAuth2AccessToken accessToken)
Copy constructor for access token. |
|
DefaultOAuth2AccessToken(String value)
Create an access token from the value provided. |
|
| 方法摘要 | |
|---|---|
boolean |
equals(Object obj)
|
Map<String,Object> |
getAdditionalInformation()
Additional information that token granters would like to add to the token, e.g. to support new token types. |
Date |
getExpiration()
The instant the token expires. |
int |
getExpiresIn()
|
OAuth2RefreshToken |
getRefreshToken()
The refresh token associated with the access token, if any. |
Set<String> |
getScope()
The scope of the token. |
String |
getTokenType()
The token type, as introduced in draft 11 of the OAuth 2 spec. |
String |
getValue()
The token value. |
int |
hashCode()
|
boolean |
isExpired()
Convenience method for checking expiration |
void |
setAdditionalInformation(Map<String,Object> additionalInformation)
Additional information that token granters would like to add to the token, e.g. to support new token types. |
void |
setExpiration(Date expiration)
The instant the token expires. |
protected void |
setExpiresIn(int delta)
|
void |
setRefreshToken(OAuth2RefreshToken refreshToken)
The refresh token associated with the access token, if any. |
void |
setScope(Set<String> scope)
The scope of the token. |
void |
setTokenType(String tokenType)
The token type, as introduced in draft 11 of the OAuth 2 spec. |
DefaultOAuth2AccessToken |
setValue(String value)
|
String |
toString()
|
static OAuth2AccessToken |
valueOf(Map<String,String> tokenParams)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public DefaultOAuth2AccessToken(String value)
public DefaultOAuth2AccessToken(OAuth2AccessToken accessToken)
accessToken - | 方法详细信息 |
|---|
public DefaultOAuth2AccessToken setValue(String value)
public String getValue()
OAuth2AccessToken 中的 getValuepublic int getExpiresIn()
OAuth2AccessToken 中的 getExpiresInprotected void setExpiresIn(int delta)
public Date getExpiration()
OAuth2AccessToken 中的 getExpirationpublic void setExpiration(Date expiration)
expiration - The instant the token expires.public boolean isExpired()
OAuth2AccessToken 中的 isExpiredpublic String getTokenType()
OAuth2AccessToken 中的 getTokenTypepublic void setTokenType(String tokenType)
tokenType - The token type, as introduced in draft 11 of the OAuth 2 spec.public OAuth2RefreshToken getRefreshToken()
OAuth2AccessToken 中的 getRefreshTokenpublic void setRefreshToken(OAuth2RefreshToken refreshToken)
refreshToken - The refresh token associated with the access token, if any.public Set<String> getScope()
OAuth2AccessToken 中的 getScopepublic void setScope(Set<String> scope)
scope - The scope of the token.public boolean equals(Object obj)
Object 中的 equalspublic int hashCode()
Object 中的 hashCodepublic String toString()
Object 中的 toStringpublic static OAuth2AccessToken valueOf(Map<String,String> tokenParams)
public Map<String,Object> getAdditionalInformation()
OAuth2AccessToken 中的 getAdditionalInformationpublic void setAdditionalInformation(Map<String,Object> additionalInformation)
additionalInformation - the additional information to set
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||