Class DeferredAuthentication

java.lang.Object
org.eclipse.jetty.security.authentication.DeferredAuthentication
All Implemented Interfaces:
Authentication, Authentication.Deferred, Authentication.LoginAuthentication, Authentication.LogoutAuthentication

public class DeferredAuthentication extends Object implements Authentication.Deferred
  • Field Details

  • Constructor Details

    • DeferredAuthentication

      public DeferredAuthentication(LoginAuthenticator authenticator)
  • Method Details

    • authenticate

      public Authentication authenticate(javax.servlet.ServletRequest request)
      Description copied from interface: Authentication.Deferred
      Authenticate if possible without sending a challenge. This is used to check credentials that have been sent for non-mandatory authentication.
      Specified by:
      authenticate in interface Authentication.Deferred
      Parameters:
      request - the request
      Returns:
      The new Authentication state.
    • authenticate

      public Authentication authenticate(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
      Description copied from interface: Authentication.Deferred
      Authenticate and possibly send a challenge. This is used to initiate authentication for previously non-mandatory authentication.
      Specified by:
      authenticate in interface Authentication.Deferred
      Parameters:
      request - the request
      response - the response
      Returns:
      The new Authentication state.
    • login

      public Authentication login(String username, Object password, javax.servlet.ServletRequest request)
      Description copied from interface: Authentication.LoginAuthentication
      Login with the LOGIN authenticator
      Specified by:
      login in interface Authentication.LoginAuthentication
      Parameters:
      username - the username
      password - the password
      request - the request
      Returns:
      The new Authentication state
    • logout

      public Authentication logout(javax.servlet.ServletRequest request)
      Description copied from interface: Authentication.LogoutAuthentication
      Remove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.
      Specified by:
      logout in interface Authentication.LogoutAuthentication
      Parameters:
      request - the request
      Returns:
      NoAuthentication if we successfully logged out
    • getPreviousAssociation

      public 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)