Class HybrisOAuthTokenStore
java.lang.Object
de.hybris.platform.webservicescommons.oauth2.token.provider.HybrisOAuthTokenStore
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.TokenStore
public class HybrisOAuthTokenStore
extends Object
implements org.springframework.security.oauth2.provider.token.TokenStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.security.oauth2.common.OAuth2AccessTokendeserializeAccessToken(byte[] token) protected org.springframework.security.oauth2.provider.OAuth2AuthenticationdeserializeAuthentication(byte[] authentication) protected org.springframework.security.oauth2.common.OAuth2RefreshTokendeserializeRefreshToken(byte[] token) protected StringextractTokenKey(String value) Collection<org.springframework.security.oauth2.common.OAuth2AccessToken>findTokensByClientId(String clientId) Collection<org.springframework.security.oauth2.common.OAuth2AccessToken>findTokensByClientIdAndUserName(String clientId, String userName) Collection<org.springframework.security.oauth2.common.OAuth2AccessToken>findTokensByUserName(String userName) org.springframework.security.oauth2.common.OAuth2AccessTokengetAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) protected booleanorg.springframework.security.oauth2.common.OAuth2AccessTokenreadAccessToken(String tokenValue) org.springframework.security.oauth2.provider.OAuth2AuthenticationreadAuthentication(String token) org.springframework.security.oauth2.provider.OAuth2AuthenticationreadAuthentication(org.springframework.security.oauth2.common.OAuth2AccessToken token) org.springframework.security.oauth2.provider.OAuth2Authenticationorg.springframework.security.oauth2.provider.OAuth2AuthenticationreadAuthenticationForRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token) org.springframework.security.oauth2.common.OAuth2RefreshTokenreadRefreshToken(String token) voidremoveAccessToken(String tokenValue) voidremoveAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token) voidremoveAccessTokenUsingRefreshToken(String refreshToken) voidremoveAccessTokenUsingRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken) voidremoveRefreshToken(String token) voidremoveRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token) protected voidreplaceToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication, org.springframework.security.oauth2.common.OAuth2AccessToken accessToken) protected byte[]serializeAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token) protected byte[]serializeAuthentication(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) protected byte[]serializeRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token) voidsetOauthTokenService(OAuthTokenService oauthTokenService) voidstoreAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token, org.springframework.security.oauth2.provider.OAuth2Authentication authentication) voidstoreRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
-
Constructor Details
-
HybrisOAuthTokenStore
public HybrisOAuthTokenStore()
-
-
Method Details
-
getAccessToken
public org.springframework.security.oauth2.common.OAuth2AccessToken getAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) - Specified by:
getAccessTokenin interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
replaceToken
protected void replaceToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication, org.springframework.security.oauth2.common.OAuth2AccessToken accessToken) -
storeAccessToken
public void storeAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token, org.springframework.security.oauth2.provider.OAuth2Authentication authentication) - Specified by:
storeAccessTokenin interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
isSpringDuplicateKeyException
-
readAccessToken
public org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(String tokenValue) - Specified by:
readAccessTokenin interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
removeAccessToken
public void removeAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token) - Specified by:
removeAccessTokenin interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
removeAccessToken
-
readAuthentication
public org.springframework.security.oauth2.provider.OAuth2Authentication readAuthentication(org.springframework.security.oauth2.common.OAuth2AccessToken token) - Specified by:
readAuthenticationin interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
readAuthentication
public org.springframework.security.oauth2.provider.OAuth2Authentication readAuthentication(String token) - Specified by:
readAuthenticationin interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
storeRefreshToken
public void storeRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication) - Specified by:
storeRefreshTokenin interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
readRefreshToken
- Specified by:
readRefreshTokenin interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
removeRefreshToken
public void removeRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token) - Specified by:
removeRefreshTokenin interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
removeRefreshToken
-
readAuthenticationForRefreshToken
public org.springframework.security.oauth2.provider.OAuth2Authentication readAuthenticationForRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token) - Specified by:
readAuthenticationForRefreshTokenin interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
readAuthenticationForRefreshToken
public org.springframework.security.oauth2.provider.OAuth2Authentication readAuthenticationForRefreshToken(String value) -
removeAccessTokenUsingRefreshToken
public void removeAccessTokenUsingRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken) - Specified by:
removeAccessTokenUsingRefreshTokenin interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
removeAccessTokenUsingRefreshToken
-
findTokensByClientId
public Collection<org.springframework.security.oauth2.common.OAuth2AccessToken> findTokensByClientId(String clientId) - Specified by:
findTokensByClientIdin interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
findTokensByClientIdAndUserName
public Collection<org.springframework.security.oauth2.common.OAuth2AccessToken> findTokensByClientIdAndUserName(String clientId, String userName) - Specified by:
findTokensByClientIdAndUserNamein interfaceorg.springframework.security.oauth2.provider.token.TokenStore
-
findTokensByUserName
public Collection<org.springframework.security.oauth2.common.OAuth2AccessToken> findTokensByUserName(String userName) -
extractTokenKey
-
serializeAccessToken
protected byte[] serializeAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token) -
serializeRefreshToken
protected byte[] serializeRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token) -
serializeAuthentication
protected byte[] serializeAuthentication(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) -
deserializeAccessToken
protected org.springframework.security.oauth2.common.OAuth2AccessToken deserializeAccessToken(byte[] token) -
deserializeRefreshToken
protected org.springframework.security.oauth2.common.OAuth2RefreshToken deserializeRefreshToken(byte[] token) -
deserializeAuthentication
protected org.springframework.security.oauth2.provider.OAuth2Authentication deserializeAuthentication(byte[] authentication) -
getOauthTokenService
-
setOauthTokenService
-