|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.springframework.security.oauth2.provider.token.InMemoryTokenStore
public class InMemoryTokenStore
Implementation of token services that stores tokens in memory.
| 构造方法摘要 | |
|---|---|
InMemoryTokenStore()
|
|
| 方法摘要 | |
|---|---|
void |
clear()
Convenience method for super admin users to remove all tokens (useful for testing, not really in production) |
Collection<OAuth2AccessToken> |
findTokensByClientId(String clientId)
|
Collection<OAuth2AccessToken> |
findTokensByUserName(String userName)
|
OAuth2AccessToken |
getAccessToken(OAuth2Authentication authentication)
Retrieve an access token stored against the provided authentication key, if it exists. |
int |
getAccessTokenCount()
|
int |
getExpiryTokenCount()
|
int |
getFlushInterval()
The interval (count of token inserts) between flushing expired tokens. |
int |
getRefreshTokenCount()
|
OAuth2AccessToken |
readAccessToken(String tokenValue)
Read an access token from the store. |
OAuth2Authentication |
readAuthentication(OAuth2AccessToken token)
Read the authentication stored under the specified token value. |
OAuth2Authentication |
readAuthentication(String token)
Read the authentication stored under the specified token value. |
OAuth2Authentication |
readAuthenticationForRefreshToken(OAuth2RefreshToken token)
|
OAuth2Authentication |
readAuthenticationForRefreshToken(String token)
|
OAuth2RefreshToken |
readRefreshToken(String tokenValue)
Read a refresh token from the store. |
void |
removeAccessToken(OAuth2AccessToken accessToken)
Remove an access token from the database. |
void |
removeAccessToken(String tokenValue)
|
void |
removeAccessTokenUsingRefreshToken(OAuth2RefreshToken refreshToken)
Remove an access token using a refresh token. |
void |
removeRefreshToken(OAuth2RefreshToken refreshToken)
Remove a refresh token from the database. |
void |
removeRefreshToken(String tokenValue)
|
void |
setAuthenticationKeyGenerator(AuthenticationKeyGenerator authenticationKeyGenerator)
|
void |
setFlushInterval(int flushInterval)
The number of tokens to store before flushing expired tokens. |
void |
storeAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication)
Store an access token. |
void |
storeRefreshToken(OAuth2RefreshToken refreshToken,
OAuth2Authentication authentication)
Store the specified refresh token in the database. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public InMemoryTokenStore()
| 方法详细信息 |
|---|
public void setFlushInterval(int flushInterval)
flushInterval - the interval to setpublic int getFlushInterval()
public void clear()
public void setAuthenticationKeyGenerator(AuthenticationKeyGenerator authenticationKeyGenerator)
public int getAccessTokenCount()
public int getRefreshTokenCount()
public int getExpiryTokenCount()
public OAuth2AccessToken getAccessToken(OAuth2Authentication authentication)
TokenStore 复制的描述
TokenStore 中的 getAccessTokenauthentication - the authentication key for the access token
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 OAuth2Authentication readAuthenticationForRefreshToken(OAuth2RefreshToken token)
TokenStore 中的 readAuthenticationForRefreshTokentoken - a refresh token
public OAuth2Authentication readAuthenticationForRefreshToken(String token)
public void storeAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication)
TokenStore 复制的描述
TokenStore 中的 storeAccessTokentoken - The token to store.authentication - The authentication associated with the token.public void removeAccessToken(OAuth2AccessToken accessToken)
TokenStore 复制的描述
TokenStore 中的 removeAccessTokenaccessToken - The token to remove from the database.public OAuth2AccessToken readAccessToken(String tokenValue)
TokenStore 复制的描述
TokenStore 中的 readAccessTokentokenValue - The token value.
public void removeAccessToken(String tokenValue)
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 tokenValue)
TokenStore 复制的描述
TokenStore 中的 readRefreshTokentokenValue - The value of the token to read.
public void removeRefreshToken(OAuth2RefreshToken refreshToken)
TokenStore 复制的描述
TokenStore 中的 removeRefreshTokenrefreshToken - The token to remove from the database.public void removeRefreshToken(String tokenValue)
public void removeAccessTokenUsingRefreshToken(OAuth2RefreshToken refreshToken)
TokenStore 复制的描述
TokenStore 中的 removeAccessTokenUsingRefreshTokenrefreshToken - The refresh token.public Collection<OAuth2AccessToken> findTokensByClientId(String clientId)
TokenStore 中的 findTokensByClientIdclientId - the client id
public Collection<OAuth2AccessToken> findTokensByUserName(String userName)
TokenStore 中的 findTokensByUserNameuserName - the user name to search
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||