@Deprecated public class JdbcClientTokenServices extends Object implements ClientTokenServices
Constructor and Description |
---|
JdbcClientTokenServices(DataSource dataSource)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
getAccessToken(OAuth2ProtectedResourceDetails resource,
org.springframework.security.core.Authentication authentication)
Deprecated.
Retrieve the access token for a given resource and user authentication (my be null).
|
void |
removeAccessToken(OAuth2ProtectedResourceDetails resource,
org.springframework.security.core.Authentication authentication)
Deprecated.
Remove the token (if any) that is stored with the provided resource and authentication.
|
void |
saveAccessToken(OAuth2ProtectedResourceDetails resource,
org.springframework.security.core.Authentication authentication,
OAuth2AccessToken accessToken)
Deprecated.
Save or update the access token for this resource and authentication (may be null).
|
void |
setClientKeyGenerator(ClientKeyGenerator keyGenerator)
Deprecated.
|
void |
setDeleteAccessTokenSql(String deleteAccessTokenSql)
Deprecated.
|
void |
setInsertAccessTokenSql(String insertAccessTokenSql)
Deprecated.
|
void |
setSelectAccessTokenSql(String selectAccessTokenSql)
Deprecated.
|
public JdbcClientTokenServices(DataSource dataSource)
public void setClientKeyGenerator(ClientKeyGenerator keyGenerator)
public OAuth2AccessToken getAccessToken(OAuth2ProtectedResourceDetails resource, org.springframework.security.core.Authentication authentication)
ClientTokenServices
getAccessToken
in interface ClientTokenServices
resource
- the resource to be accessedauthentication
- the current user authentication (or null if there is none)public void saveAccessToken(OAuth2ProtectedResourceDetails resource, org.springframework.security.core.Authentication authentication, OAuth2AccessToken accessToken)
ClientTokenServices
saveAccessToken
in interface ClientTokenServices
resource
- the resource to be accessedauthentication
- the current user authentication (or null if there is none)accessToken
- an access token to be storedpublic void removeAccessToken(OAuth2ProtectedResourceDetails resource, org.springframework.security.core.Authentication authentication)
ClientTokenServices
removeAccessToken
in interface ClientTokenServices
resource
- the resource to be accessedauthentication
- the current user authentication (or null if there is none)public void setInsertAccessTokenSql(String insertAccessTokenSql)
public void setSelectAccessTokenSql(String selectAccessTokenSql)
public void setDeleteAccessTokenSql(String deleteAccessTokenSql)
Copyright © 2019. All rights reserved.