Class AbstractAuthentication

java.lang.Object
org.eclipse.jetty.client.AbstractAuthentication
All Implemented Interfaces:
Authentication
Direct Known Subclasses:
BasicAuthentication, DigestAuthentication, SPNEGOAuthentication

public abstract class AbstractAuthentication extends Object implements Authentication
  • Constructor Details

    • AbstractAuthentication

      public AbstractAuthentication(URI uri, String realm)
  • Method Details

    • getType

      public abstract String getType()
    • getURI

      public URI getURI()
    • getRealm

      public String getRealm()
    • matches

      public boolean matches(String type, URI uri, String realm)
      Description copied from interface: Authentication
      Matches Authentications based on the given parameters
      Specified by:
      matches in interface Authentication
      Parameters:
      type - the Authentication type such as "Basic" or "Digest"
      uri - the request URI
      realm - the authentication realm as provided in the WWW-Authenticate response header
      Returns:
      true if this authentication matches, false otherwise
    • matchesURI

      public static boolean matchesURI(URI uri1, URI uri2)