类 UserAuthenticationEntryPointHandler
java.lang.Object
com.cdkjframework.security.handler.UserAuthenticationEntryPointHandler
- 所有已实现的接口:
org.springframework.security.web.AuthenticationEntryPoint
@Component
public class UserAuthenticationEntryPointHandler
extends Object
implements org.springframework.security.web.AuthenticationEntryPoint
用户身份验证入口点处理程序
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException e) 用户未登录返回结果
-
构造器详细资料
-
UserAuthenticationEntryPointHandler
public UserAuthenticationEntryPointHandler()
-
-
方法详细资料
-
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException e) throws IOException, jakarta.servlet.ServletException 用户未登录返回结果- 指定者:
commence在接口中org.springframework.security.web.AuthenticationEntryPoint- 参数:
request- 请求response- 响应e- 权限异常- 抛出:
IOException- 异常信息jakarta.servlet.ServletException- 异常信息
-