public class AuthenticationServletHandler extends Object implements AuthenticationHandler
| 构造器和说明 |
|---|
AuthenticationServletHandler(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain,
framework.config.SecurityConfig securityConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getRequestMethod()
获取请求方法
|
String |
getRequestPath()
获取请求路径
|
TokenDetail |
getRequestToken()
get token
|
void |
saveTokenToCookie(String token)
将新的token写入客户端
|
void |
tokenBalanceOutput(int seconds)
令牌余量提醒
|
void |
tokenExpiredReminder(int seconds)
令牌过期提醒
|
public AuthenticationServletHandler(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain,
framework.config.SecurityConfig securityConfig)
public TokenDetail getRequestToken()
getRequestToken 在接口中 AuthenticationHandlerpublic String getRequestPath()
getRequestPath 在接口中 AuthenticationHandlerpublic String getRequestMethod()
getRequestMethod 在接口中 AuthenticationHandlerpublic void tokenExpiredReminder(int seconds)
tokenExpiredReminder 在接口中 AuthenticationHandlerseconds - public void tokenBalanceOutput(int seconds)
tokenBalanceOutput 在接口中 AuthenticationHandlerseconds - public void saveTokenToCookie(String token)
saveTokenToCookie 在接口中 AuthenticationHandlertoken - Copyright © 2025. All rights reserved.