public class CustomTokenStore
extends java.lang.Object
implements org.springframework.security.oauth2.provider.token.TokenStore
| Constructor and Description |
|---|
CustomTokenStore() |
| 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) |
java.util.Collection<org.springframework.security.oauth2.common.OAuth2AccessToken> |
findTokensByUserName(java.lang.String userName) |
org.springframework.security.oauth2.common.OAuth2AccessToken |
getAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
java.lang.String |
getDeleteAccessTokenFromRefreshTokenHql() |
java.lang.String |
getSelectAccessTokenFromAuthenticationHql() |
java.lang.String |
getSelectAccessTokenHql() |
java.lang.String |
getSelectAccessTokensFromClientIdHql() |
java.lang.String |
getSelectAccessTokensFromUserNameAndClientIdHql() |
java.lang.String |
getSelectAccessTokensFromUserNameHql() |
java.lang.String |
getSelectRefreshTokenHql() |
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.provider.OAuth2Authentication |
readAuthenticationForRefreshToken(java.lang.String value) |
org.springframework.security.oauth2.common.OAuth2RefreshToken |
readRefreshToken(java.lang.String token) |
void |
removeAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token) |
void |
removeAccessToken(java.lang.String tokenValue) |
void |
removeAccessTokenUsingRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken) |
void |
removeAccessTokenUsingRefreshToken(java.lang.String refreshToken) |
void |
removeRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token) |
void |
removeRefreshToken(java.lang.String token) |
void |
setAuthenticationKeyGenerator(org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator authenticationKeyGenerator) |
void |
setDeleteAccessTokenFromRefreshTokenHql(java.lang.String deleteAccessTokenFromRefreshTokenHql) |
void |
setSelectAccessTokenFromAuthenticationHql(java.lang.String selectAccessTokenFromAuthenticationHql) |
void |
setSelectAccessTokenHql(java.lang.String selectAccessTokenHql) |
void |
setSelectAccessTokensFromClientIdHql(java.lang.String selectAccessTokensFromClientIdHql) |
void |
setSelectAccessTokensFromUserNameAndClientIdHql(java.lang.String selectAccessTokensFromUserNameAndClientIdHql) |
void |
setSelectAccessTokensFromUserNameHql(java.lang.String selectAccessTokensFromUserNameHql) |
void |
setSelectRefreshTokenHql(java.lang.String selectRefreshTokenHql) |
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.common.OAuth2AccessToken getAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
getAccessToken in interface org.springframework.security.oauth2.provider.token.TokenStorepublic 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.TokenStorepublic org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(java.lang.String tokenValue)
readAccessToken in interface org.springframework.security.oauth2.provider.token.TokenStorepublic void removeAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token)
removeAccessToken in interface org.springframework.security.oauth2.provider.token.TokenStorepublic void removeAccessToken(java.lang.String tokenValue)
public org.springframework.security.oauth2.provider.OAuth2Authentication readAuthentication(org.springframework.security.oauth2.common.OAuth2AccessToken token)
readAuthentication in interface org.springframework.security.oauth2.provider.token.TokenStorepublic org.springframework.security.oauth2.provider.OAuth2Authentication readAuthentication(java.lang.String token)
readAuthentication in interface org.springframework.security.oauth2.provider.token.TokenStorepublic 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.TokenStorepublic org.springframework.security.oauth2.common.OAuth2RefreshToken readRefreshToken(java.lang.String token)
readRefreshToken in interface org.springframework.security.oauth2.provider.token.TokenStorepublic void removeRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token)
removeRefreshToken in interface org.springframework.security.oauth2.provider.token.TokenStorepublic void removeRefreshToken(java.lang.String token)
public org.springframework.security.oauth2.provider.OAuth2Authentication readAuthenticationForRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken token)
readAuthenticationForRefreshToken in interface org.springframework.security.oauth2.provider.token.TokenStorepublic org.springframework.security.oauth2.provider.OAuth2Authentication readAuthenticationForRefreshToken(java.lang.String value)
public void removeAccessTokenUsingRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken refreshToken)
removeAccessTokenUsingRefreshToken in interface org.springframework.security.oauth2.provider.token.TokenStorepublic void removeAccessTokenUsingRefreshToken(java.lang.String refreshToken)
public java.util.Collection<org.springframework.security.oauth2.common.OAuth2AccessToken> findTokensByClientId(java.lang.String clientId)
findTokensByClientId in interface org.springframework.security.oauth2.provider.token.TokenStorepublic java.util.Collection<org.springframework.security.oauth2.common.OAuth2AccessToken> findTokensByUserName(java.lang.String userName)
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.TokenStorepublic java.lang.String getSelectAccessTokenHql()
public void setSelectAccessTokenHql(java.lang.String selectAccessTokenHql)
public java.lang.String getSelectAccessTokenFromAuthenticationHql()
public void setSelectAccessTokenFromAuthenticationHql(java.lang.String selectAccessTokenFromAuthenticationHql)
public java.lang.String getSelectAccessTokensFromUserNameAndClientIdHql()
public void setSelectAccessTokensFromUserNameAndClientIdHql(java.lang.String selectAccessTokensFromUserNameAndClientIdHql)
public java.lang.String getSelectAccessTokensFromUserNameHql()
public void setSelectAccessTokensFromUserNameHql(java.lang.String selectAccessTokensFromUserNameHql)
public java.lang.String getSelectAccessTokensFromClientIdHql()
public void setSelectAccessTokensFromClientIdHql(java.lang.String selectAccessTokensFromClientIdHql)
public java.lang.String getSelectRefreshTokenHql()
public void setSelectRefreshTokenHql(java.lang.String selectRefreshTokenHql)
public java.lang.String getDeleteAccessTokenFromRefreshTokenHql()
public void setDeleteAccessTokenFromRefreshTokenHql(java.lang.String deleteAccessTokenFromRefreshTokenHql)