类 CustomBearerTokenAuthenticationEntryPoint
java.lang.Object
com.elitesland.ystdms.sys.security.CustomBearerTokenAuthenticationEntryPoint
- 所有已实现的接口:
org.springframework.security.web.AuthenticationEntryPoint
public class CustomBearerTokenAuthenticationEntryPoint
extends Object
implements org.springframework.security.web.AuthenticationEntryPoint
自定义JWT认证失败处理
返回标准的 ApiResult 格式
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException)
-
构造器详细资料
-
CustomBearerTokenAuthenticationEntryPoint
public CustomBearerTokenAuthenticationEntryPoint()
-
-
方法详细资料
-
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException - 指定者:
commence在接口中org.springframework.security.web.AuthenticationEntryPoint- 抛出:
IOException
-