@Service @ConditionalOnSingleCandidate(value=FrameworkAuthService.class) public class DefaultFrameworkAuthServiceImpl extends Object implements FrameworkAuthService
| Constructor and Description |
|---|
DefaultFrameworkAuthServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.HandlerInterceptor |
authInterceptor()
获取权限拦截器
|
void |
kickOutByTokenValue(String tokenId)
强制登出
|
void |
login(String id)
登录后处理
|
String |
loginId()
当前登录id 无异常
|
String |
loginIdByToken(String token)
通过token 等到当前用户id
|
void |
logout(String tokenId)
登出
|
String |
token()
获取到token 无异常
|
String |
tokenById(String id)
通过登录id获取到token
|
long |
tokenTimeOut()
token 失效时间
|
String |
tokenWithException()
获取到token 不处理异常
|
public String token()
FrameworkAuthServicetoken in interface FrameworkAuthServicepublic String tokenWithException()
FrameworkAuthServicetokenWithException in interface FrameworkAuthServicepublic String loginId()
FrameworkAuthServiceloginId in interface FrameworkAuthServicepublic String loginIdByToken(String token)
FrameworkAuthServiceloginIdByToken in interface FrameworkAuthServicetoken - tokenpublic String tokenById(String id)
FrameworkAuthServicetokenById in interface FrameworkAuthServiceid - 登录idpublic void login(String id)
FrameworkAuthServicelogin in interface FrameworkAuthServiceid - 登录idpublic void logout(String tokenId)
FrameworkAuthServicelogout in interface FrameworkAuthServicetokenId - tokenpublic void kickOutByTokenValue(String tokenId)
FrameworkAuthServicekickOutByTokenValue in interface FrameworkAuthServicetokenId - tokenpublic long tokenTimeOut()
FrameworkAuthServicetokenTimeOut in interface FrameworkAuthServicepublic org.springframework.web.servlet.HandlerInterceptor authInterceptor()
FrameworkAuthServiceauthInterceptor in interface FrameworkAuthServiceCopyright © 2024. All rights reserved.