public class ClientProxyTokenStore
extends java.lang.Object
implements org.springframework.security.oauth2.provider.token.TokenStore
ServerTokenStore
located at the middleware.Constructor and Description |
---|
ClientProxyTokenStore() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<org.springframework.security.oauth2.common.OAuth2AccessToken> |
findTokensByClientId(java.lang.String clientId) |
java.util.Collection<org.springframework.security.oauth2.common.OAuth2AccessToken> |
findTokensByClientIdAndUserName(java.lang.String clientId,
java.lang.String userName) |
org.springframework.security.oauth2.common.OAuth2AccessToken |
getAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
org.springframework.security.oauth2.common.OAuth2AccessToken |
readAccessToken(java.lang.String tokenValue) |
org.springframework.security.oauth2.provider.OAuth2Authentication |
readAuthentication(org.springframework.security.oauth2.common.OAuth2AccessToken token) |
org.springframework.security.oauth2.provider.OAuth2Authentication |
readAuthentication(java.lang.String token) |
org.springframework.security.oauth2.provider.OAuth2Authentication |
readAuthenticationForRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token) |
org.springframework.security.oauth2.common.OAuth2RefreshToken |
readRefreshToken(java.lang.String tokenValue) |
void |
removeAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token) |
void |
removeAccessTokenUsingRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken) |
void |
removeRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token) |
void |
setAuthenticationKeyGenerator(org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator authenticationKeyGenerator) |
void |
storeAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
void |
storeRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
public void setAuthenticationKeyGenerator(org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator authenticationKeyGenerator)
public org.springframework.security.oauth2.provider.OAuth2Authentication readAuthentication(org.springframework.security.oauth2.common.OAuth2AccessToken token)
readAuthentication
in interface org.springframework.security.oauth2.provider.token.TokenStore
public org.springframework.security.oauth2.provider.OAuth2Authentication readAuthentication(java.lang.String token)
readAuthentication
in interface org.springframework.security.oauth2.provider.token.TokenStore
public void storeAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
storeAccessToken
in interface org.springframework.security.oauth2.provider.token.TokenStore
public org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(java.lang.String tokenValue)
readAccessToken
in interface org.springframework.security.oauth2.provider.token.TokenStore
public void removeAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token)
removeAccessToken
in interface org.springframework.security.oauth2.provider.token.TokenStore
public org.springframework.security.oauth2.common.OAuth2AccessToken getAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
getAccessToken
in interface org.springframework.security.oauth2.provider.token.TokenStore
public void storeRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
storeRefreshToken
in interface org.springframework.security.oauth2.provider.token.TokenStore
public org.springframework.security.oauth2.common.OAuth2RefreshToken readRefreshToken(java.lang.String tokenValue)
readRefreshToken
in interface org.springframework.security.oauth2.provider.token.TokenStore
public org.springframework.security.oauth2.provider.OAuth2Authentication readAuthenticationForRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token)
readAuthenticationForRefreshToken
in interface org.springframework.security.oauth2.provider.token.TokenStore
public void removeRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token)
removeRefreshToken
in interface org.springframework.security.oauth2.provider.token.TokenStore
public void removeAccessTokenUsingRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken)
removeAccessTokenUsingRefreshToken
in interface org.springframework.security.oauth2.provider.token.TokenStore
public java.util.Collection<org.springframework.security.oauth2.common.OAuth2AccessToken> findTokensByClientIdAndUserName(java.lang.String clientId, java.lang.String userName)
findTokensByClientIdAndUserName
in interface org.springframework.security.oauth2.provider.token.TokenStore
public java.util.Collection<org.springframework.security.oauth2.common.OAuth2AccessToken> findTokensByClientId(java.lang.String clientId)
findTokensByClientId
in interface org.springframework.security.oauth2.provider.token.TokenStore