Class BasicAuthentication.BasicResult

java.lang.Object
org.eclipse.jetty.client.util.BasicAuthentication.BasicResult
All Implemented Interfaces:
Authentication.Result
Enclosing class:
BasicAuthentication

@Deprecated(since="2021-05-27") public static class BasicAuthentication.BasicResult extends Object implements Authentication.Result
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Basic authentication result.

Application may utilize this class directly via AuthenticationStore.addAuthenticationResult(Result) to perform preemptive authentication, that is immediately sending the authorization header based on the fact that the URI is known to require authentication and that username and password are known a priori.

  • Constructor Details

  • Method Details

    • getURI

      public URI getURI()
      Deprecated.
      Specified by:
      getURI in interface Authentication.Result
      Returns:
      the URI of the request that has been used to generate this Authentication.Result
    • apply

      public void apply(Request request)
      Deprecated.
      Description copied from interface: Authentication.Result
      Applies the authentication result to the given request. Typically, a Authorization header is added to the request, with the right information to successfully authenticate at the server.
      Specified by:
      apply in interface Authentication.Result
      Parameters:
      request - the request to authenticate
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object