public class OpenConextOauth2JdbcTokenStore
extends org.springframework.security.oauth2.provider.token.JdbcTokenStore
JdbcTokenStore that add the ClientMetaData from Janus if it is not
present. The reason for this subclass is that the original
JdbcTokenStore#getAccessToken does also do a remove and a new insert if the
authentication has changed. We don't have the hook to enhance the
Authentication in this case (as we do with the normal
DefaultTokenServices#createAccessToken where we have a
ClientMetaDataTokenEnhancer that does the lookup of the details in Janus.| Modifier and Type | Field and Description |
|---|---|
static String |
ACCESS_TOKEN_INSERT_STATEMENT |
| Constructor and Description |
|---|
OpenConextOauth2JdbcTokenStore(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
storeAccessToken(org.springframework.security.oauth2.common.OAuth2AccessToken token,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
findTokensByClientId, findTokensByUserName, getAccessToken, readAccessToken, readAuthentication, readAuthentication, readAuthenticationForRefreshToken, readAuthenticationForRefreshToken, readRefreshToken, removeAccessToken, removeAccessToken, removeAccessTokenUsingRefreshToken, removeAccessTokenUsingRefreshToken, removeRefreshToken, removeRefreshToken, setAuthenticationKeyGenerator, setDeleteAccessTokenFromRefreshTokenSql, setDeleteAccessTokenSql, setDeleteRefreshTokenSql, setInsertAccessTokenSql, setInsertRefreshTokenSql, setSelectAccessTokenAuthenticationSql, setSelectAccessTokenFromAuthenticationSql, setSelectAccessTokenSql, setSelectRefreshTokenAuthenticationSql, setSelectRefreshTokenSql, storeRefreshTokenpublic static final String ACCESS_TOKEN_INSERT_STATEMENT
public OpenConextOauth2JdbcTokenStore(DataSource dataSource)
dataSource - 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.TokenStorestoreAccessToken in class org.springframework.security.oauth2.provider.token.JdbcTokenStoreCopyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.