Class DeferredAuthentication

  • All Implemented Interfaces:
    org.eclipse.jetty.server.Authentication, org.eclipse.jetty.server.Authentication.Deferred, org.eclipse.jetty.server.Authentication.LoginAuthentication, org.eclipse.jetty.server.Authentication.LogoutAuthentication

    public class DeferredAuthentication
    extends java.lang.Object
    implements org.eclipse.jetty.server.Authentication.Deferred
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Authentication

        org.eclipse.jetty.server.Authentication.Challenge, org.eclipse.jetty.server.Authentication.Deferred, org.eclipse.jetty.server.Authentication.Failed, org.eclipse.jetty.server.Authentication.Failure, org.eclipse.jetty.server.Authentication.LoginAuthentication, org.eclipse.jetty.server.Authentication.LogoutAuthentication, org.eclipse.jetty.server.Authentication.NonAuthenticated, org.eclipse.jetty.server.Authentication.ResponseSent, org.eclipse.jetty.server.Authentication.SendSuccess, org.eclipse.jetty.server.Authentication.User, org.eclipse.jetty.server.Authentication.Wrapped
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected LoginAuthenticator _authenticator  
      • Fields inherited from interface org.eclipse.jetty.server.Authentication

        NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.jetty.server.Authentication authenticate​(javax.servlet.ServletRequest request)  
      org.eclipse.jetty.server.Authentication authenticate​(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)  
      java.lang.Object getPreviousAssociation()  
      static boolean isDeferred​(javax.servlet.http.HttpServletResponse response)  
      org.eclipse.jetty.server.Authentication login​(java.lang.String username, java.lang.Object password, javax.servlet.ServletRequest request)  
      org.eclipse.jetty.server.Authentication logout​(javax.servlet.ServletRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeferredAuthentication

        public DeferredAuthentication​(LoginAuthenticator authenticator)
    • Method Detail

      • authenticate

        public org.eclipse.jetty.server.Authentication authenticate​(javax.servlet.ServletRequest request)
        Specified by:
        authenticate in interface org.eclipse.jetty.server.Authentication.Deferred
      • authenticate

        public org.eclipse.jetty.server.Authentication authenticate​(javax.servlet.ServletRequest request,
                                                                    javax.servlet.ServletResponse response)
        Specified by:
        authenticate in interface org.eclipse.jetty.server.Authentication.Deferred
      • login

        public org.eclipse.jetty.server.Authentication login​(java.lang.String username,
                                                             java.lang.Object password,
                                                             javax.servlet.ServletRequest request)
        Specified by:
        login in interface org.eclipse.jetty.server.Authentication.LoginAuthentication
      • logout

        public org.eclipse.jetty.server.Authentication logout​(javax.servlet.ServletRequest request)
        Specified by:
        logout in interface org.eclipse.jetty.server.Authentication.LogoutAuthentication
      • getPreviousAssociation

        public java.lang.Object getPreviousAssociation()
      • isDeferred

        public static boolean isDeferred​(javax.servlet.http.HttpServletResponse response)
        Parameters:
        response - the response
        Returns:
        true if this response is from a deferred call to authenticate(ServletRequest)