Class DefaultAuthenticationManager

    • Constructor Detail

      • DefaultAuthenticationManager

        public DefaultAuthenticationManager()
    • Method Detail

      • doAuthenticate

        protected String doAuthenticate​(javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response)
                                 throws AuthenticationException,
                                        javax.servlet.ServletException,
                                        IOException
        Description copied from class: AuthenticationManager
        Called from the authenticate method makes the necessary processing to check if the request is authenticated or not. The simplest way to check is if the #Authenticated_user session attribute is present and return it.
        Specified by:
        doAuthenticate in class AuthenticationManager
        Parameters:
        request - HTTP request object, used for handling parameters and session attributes
        Returns:
        • The user id (AD_User_ID) if the request is already authenticated or the authentication process succeeded
        • null if the request is not authenticated or authentication process failed (e.g. wrong password)
        Throws:
        AuthenticationException
        javax.servlet.ServletException
        IOException
        See Also:
        DefaultAuthenticationManager
      • doLogout

        protected void doLogout​(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
                         throws javax.servlet.ServletException,
                                IOException
        Description copied from class: AuthenticationManager
        Method called from the logout method after clearing all session attributes. The usual process is to redirect the user to the login page
        Specified by:
        doLogout in class AuthenticationManager
        Parameters:
        request - HTTP request object
        response - HTTP response object
        Throws:
        javax.servlet.ServletException
        IOException
      • checkIfPasswordExpired

        protected void checkIfPasswordExpired​(String userId,
                                              String language)
                                       throws AuthenticationExpirationPasswordException
        Checks the expiration password date from userId, throws AuthenticationExpirationPasswordException in case that expiration date is reached
        Parameters:
        userId - The userId of the user to check expiration password date
        language - Default language for the user
        Throws:
        AuthenticationExpirationPasswordException - AuthenticationExpirationPasswordException is thrown in case that expiration date is reached