类 AuthStateManagerImpl
java.lang.Object
xyz.raylab.authorizationserver.auth.infrastructure.AuthStateManagerImpl
- 所有已实现的接口:
AuthStateManager
-
构造器概要
构造器构造器说明AuthStateManagerImpl(org.springframework.data.redis.core.StringRedisTemplate redisTemplate, org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder) -
方法概要
修饰符和类型方法说明void销毁状态xyz.raylab.support.auth.LoginUsergetLoginUser(String token) 获取登录用户获取认证令牌getTokenByRefreshToken(String refreshToken) 获取认证令牌getTokenByUsername(String username) 获取认证令牌boolean是否已登录voidsave(AuthenticationToken token, xyz.raylab.support.auth.LoginUser loginUser) 保存状态voidupdate(AuthenticationToken token) 更新状态voidupdate(xyz.raylab.support.auth.LoginUser loginUser) 更新状态
-
构造器详细资料
-
AuthStateManagerImpl
@Autowired public AuthStateManagerImpl(org.springframework.data.redis.core.StringRedisTemplate redisTemplate, org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder)
-
-
方法详细资料
-
save
从接口复制的说明:AuthStateManager保存状态- 指定者:
save在接口中AuthStateManager- 参数:
token- 认证令牌loginUser- 登录用户
-
isLogged
从接口复制的说明:AuthStateManager是否已登录- 指定者:
isLogged在接口中AuthStateManager- 参数:
username- 用户名- 返回:
- 结果
-
getLoginUser
从接口复制的说明:AuthStateManager获取登录用户- 指定者:
getLoginUser在接口中AuthStateManager- 参数:
token- accessToken- 返回:
- 登录用户
-
getTokenByUsername
从接口复制的说明:AuthStateManager获取认证令牌- 指定者:
getTokenByUsername在接口中AuthStateManager- 参数:
username- 用户名- 返回:
- 认证令牌
-
getTokenByRefreshToken
从接口复制的说明:AuthStateManager获取认证令牌- 指定者:
getTokenByRefreshToken在接口中AuthStateManager- 参数:
refreshToken- 刷新令牌- 返回:
- 认证令牌
-
getToken
从接口复制的说明:AuthStateManager获取认证令牌- 指定者:
getToken在接口中AuthStateManager- 参数:
token- accessToken- 返回:
- 认证令牌
-
update
从接口复制的说明:AuthStateManager更新状态- 指定者:
update在接口中AuthStateManager- 参数:
token- 认证令牌
-
update
public void update(xyz.raylab.support.auth.LoginUser loginUser) 从接口复制的说明:AuthStateManager更新状态- 指定者:
update在接口中AuthStateManager- 参数:
loginUser- 登录用户
-
destroy
从接口复制的说明:AuthStateManager销毁状态- 指定者:
destroy在接口中AuthStateManager- 参数:
token- accessToken
-