@Deprecated public interface TokenStore
Modifier and Type | Method and Description |
---|---|
Collection<OAuth2AccessToken> |
findTokensByClientId(String clientId)
Deprecated.
|
Collection<OAuth2AccessToken> |
findTokensByClientIdAndUserName(String clientId,
String userName)
Deprecated.
|
OAuth2AccessToken |
getAccessToken(OAuth2Authentication authentication)
Deprecated.
Retrieve an access token stored against the provided authentication key, if it exists.
|
OAuth2AccessToken |
readAccessToken(String tokenValue)
Deprecated.
Read an access token from the store.
|
OAuth2Authentication |
readAuthentication(OAuth2AccessToken token)
Deprecated.
Read the authentication stored under the specified token value.
|
OAuth2Authentication |
readAuthentication(String token)
Deprecated.
Read the authentication stored under the specified token value.
|
OAuth2Authentication |
readAuthenticationForRefreshToken(OAuth2RefreshToken token)
Deprecated.
|
OAuth2RefreshToken |
readRefreshToken(String tokenValue)
Deprecated.
Read a refresh token from the store.
|
void |
removeAccessToken(OAuth2AccessToken token)
Deprecated.
Remove an access token from the store.
|
void |
removeAccessTokenUsingRefreshToken(OAuth2RefreshToken refreshToken)
Deprecated.
Remove an access token using a refresh token.
|
void |
removeRefreshToken(OAuth2RefreshToken token)
Deprecated.
Remove a refresh token from the store.
|
void |
storeAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication)
Deprecated.
Store an access token.
|
void |
storeRefreshToken(OAuth2RefreshToken refreshToken,
OAuth2Authentication authentication)
Deprecated.
Store the specified refresh token in the store.
|
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 store.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 tokenvoid removeRefreshToken(OAuth2RefreshToken token)
token
- The token to remove from the store.void removeAccessTokenUsingRefreshToken(OAuth2RefreshToken refreshToken)
refreshToken
- The refresh token.OAuth2AccessToken getAccessToken(OAuth2Authentication authentication)
authentication
- the authentication key for the access tokenCollection<OAuth2AccessToken> findTokensByClientIdAndUserName(String clientId, String userName)
clientId
- the client id to searchuserName
- the user name to searchCollection<OAuth2AccessToken> findTokensByClientId(String clientId)
clientId
- the client id to searchCopyright © 2019. All rights reserved.