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
ConstructorsConstructorDescriptionAuthFailureHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException error) voidhandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException error) voidonAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException error)
-
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:
onAuthenticationFailurein interfaceorg.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:
handlein interfaceorg.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:
commencein interfaceorg.springframework.security.web.AuthenticationEntryPoint- Throws:
IOException
-