Class AuthenticationEntryPointFailureHandler

    • Constructor Detail

      • AuthenticationEntryPointFailureHandler

        public AuthenticationEntryPointFailureHandler​(AuthenticationEntryPoint authenticationEntryPoint)
    • Method Detail

      • onAuthenticationFailure

        public void onAuthenticationFailure​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            AuthenticationException exception)
                                     throws java.io.IOException,
                                            javax.servlet.ServletException
        Description copied from interface: AuthenticationFailureHandler
        Called when an authentication attempt fails.
        Specified by:
        onAuthenticationFailure in interface AuthenticationFailureHandler
        Parameters:
        request - the request during which the authentication attempt occurred.
        response - the response.
        exception - the exception which was thrown to reject the authentication request.
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • setRethrowAuthenticationServiceException

        public void setRethrowAuthenticationServiceException​(boolean rethrowAuthenticationServiceException)
        Set whether to rethrow AuthenticationServiceExceptions (defaults to false)
        Parameters:
        rethrowAuthenticationServiceException - whether to rethrow AuthenticationServiceExceptions
        Since:
        5.8