public interface TokenStore
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearTokenByOverTime(int expireTime)
清理过期的token对象
|
void |
delTokenById(String tokenId)
根据tokenId删除token对象
|
void |
moveHistoryToken(String tokenId)
Token对象移动到历史
|
void |
moveHistoryTokenByOverTime(int expireTime)
过期Token移动到历史
|
Token |
queryTokenById(String tokenId)
根据tokenId获取Token对象
|
List<Token> |
queryTokenByUserId(String userId)
根据用户标识查询Token集合
|
void |
saveToken(Token token)
token持久化
|
void |
updateToken(Token token)
更新Token对象
|
void |
validateTokenConfig(WebToken webToken)
验证配置参数 TokenStore是否支持 不支持抛出RuntimeException
|
Token queryTokenById(String tokenId) throws Exception
tokenId - 唯一标识ExceptionList<Token> queryTokenByUserId(String userId) throws Exception
userId - 用户标识Exceptionvoid updateToken(Token token) throws Exception
token - Token对象Exceptionvoid delTokenById(String tokenId) throws Exception
tokenId - 唯一标识Exceptionvoid clearTokenByOverTime(int expireTime)
throws Exception
expireTime - 过期时间 单位分钟Exceptionvoid moveHistoryTokenByOverTime(int expireTime)
throws Exception
expireTime - 过期时间 单位分钟Exceptionvoid moveHistoryToken(String tokenId) throws Exception
tokenId - Exceptionvoid validateTokenConfig(WebToken webToken)
webToken - Copyright © 2022. All rights reserved.