类 UserAuthenticationServiceImpl
java.lang.Object
com.cdkjframework.security.service.impl.UserAuthenticationServiceImpl
- 所有已实现的接口:
UserAuthenticationService
@Component
public class UserAuthenticationServiceImpl
extends Object
implements UserAuthenticationService
用户身份验证服务
-
字段概要
从接口继承的字段 com.cdkjframework.security.service.UserAuthenticationService
AUTHORIZATION, EFFECTIVE, GRANT_TYPE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.springframework.security.core.Authentication
authenticate
(String userName, String sessionId) 身份权限验证void
logout
(jakarta.servlet.http.HttpServletRequest request) 用户退出登录refreshTicket
(jakarta.servlet.http.HttpServletRequest request) 刷新票据refreshToken
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) token 刷新票据认证
-
构造器详细资料
-
UserAuthenticationServiceImpl
public UserAuthenticationServiceImpl()
-
-
方法详细资料
-
authenticate
public org.springframework.security.core.Authentication authenticate(String userName, String sessionId) throws org.springframework.security.core.AuthenticationException, IOException, jakarta.servlet.ServletException 身份权限验证- 指定者:
authenticate
在接口中UserAuthenticationService
- 参数:
userName
- 用户名sessionId
- 会话id- 返回:
- 返回权限
- 抛出:
org.springframework.security.core.AuthenticationException
- 权限异常IOException
- 权限异常jakarta.servlet.ServletException
- 权限异常
-
ticket
public SecurityUserEntity ticket(String ticket, jakarta.servlet.http.HttpServletResponse response) throws Exception 票据认证- 指定者:
ticket
在接口中UserAuthenticationService
- 参数:
ticket
- 票据response
- 响应- 返回:
- 返回用户信息
- 抛出:
IOException
- IO异常信息Exception
- IO异常信息
-
refreshTicket
public String refreshTicket(jakarta.servlet.http.HttpServletRequest request) throws GlobalException, UnsupportedEncodingException 刷新票据- 指定者:
refreshTicket
在接口中UserAuthenticationService
- 参数:
request
- 响应- 返回:
- 返回票据
- 抛出:
GlobalException
- 异常信息UnsupportedEncodingException
- 异常信息
-
refreshToken
public String refreshToken(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws GlobalException, UnsupportedEncodingException token 刷新- 指定者:
refreshToken
在接口中UserAuthenticationService
- 参数:
request
- 请求response
- 响应- 返回:
- 返回最新 token
- 抛出:
GlobalException
- 异常信息UnsupportedEncodingException
- 异常信息
-
logout
用户退出登录- 指定者:
logout
在接口中UserAuthenticationService
- 参数:
request
- 响应- 抛出:
GlobalException
- 异常信息
-