Class AutologonAuthenticationManager


  • public class AutologonAuthenticationManager
    extends AuthenticationManager
    Author:
    adrianromero, iperdomo
    • Constructor Detail

      • AutologonAuthenticationManager

        public AutologonAuthenticationManager()
    • Method Detail

      • 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
      • 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
      • useExternalLoginPage

        public boolean useExternalLoginPage()
        Description copied from class: AuthenticationManager
        This method can be overridden by those subclasses that expect to retrieve the authentication result from an external login page.
        Overrides:
        useExternalLoginPage in class AuthenticationManager
        Returns:
        true if the authentication result is retrieved from an external login page. Otherwise, return false which is the value returned by default.