Class DefaultAuthenticationFeedbackHandler

    • Constructor Detail

      • DefaultAuthenticationFeedbackHandler

        public DefaultAuthenticationFeedbackHandler()
    • Method Detail

      • handleRedirect

        public static boolean handleRedirect​(javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
        Handles an optional request for a redirect after successful authentication and true if the request has been redirected.

        If sending the redirect response fails due to some IO problems, the request is still terminated but an error message is logged indicating the problem.

        Returns:
        true if redirect was requested. Otherwise false is returned. Note, that true is returned regardless of whether sending the redirect response succeeded or not.
      • authenticationFailed

        public void authenticationFailed​(javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response,
                                         AuthenticationInfo authInfo)
        This default implementation does nothing.

        Extensions of this class may overwrite to cleanup any internal state.

        Specified by:
        authenticationFailed in interface AuthenticationFeedbackHandler
        Parameters:
        request - The current request
        response - The current response
        authInfo - The AuthenticationInfo object used to authenticate the request.