Class CustomBearerTokenAuthenticationEntryPoint
java.lang.Object
com.elitesland.ystdms.sys.app.security.CustomBearerTokenAuthenticationEntryPoint
- All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint
public class CustomBearerTokenAuthenticationEntryPoint
extends Object
implements org.springframework.security.web.AuthenticationEntryPoint
自定义JWT认证失败处理
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException)
-
Constructor Details
-
CustomBearerTokenAuthenticationEntryPoint
public CustomBearerTokenAuthenticationEntryPoint()
-
-
Method Details
-
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException - Specified by:
commencein interfaceorg.springframework.security.web.AuthenticationEntryPoint- Throws:
IOException
-