@Deprecated public class JdbcTokenStore extends Object implements TokenStore
Constructor and Description |
---|
JdbcTokenStore(DataSource dataSource)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected OAuth2AccessToken |
deserializeAccessToken(byte[] token)
Deprecated.
|
protected OAuth2Authentication |
deserializeAuthentication(byte[] authentication)
Deprecated.
|
protected OAuth2RefreshToken |
deserializeRefreshToken(byte[] token)
Deprecated.
|
protected String |
extractTokenKey(String value)
Deprecated.
|
Collection<OAuth2AccessToken> |
findTokensByClientId(String clientId)
Deprecated.
|
Collection<OAuth2AccessToken> |
findTokensByClientIdAndUserName(String clientId,
String userName)
Deprecated.
|
Collection<OAuth2AccessToken> |
findTokensByUserName(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.
|
OAuth2Authentication |
readAuthenticationForRefreshToken(String value)
Deprecated.
|
OAuth2RefreshToken |
readRefreshToken(String token)
Deprecated.
Read a refresh token from the store.
|
void |
removeAccessToken(OAuth2AccessToken token)
Deprecated.
Remove an access token from the store.
|
void |
removeAccessToken(String tokenValue)
Deprecated.
|
void |
removeAccessTokenUsingRefreshToken(OAuth2RefreshToken refreshToken)
Deprecated.
Remove an access token using a refresh token.
|
void |
removeAccessTokenUsingRefreshToken(String refreshToken)
Deprecated.
|
void |
removeRefreshToken(OAuth2RefreshToken token)
Deprecated.
Remove a refresh token from the store.
|
void |
removeRefreshToken(String token)
Deprecated.
|
protected byte[] |
serializeAccessToken(OAuth2AccessToken token)
Deprecated.
|
protected byte[] |
serializeAuthentication(OAuth2Authentication authentication)
Deprecated.
|
protected byte[] |
serializeRefreshToken(OAuth2RefreshToken token)
Deprecated.
|
void |
setAuthenticationKeyGenerator(AuthenticationKeyGenerator authenticationKeyGenerator)
Deprecated.
|
void |
setDeleteAccessTokenFromRefreshTokenSql(String deleteAccessTokenFromRefreshTokenSql)
Deprecated.
|
void |
setDeleteAccessTokenSql(String deleteAccessTokenSql)
Deprecated.
|
void |
setDeleteRefreshTokenSql(String deleteRefreshTokenSql)
Deprecated.
|
void |
setInsertAccessTokenSql(String insertAccessTokenSql)
Deprecated.
|
void |
setInsertRefreshTokenSql(String insertRefreshTokenSql)
Deprecated.
|
void |
setSelectAccessTokenAuthenticationSql(String selectAccessTokenAuthenticationSql)
Deprecated.
|
void |
setSelectAccessTokenFromAuthenticationSql(String selectAccessTokenFromAuthenticationSql)
Deprecated.
|
void |
setSelectAccessTokensFromClientIdSql(String selectAccessTokensFromClientIdSql)
Deprecated.
|
void |
setSelectAccessTokensFromUserNameAndClientIdSql(String selectAccessTokensFromUserNameAndClientIdSql)
Deprecated.
|
void |
setSelectAccessTokensFromUserNameSql(String selectAccessTokensFromUserNameSql)
Deprecated.
|
void |
setSelectAccessTokenSql(String selectAccessTokenSql)
Deprecated.
|
void |
setSelectRefreshTokenAuthenticationSql(String selectRefreshTokenAuthenticationSql)
Deprecated.
|
void |
setSelectRefreshTokenSql(String selectRefreshTokenSql)
Deprecated.
|
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.
|
public JdbcTokenStore(DataSource dataSource)
public void setAuthenticationKeyGenerator(AuthenticationKeyGenerator authenticationKeyGenerator)
public OAuth2AccessToken getAccessToken(OAuth2Authentication authentication)
TokenStore
getAccessToken
in interface TokenStore
authentication
- the authentication key for the access tokenpublic void storeAccessToken(OAuth2AccessToken token, OAuth2Authentication authentication)
TokenStore
storeAccessToken
in interface TokenStore
token
- The token to store.authentication
- The authentication associated with the token.public OAuth2AccessToken readAccessToken(String tokenValue)
TokenStore
readAccessToken
in interface TokenStore
tokenValue
- The token value.public void removeAccessToken(OAuth2AccessToken token)
TokenStore
removeAccessToken
in interface TokenStore
token
- The token to remove from the store.public void removeAccessToken(String tokenValue)
public OAuth2Authentication readAuthentication(OAuth2AccessToken token)
TokenStore
readAuthentication
in interface TokenStore
token
- The token value under which the authentication is stored.public OAuth2Authentication readAuthentication(String token)
TokenStore
readAuthentication
in interface TokenStore
token
- The token value under which the authentication is stored.public void storeRefreshToken(OAuth2RefreshToken refreshToken, OAuth2Authentication authentication)
TokenStore
storeRefreshToken
in interface TokenStore
refreshToken
- The refresh token to store.authentication
- The authentication associated with the refresh token.public OAuth2RefreshToken readRefreshToken(String token)
TokenStore
readRefreshToken
in interface TokenStore
token
- The value of the token to read.public void removeRefreshToken(OAuth2RefreshToken token)
TokenStore
removeRefreshToken
in interface TokenStore
token
- The token to remove from the store.public void removeRefreshToken(String token)
public OAuth2Authentication readAuthenticationForRefreshToken(OAuth2RefreshToken token)
readAuthenticationForRefreshToken
in interface TokenStore
token
- a refresh tokenpublic OAuth2Authentication readAuthenticationForRefreshToken(String value)
public void removeAccessTokenUsingRefreshToken(OAuth2RefreshToken refreshToken)
TokenStore
removeAccessTokenUsingRefreshToken
in interface TokenStore
refreshToken
- The refresh token.public void removeAccessTokenUsingRefreshToken(String refreshToken)
public Collection<OAuth2AccessToken> findTokensByClientId(String clientId)
findTokensByClientId
in interface TokenStore
clientId
- the client id to searchpublic Collection<OAuth2AccessToken> findTokensByUserName(String userName)
public Collection<OAuth2AccessToken> findTokensByClientIdAndUserName(String clientId, String userName)
findTokensByClientIdAndUserName
in interface TokenStore
clientId
- the client id to searchuserName
- the user name to searchprotected byte[] serializeAccessToken(OAuth2AccessToken token)
protected byte[] serializeRefreshToken(OAuth2RefreshToken token)
protected byte[] serializeAuthentication(OAuth2Authentication authentication)
protected OAuth2AccessToken deserializeAccessToken(byte[] token)
protected OAuth2RefreshToken deserializeRefreshToken(byte[] token)
protected OAuth2Authentication deserializeAuthentication(byte[] authentication)
public void setInsertAccessTokenSql(String insertAccessTokenSql)
public void setSelectAccessTokenSql(String selectAccessTokenSql)
public void setDeleteAccessTokenSql(String deleteAccessTokenSql)
public void setInsertRefreshTokenSql(String insertRefreshTokenSql)
public void setSelectRefreshTokenSql(String selectRefreshTokenSql)
public void setDeleteRefreshTokenSql(String deleteRefreshTokenSql)
public void setSelectAccessTokenAuthenticationSql(String selectAccessTokenAuthenticationSql)
public void setSelectRefreshTokenAuthenticationSql(String selectRefreshTokenAuthenticationSql)
public void setSelectAccessTokenFromAuthenticationSql(String selectAccessTokenFromAuthenticationSql)
public void setDeleteAccessTokenFromRefreshTokenSql(String deleteAccessTokenFromRefreshTokenSql)
public void setSelectAccessTokensFromUserNameSql(String selectAccessTokensFromUserNameSql)
public void setSelectAccessTokensFromUserNameAndClientIdSql(String selectAccessTokensFromUserNameAndClientIdSql)
public void setSelectAccessTokensFromClientIdSql(String selectAccessTokensFromClientIdSql)
Copyright © 2019. All rights reserved.