Class BasicAuthentication.BasicResult

  • All Implemented Interfaces:
    Authentication.Result
    Enclosing class:
    BasicAuthentication

    @Deprecated(since="2021-05-27")
    public static class BasicAuthentication.BasicResult
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      BasicResult​(java.net.URI uri, java.lang.String user, java.lang.String password)
      Deprecated.
       
      BasicResult​(java.net.URI uri, HttpHeader header, java.lang.String user, java.lang.String password)
      Deprecated.
       
      BasicResult​(java.net.URI uri, HttpHeader header, java.lang.String user, java.lang.String password, java.nio.charset.Charset charset)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void apply​(Request request)
      Deprecated.
      Applies the authentication result to the given request.
      java.net.URI getURI()
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BasicResult

        public BasicResult​(java.net.URI uri,
                           java.lang.String user,
                           java.lang.String password)
        Deprecated.
      • BasicResult

        public BasicResult​(java.net.URI uri,
                           HttpHeader header,
                           java.lang.String user,
                           java.lang.String password)
        Deprecated.
      • BasicResult

        public BasicResult​(java.net.URI uri,
                           HttpHeader header,
                           java.lang.String user,
                           java.lang.String password,
                           java.nio.charset.Charset charset)
        Deprecated.
    • Method Detail

      • 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 java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object