类 DefaultFrameworkAuthServiceImpl
java.lang.Object
cn.sinozg.applet.common.service.impl.DefaultFrameworkAuthServiceImpl
- 所有已实现的接口:
FrameworkAuthService
@Service
@ConditionalOnSingleCandidate(FrameworkAuthService.class)
public class DefaultFrameworkAuthServiceImpl
extends Object
implements FrameworkAuthService
鉴权默认实现
- 从以下版本开始:
- 2024-01-05 17:29
- 作者:
- xieyubin
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.springframework.web.servlet.HandlerInterceptor获取权限拦截器voidkickOutByTokenValue(String tokenId) 强制登出void登录后处理loginId()当前登录id 无异常loginIdByToken(String token) 通过token 等到当前用户idvoid登出token()获取到token 无异常通过登录id获取到tokenlongtoken 失效时间获取到token 不处理异常
-
构造器详细资料
-
DefaultFrameworkAuthServiceImpl
public DefaultFrameworkAuthServiceImpl()
-
-
方法详细资料
-
token
从接口复制的说明:FrameworkAuthService获取到token 无异常- 指定者:
token在接口中FrameworkAuthService- 返回:
- token
-
tokenWithException
从接口复制的说明:FrameworkAuthService获取到token 不处理异常- 指定者:
tokenWithException在接口中FrameworkAuthService- 返回:
- token
-
loginId
从接口复制的说明:FrameworkAuthService当前登录id 无异常- 指定者:
loginId在接口中FrameworkAuthService- 返回:
- 登录id
-
loginIdByToken
从接口复制的说明:FrameworkAuthService通过token 等到当前用户id- 指定者:
loginIdByToken在接口中FrameworkAuthService- 参数:
token- token- 返回:
- 登录id
-
tokenById
从接口复制的说明:FrameworkAuthService通过登录id获取到token- 指定者:
tokenById在接口中FrameworkAuthService- 参数:
id- 登录id- 返回:
- token
-
login
从接口复制的说明:FrameworkAuthService登录后处理- 指定者:
login在接口中FrameworkAuthService- 参数:
id- 登录id
-
logout
从接口复制的说明:FrameworkAuthService登出- 指定者:
logout在接口中FrameworkAuthService- 参数:
tokenId- token
-
kickOutByTokenValue
从接口复制的说明:FrameworkAuthService强制登出- 指定者:
kickOutByTokenValue在接口中FrameworkAuthService- 参数:
tokenId- token
-
tokenTimeOut
public long tokenTimeOut()从接口复制的说明:FrameworkAuthServicetoken 失效时间- 指定者:
tokenTimeOut在接口中FrameworkAuthService- 返回:
- 失效时间
-
authInterceptor
public org.springframework.web.servlet.HandlerInterceptor authInterceptor()从接口复制的说明:FrameworkAuthService获取权限拦截器- 指定者:
authInterceptor在接口中FrameworkAuthService- 返回:
- 拦截器
-