public class LoginCacheInfo extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
LOGIN_USER_PREFIX |
| 构造器和说明 |
|---|
LoginCacheInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
static LoginCacheInfo |
createLoginCacheInfo(String username,
org.springframework.security.core.Authentication authentication,
Long sessionToken,
TokenInfo tokenInfo)
创建登录信息
|
static TokenInfo |
createTokenInfo(String token,
Date start,
Date end)
创建token信息
|
static cloud.agileframework.cache.support.AgileCache |
getCache() |
static CurrentLoginInfo |
getCurrentLoginInfo(String token)
根据token令牌获取用户缓存信息
|
void |
parsingTimeOut()
处理掉过期时间
|
static String |
refreshToken(CurrentLoginInfo currentLoginInfo)
刷新身份令牌
|
static void |
remove(CurrentLoginInfo currentLoginInfo)
退出操作,根据currentLoginInfo删除指定会话令牌
|
static void |
remove(String token)
退出操作,根据token删除指定会话令牌
|
static void |
validateCacheDate(LoginCacheInfo loginCacheInfo)
验证当前redis缓存数据是否合法
|
public static cloud.agileframework.cache.support.AgileCache getCache()
public static LoginCacheInfo createLoginCacheInfo(String username, org.springframework.security.core.Authentication authentication, Long sessionToken, TokenInfo tokenInfo)
username - 账号authentication - 用户权限信息sessionToken - 本次会话令牌public static TokenInfo createTokenInfo(String token, Date start, Date end)
token - 令牌start - 开始时间end - 结束时间public void parsingTimeOut()
public static CurrentLoginInfo getCurrentLoginInfo(String token)
token - 令牌public static String refreshToken(CurrentLoginInfo currentLoginInfo)
currentLoginInfo - 当前登陆用户信息public static void validateCacheDate(LoginCacheInfo loginCacheInfo)
loginCacheInfo - 登陆信息public static void remove(String token)
token - 令牌public static void remove(CurrentLoginInfo currentLoginInfo)
currentLoginInfo - 当前登录信息Copyright © 2022. All rights reserved.