Class DefaultFrameworkAuthServiceImpl
java.lang.Object
cn.sinozg.applet.common.service.impl.DefaultFrameworkAuthServiceImpl
- All Implemented Interfaces:
FrameworkAuthService
@Service
@ConditionalOnSingleCandidate(FrameworkAuthService.class)
public class DefaultFrameworkAuthServiceImpl
extends Object
implements FrameworkAuthService
鉴权默认实现
- Since:
- 2024-01-05 17:29
- Author:
- xieyubin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.HandlerInterceptor获取权限拦截器voidkickOutByTokenValue(String tokenId) 强制登出void登录后处理loginId()当前登录id 无异常loginIdByToken(String token) 通过token 等到当前用户idvoid登出token()获取到token 无异常通过登录id获取到tokenlongtoken 失效时间获取到token 不处理异常
-
Constructor Details
-
DefaultFrameworkAuthServiceImpl
public DefaultFrameworkAuthServiceImpl()
-
-
Method Details
-
token
Description copied from interface:FrameworkAuthService获取到token 无异常- Specified by:
tokenin interfaceFrameworkAuthService- Returns:
- token
-
tokenWithException
Description copied from interface:FrameworkAuthService获取到token 不处理异常- Specified by:
tokenWithExceptionin interfaceFrameworkAuthService- Returns:
- token
-
loginId
Description copied from interface:FrameworkAuthService当前登录id 无异常- Specified by:
loginIdin interfaceFrameworkAuthService- Returns:
- 登录id
-
loginIdByToken
Description copied from interface:FrameworkAuthService通过token 等到当前用户id- Specified by:
loginIdByTokenin interfaceFrameworkAuthService- Parameters:
token- token- Returns:
- 登录id
-
tokenById
Description copied from interface:FrameworkAuthService通过登录id获取到token- Specified by:
tokenByIdin interfaceFrameworkAuthService- Parameters:
id- 登录id- Returns:
- token
-
login
Description copied from interface:FrameworkAuthService登录后处理- Specified by:
loginin interfaceFrameworkAuthService- Parameters:
id- 登录id
-
logout
Description copied from interface:FrameworkAuthService登出- Specified by:
logoutin interfaceFrameworkAuthService- Parameters:
tokenId- token
-
kickOutByTokenValue
Description copied from interface:FrameworkAuthService强制登出- Specified by:
kickOutByTokenValuein interfaceFrameworkAuthService- Parameters:
tokenId- token
-
tokenTimeOut
public long tokenTimeOut()Description copied from interface:FrameworkAuthServicetoken 失效时间- Specified by:
tokenTimeOutin interfaceFrameworkAuthService- Returns:
- 失效时间
-
authInterceptor
public org.springframework.web.servlet.HandlerInterceptor authInterceptor()Description copied from interface:FrameworkAuthService获取权限拦截器- Specified by:
authInterceptorin interfaceFrameworkAuthService- Returns:
- 拦截器
-