接口 UserAuthenticationService
- 所有已知实现类:
UserAuthenticationServiceImpl
public interface UserAuthenticationService
-
字段概要
字段 -
方法概要
修饰符和类型方法说明org.springframework.security.core.Authenticationauthenticate(String userName, String sessionId) 身份权限验证voidlogout(jakarta.servlet.http.HttpServletRequest request) 用户退出登录refreshTicket(jakarta.servlet.http.HttpServletRequest request) 刷新 tokenrefreshToken(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) token 刷新票据认证
-
字段详细资料
-
方法详细资料
-
authenticate
org.springframework.security.core.Authentication authenticate(String userName, String sessionId) throws org.springframework.security.core.AuthenticationException, IOException, jakarta.servlet.ServletException 身份权限验证- 参数:
userName- 用户名sessionId- 会话id- 返回:
- 返回权限
- 抛出:
org.springframework.security.core.AuthenticationException- 权限异常jakarta.servlet.ServletException- 权限异常IOException- 权限异常
-
ticket
SecurityUserEntity ticket(String ticket, jakarta.servlet.http.HttpServletResponse response) throws Exception 票据认证- 参数:
ticket- 票据response- 响应- 返回:
- 返回用户信息
- 抛出:
Exception- IO异常信息
-
refreshTicket
String refreshTicket(jakarta.servlet.http.HttpServletRequest request) throws GlobalException, UnsupportedEncodingException 刷新 token- 参数:
request- 响应- 返回:
- 返回票据
- 抛出:
GlobalException- 异常信息UnsupportedEncodingException- 异常信息
-
refreshToken
String refreshToken(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws GlobalException, UnsupportedEncodingException token 刷新- 参数:
request- 请求response- 响应- 返回:
- 返回最新 token
- 抛出:
GlobalException- 异常信息UnsupportedEncodingException- 异常信息
-
logout
用户退出登录- 参数:
request- 响应- 抛出:
GlobalException- 异常信息
-