|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface TokenStore
Persistence interface for OAuth2 tokens.
| 方法摘要 | |
|---|---|
Collection<OAuth2AccessToken> |
findTokensByClientId(String clientId)
|
Collection<OAuth2AccessToken> |
findTokensByUserName(String userName)
|
OAuth2AccessToken |
getAccessToken(OAuth2Authentication authentication)
Retrieve an access token stored against the provided authentication key, if it exists. |
OAuth2AccessToken |
readAccessToken(String tokenValue)
Read an access token from the store. |
OAuth2Authentication |
readAuthentication(OAuth2AccessToken token)
Read the authentication stored under the specified token value. |
OAuth2Authentication |
readAuthentication(String token)
Read the authentication stored under the specified token value. |
OAuth2Authentication |
readAuthenticationForRefreshToken(OAuth2RefreshToken token)
|
OAuth2RefreshToken |
readRefreshToken(String tokenValue)
Read a refresh token from the store. |
void |
removeAccessToken(OAuth2AccessToken token)
Remove an access token from the database. |
void |
removeAccessTokenUsingRefreshToken(OAuth2RefreshToken refreshToken)
Remove an access token using a refresh token. |
void |
removeRefreshToken(OAuth2RefreshToken token)
Remove a refresh token from the database. |
void |
storeAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication)
Store an access token. |
void |
storeRefreshToken(OAuth2RefreshToken refreshToken,
OAuth2Authentication authentication)
Store the specified refresh token in the database. |
| 方法详细信息 |
|---|
OAuth2Authentication readAuthentication(OAuth2AccessToken token)
token - The token value under which the authentication is stored.
OAuth2Authentication readAuthentication(String token)
token - The token value under which the authentication is stored.
void storeAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication)
token - The token to store.authentication - The authentication associated with the token.OAuth2AccessToken readAccessToken(String tokenValue)
tokenValue - The token value.
void removeAccessToken(OAuth2AccessToken token)
token - The token to remove from the database.
void storeRefreshToken(OAuth2RefreshToken refreshToken,
OAuth2Authentication authentication)
refreshToken - The refresh token to store.authentication - The authentication associated with the refresh token.OAuth2RefreshToken readRefreshToken(String tokenValue)
tokenValue - The value of the token to read.
OAuth2Authentication readAuthenticationForRefreshToken(OAuth2RefreshToken token)
token - a refresh token
void removeRefreshToken(OAuth2RefreshToken token)
token - The token to remove from the database.void removeAccessTokenUsingRefreshToken(OAuth2RefreshToken refreshToken)
refreshToken - The refresh token.OAuth2AccessToken getAccessToken(OAuth2Authentication authentication)
authentication - the authentication key for the access token
Collection<OAuth2AccessToken> findTokensByUserName(String userName)
userName - the user name to search
Collection<OAuth2AccessToken> findTokensByClientId(String clientId)
clientId - the client id
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||