Class ClearTrustAuthenticator

    • Constructor Detail

      • ClearTrustAuthenticator

        public ClearTrustAuthenticator()
    • Method Detail

      • handleLoginPrompt

        public Boolean handleLoginPrompt​(javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response,
                                         String baseURL)
        Redirects to the ClearTrust login page if the request doesn't contain cookies indicating that a positive authentication occurred.
        Specified by:
        handleLoginPrompt in interface NuxeoAuthenticationPlugin
        Parameters:
        request - the request
        response - the response
        Returns:
        true if AuthFilter must stop execution (ie: login prompt generated a redirect), false otherwise
      • handleLogout

        public Boolean handleLogout​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
        Description copied from interface: NuxeoAuthenticationPluginLogoutExtension
        Handles logout operation.

        Generic logout (killing session and Seam objects) is done by LogoutActionBean This interface must be implemented by auth plugin when the target auth system needs a specific logout procedure.

        Specified by:
        handleLogout in interface NuxeoAuthenticationPluginLogoutExtension
        Returns:
        true if there is a redirection
      • getCookies

        protected javax.servlet.http.Cookie[] getCookies​(javax.servlet.http.HttpServletRequest request)
      • displayCookieInformation

        protected void displayCookieInformation​(javax.servlet.http.Cookie[] cookies)
      • displayRequestInformation

        protected void displayRequestInformation​(javax.servlet.http.HttpServletRequest request)