Class LdapLoginWorker


  • public class LdapLoginWorker
    extends LoginWorker
    Common LDAP Login Workers
    • Constructor Detail

      • LdapLoginWorker

        public LdapLoginWorker()
    • Method Detail

      • checkLogin

        public static java.lang.String checkLogin​(HttpServletRequest request,
                                                  HttpServletResponse response)
        An HTTP WebEvent handler that checks to see is a userLogin is logged in. If not, the user is forwarded to the login page.
        Parameters:
        request - The HTTP request object for the current JSP or Servlet request.
        response - The HTTP response object for the current JSP or Servlet request.
        Returns:
        String
      • login

        public static java.lang.String login​(HttpServletRequest request,
                                             HttpServletResponse response)
        An HTTP WebEvent handler that logs in a userLogin. This should run before the security check.
        Parameters:
        request - The HTTP request object for the current JSP or Servlet request.
        response - The HTTP response object for the current JSP or Servlet request.
        Returns:
        Return a boolean which specifies whether or not the calling Servlet or JSP should generate its own content. This allows an event to override the default content.
      • logout

        public static java.lang.String logout​(HttpServletRequest request,
                                              HttpServletResponse response)
        An HTTP WebEvent handler that logs out a userLogin by clearing the session.
        Parameters:
        request - The HTTP request object for the current request.
        response - The HTTP response object for the current request.
        Returns:
        Return a boolean which specifies whether or not the calling request should generate its own content. This allows an event to override the default content.
      • getRootElement

        protected static org.w3c.dom.Element getRootElement​(HttpServletRequest request)