|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.springframework.security.oauth2.provider.token.JdbcTokenStore
public class JdbcTokenStore
Implementation of token services that stores tokens in a database.
| 构造方法摘要 | |
|---|---|
JdbcTokenStore(DataSource dataSource)
|
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public JdbcTokenStore(DataSource dataSource)
| 方法详细信息 |
|---|
public void setAuthenticationKeyGenerator(AuthenticationKeyGenerator authenticationKeyGenerator)
public OAuth2AccessToken getAccessToken(OAuth2Authentication authentication)
TokenStore 复制的描述
TokenStore 中的 getAccessTokenauthentication - the authentication key for the access token
public void storeAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication)
TokenStore 复制的描述
TokenStore 中的 storeAccessTokentoken - The token to store.authentication - The authentication associated with the token.public OAuth2AccessToken readAccessToken(String tokenValue)
TokenStore 复制的描述
TokenStore 中的 readAccessTokentokenValue - The token value.
public void removeAccessToken(OAuth2AccessToken token)
TokenStore 复制的描述
TokenStore 中的 removeAccessTokentoken - The token to remove from the database.public void removeAccessToken(String tokenValue)
public OAuth2Authentication readAuthentication(OAuth2AccessToken token)
TokenStore 复制的描述
TokenStore 中的 readAuthenticationtoken - The token value under which the authentication is stored.
public OAuth2Authentication readAuthentication(String token)
TokenStore 复制的描述
TokenStore 中的 readAuthenticationtoken - The token value under which the authentication is stored.
public void storeRefreshToken(OAuth2RefreshToken refreshToken,
OAuth2Authentication authentication)
TokenStore 复制的描述
TokenStore 中的 storeRefreshTokenrefreshToken - The refresh token to store.authentication - The authentication associated with the refresh token.public OAuth2RefreshToken readRefreshToken(String token)
TokenStore 复制的描述
TokenStore 中的 readRefreshTokentoken - The value of the token to read.
public void removeRefreshToken(OAuth2RefreshToken token)
TokenStore 复制的描述
TokenStore 中的 removeRefreshTokentoken - The token to remove from the database.public void removeRefreshToken(String token)
public OAuth2Authentication readAuthenticationForRefreshToken(OAuth2RefreshToken token)
TokenStore 中的 readAuthenticationForRefreshTokentoken - a refresh token
public OAuth2Authentication readAuthenticationForRefreshToken(String value)
public void removeAccessTokenUsingRefreshToken(OAuth2RefreshToken refreshToken)
TokenStore 复制的描述
TokenStore 中的 removeAccessTokenUsingRefreshTokenrefreshToken - The refresh token.public void removeAccessTokenUsingRefreshToken(String refreshToken)
public Collection<OAuth2AccessToken> findTokensByClientId(String clientId)
TokenStore 中的 findTokensByClientIdclientId - the client id
public Collection<OAuth2AccessToken> findTokensByUserName(String userName)
TokenStore 中的 findTokensByUserNameuserName - the user name to search
protected String extractTokenKey(String value)
protected byte[] serializeAccessToken(OAuth2AccessToken token)
protected byte[] serializeRefreshToken(OAuth2RefreshToken token)
protected byte[] serializeAuthentication(OAuth2Authentication authentication)
protected OAuth2AccessToken deserializeAccessToken(byte[] token)
protected OAuth2RefreshToken deserializeRefreshToken(byte[] token)
protected OAuth2Authentication deserializeAuthentication(byte[] authentication)
public void setInsertAccessTokenSql(String insertAccessTokenSql)
public void setSelectAccessTokenSql(String selectAccessTokenSql)
public void setDeleteAccessTokenSql(String deleteAccessTokenSql)
public void setInsertRefreshTokenSql(String insertRefreshTokenSql)
public void setSelectRefreshTokenSql(String selectRefreshTokenSql)
public void setDeleteRefreshTokenSql(String deleteRefreshTokenSql)
public void setSelectAccessTokenAuthenticationSql(String selectAccessTokenAuthenticationSql)
public void setSelectRefreshTokenAuthenticationSql(String selectRefreshTokenAuthenticationSql)
public void setSelectAccessTokenFromAuthenticationSql(String selectAccessTokenFromAuthenticationSql)
public void setDeleteAccessTokenFromRefreshTokenSql(String deleteAccessTokenFromRefreshTokenSql)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||