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 Details

    • DefaultExceptionMappingAuthenticationFailureHandler

      public DefaultExceptionMappingAuthenticationFailureHandler()
  • Method Details

    • getAuthenticationFailureExceptionMappings

      protected List<AuthenticationFailureExceptionMapping> getAuthenticationFailureExceptionMappings()
      Returns:
      the currently configured list of authentication failure exception mappings
      Since:
      Authentication Service 2.3.0, Release Train 2.3.0
    • 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 interface org.springframework.security.web.authentication.AuthenticationFailureHandler
      Overrides:
      onAuthenticationFailure in class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
      Throws:
      IOException
      jakarta.servlet.ServletException
    • getMatchingAuthenticationFailureExceptionMapping

      @Nullable protected AuthenticationFailureExceptionMapping getMatchingAuthenticationFailureExceptionMapping(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
      Parameters:
      request - the request to check a match for
      response - the response to check a match for
      exception - the exception to check a match for
      Returns:
      the matching AuthenticationFailureExceptionMapping that should handle the request if found, null otherwise
      Since:
      Authentication Service 2.3.0, Release Train 2.3.0
    • handleContextRefresh

      @EventListener public void handleContextRefresh(org.springframework.context.event.ContextRefreshedEvent event)
    • setAuthenticationFailureExceptionMappings

      protected void setAuthenticationFailureExceptionMappings(List<AuthenticationFailureExceptionMapping> authenticationFailureExceptionMappings)
      Parameters:
      authenticationFailureExceptionMappings - the updated failure mappings to set
      Since:
      Authentication Service 2.3.0, Release Train 2.3.0
    • getRootCauseException

      @Deprecated(since="Authentication Service 2.3.0, Release Train 2.3.0", forRemoval=true) protected String getRootCauseException(org.springframework.security.core.AuthenticationException exception)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since Authentication Service 2.3.0, Release Train 2.3.0
      See Also:
    • getFailureUrlMap

      Deprecated.
      since Authentication Service 2.3.0, Release Train 2.3.0
      See Also: