Class CustomBearerTokenAuthenticationEntryPoint

java.lang.Object
com.elitesland.ystdms.sys.security.CustomBearerTokenAuthenticationEntryPoint
All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint

public class CustomBearerTokenAuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
自定义JWT认证失败处理
  • 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:
      commence in interface org.springframework.security.web.AuthenticationEntryPoint
      Throws:
      IOException