Class DefaultExceptionMappingAuthenticationFailureHandler
java.lang.Object
org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
com.broadleafcommerce.auth.security.web.authentication.DefaultExceptionMappingAuthenticationFailureHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationFailureHandler
public class DefaultExceptionMappingAuthenticationFailureHandler
extends org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
-
Field Summary
Fields inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,
AuthenticationFailureExceptionMapping> protected String
getRootCauseException
(org.springframework.security.core.AuthenticationException exception) void
handleContextRefresh
(org.springframework.context.event.ContextRefreshedEvent event) void
onAuthenticationFailure
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) Methods inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
getRedirectStrategy, isAllowSessionCreation, isUseForward, saveException, setAllowSessionCreation, setDefaultFailureUrl, setRedirectStrategy, setUseForward
-
Constructor Details
-
DefaultExceptionMappingAuthenticationFailureHandler
public DefaultExceptionMappingAuthenticationFailureHandler()
-
-
Method Details
-
onAuthenticationFailure
public void onAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException, jakarta.servlet.ServletException - Specified by:
onAuthenticationFailure
in interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler
- Overrides:
onAuthenticationFailure
in classorg.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
- Throws:
IOException
jakarta.servlet.ServletException
-
handleContextRefresh
@EventListener public void handleContextRefresh(org.springframework.context.event.ContextRefreshedEvent event) -
getRootCauseException
protected String getRootCauseException(org.springframework.security.core.AuthenticationException exception) -
getFailureUrlMap
-