Class LoginAuthenticator

    • Constructor Detail

      • LoginAuthenticator

        protected LoginAuthenticator()
    • Method Detail

      • prepareRequest

        public void prepareRequest​(ServletRequest request)
        Description copied from interface: Authenticator
        Called prior to validateRequest. The authenticator can manipulate the request to update it with information that can be inspected prior to validateRequest being called. The primary purpose of this method is to satisfy the Servlet Spec 3.1 section 13.6.3 on handling Form authentication where the http method of the original request causing authentication is not the same as the http method resulting from the redirect after authentication.
        Specified by:
        prepareRequest in interface Authenticator
        Parameters:
        request - the request to manipulate
      • login

        public org.eclipse.jetty.server.UserIdentity login​(String username,
                                                           Object password,
                                                           ServletRequest servletRequest)