|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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.
| 构造方法摘要 | |
|---|---|
JdbcClientTokenServices(DataSource dataSource)
|
|
| 方法摘要 | |
|---|---|
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)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public JdbcClientTokenServices(DataSource dataSource)
| 方法详细信息 |
|---|
public void setClientKeyGenerator(ClientKeyGenerator keyGenerator)
public OAuth2AccessToken getAccessToken(OAuth2ProtectedResourceDetails resource,
org.springframework.security.core.Authentication authentication)
ClientTokenServices 复制的描述
ClientTokenServices 中的 getAccessTokenresource - 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 复制的描述
ClientTokenServices 中的 saveAccessTokenresource - 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 复制的描述
ClientTokenServices 中的 removeAccessTokenresource - 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)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||