|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth2.client.token.JdbcClientTokenServices
public class JdbcClientTokenServices
Implementation of token services that stores tokens in a database for retrieval by client applications.
| Constructor Summary | |
|---|---|
JdbcClientTokenServices(DataSource dataSource)
|
|
| Method Summary | |
|---|---|
OAuth2AccessToken |
getAccessToken(OAuth2ProtectedResourceDetails resource,
org.springframework.security.core.Authentication authentication)
Retrieve the access token for a given resource and user authentication (my be null). |
void |
removeAccessToken(OAuth2ProtectedResourceDetails resource,
org.springframework.security.core.Authentication authentication)
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)
Save or update the access token for this resource and authentication (may be null). |
void |
setClientKeyGenerator(ClientKeyGenerator keyGenerator)
|
void |
setDeleteAccessTokenSql(String deleteAccessTokenSql)
|
void |
setInsertAccessTokenSql(String insertAccessTokenSql)
|
void |
setSelectAccessTokenSql(String selectAccessTokenSql)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcClientTokenServices(DataSource dataSource)
| Method Detail |
|---|
public void setClientKeyGenerator(ClientKeyGenerator keyGenerator)
public OAuth2AccessToken getAccessToken(OAuth2ProtectedResourceDetails resource,
org.springframework.security.core.Authentication authentication)
ClientTokenServices
getAccessToken in interface ClientTokenServicesresource - 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 ClientTokenServicesresource - the resource to be accessedauthentication - the current user authentication (or null if there is none)accessToken - an access token to be stored
public void removeAccessToken(OAuth2ProtectedResourceDetails resource,
org.springframework.security.core.Authentication authentication)
ClientTokenServices
removeAccessToken in interface ClientTokenServicesresource - 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||