|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth2.provider.token.JdbcTokenStore
public class JdbcTokenStore
Implementation of token services that stores tokens in a database.
| Constructor Summary | |
|---|---|
JdbcTokenStore(DataSource dataSource)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcTokenStore(DataSource dataSource)
| Method Detail |
|---|
public void setAuthenticationKeyGenerator(AuthenticationKeyGenerator authenticationKeyGenerator)
public OAuth2AccessToken getAccessToken(OAuth2Authentication authentication)
TokenStore
getAccessToken in interface TokenStoreauthentication - the authentication key for the access token
public void storeAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication)
TokenStore
storeAccessToken in interface TokenStoretoken - The token to store.authentication - The authentication associated with the token.public OAuth2AccessToken readAccessToken(String tokenValue)
TokenStore
readAccessToken in interface TokenStoretokenValue - The token value.
public void removeAccessToken(OAuth2AccessToken token)
TokenStore
removeAccessToken in interface TokenStoretoken - The token to remove from the database.public void removeAccessToken(String tokenValue)
public OAuth2Authentication readAuthentication(OAuth2AccessToken token)
TokenStore
readAuthentication in interface TokenStoretoken - The token value under which the authentication is stored.
public OAuth2Authentication readAuthentication(String token)
TokenStore
readAuthentication in interface TokenStoretoken - The token value under which the authentication is stored.
public void storeRefreshToken(OAuth2RefreshToken refreshToken,
OAuth2Authentication authentication)
TokenStore
storeRefreshToken in interface TokenStorerefreshToken - The refresh token to store.authentication - The authentication associated with the refresh token.public OAuth2RefreshToken readRefreshToken(String token)
TokenStore
readRefreshToken in interface TokenStoretoken - The value of the token to read.
public void removeRefreshToken(OAuth2RefreshToken token)
TokenStore
removeRefreshToken in interface TokenStoretoken - The token to remove from the database.public void removeRefreshToken(String token)
public OAuth2Authentication readAuthenticationForRefreshToken(OAuth2RefreshToken token)
readAuthenticationForRefreshToken in interface TokenStoretoken - a refresh token
public OAuth2Authentication readAuthenticationForRefreshToken(String value)
public void removeAccessTokenUsingRefreshToken(OAuth2RefreshToken refreshToken)
TokenStore
removeAccessTokenUsingRefreshToken in interface TokenStorerefreshToken - The refresh token.public void removeAccessTokenUsingRefreshToken(String refreshToken)
public Collection<OAuth2AccessToken> findTokensByClientId(String clientId)
findTokensByClientId in interface TokenStoreclientId - the client id
public Collection<OAuth2AccessToken> findTokensByUserName(String userName)
findTokensByUserName in interface TokenStoreuserName - the user name to search
protected String extractTokenKey(String value)
protected 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||