Class AuthFailureHandler

java.lang.Object
io.camunda.authentication.handler.AuthFailureHandler
All Implemented Interfaces:
org.springframework.security.web.access.AccessDeniedHandler, org.springframework.security.web.authentication.AuthenticationFailureHandler, org.springframework.security.web.AuthenticationEntryPoint

@Component public final class AuthFailureHandler extends Object implements org.springframework.security.web.authentication.AuthenticationFailureHandler, org.springframework.security.web.access.AccessDeniedHandler, org.springframework.security.web.AuthenticationEntryPoint
  • Constructor Summary

    Constructors
    Constructor
    Description
    AuthFailureHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException error)
     
    void
    handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException error)
     
    void
    onAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException error)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AuthFailureHandler

      @Autowired public AuthFailureHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • onAuthenticationFailure

      public void onAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException error) throws IOException
      Specified by:
      onAuthenticationFailure in interface org.springframework.security.web.authentication.AuthenticationFailureHandler
      Throws:
      IOException
    • handle

      public void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException error) throws IOException
      Specified by:
      handle in interface org.springframework.security.web.access.AccessDeniedHandler
      Throws:
      IOException
    • commence

      public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException error) throws IOException
      Specified by:
      commence in interface org.springframework.security.web.AuthenticationEntryPoint
      Throws:
      IOException