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
-
-
Constructor Summary
Constructors Constructor Description DefaultExceptionMappingAuthenticationFailureHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,AuthenticationFailureExceptionMapping>getFailureUrlMap()protected StringgetRootCauseException(org.springframework.security.core.AuthenticationException exception)voidhandleContextRefresh(org.springframework.context.event.ContextRefreshedEvent event)voidonAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
-
-
-
Method Detail
-
onAuthenticationFailure
public void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException, javax.servlet.ServletException- Specified by:
onAuthenticationFailurein interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler- Overrides:
onAuthenticationFailurein classorg.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler- Throws:
IOExceptionjavax.servlet.ServletException
-
handleContextRefresh
@EventListener public void handleContextRefresh(org.springframework.context.event.ContextRefreshedEvent event)
-
getRootCauseException
protected String getRootCauseException(org.springframework.security.core.AuthenticationException exception)
-
getFailureUrlMap
protected Map<String,AuthenticationFailureExceptionMapping> getFailureUrlMap()
-
-