Top Fields Constructors Methods
org.eclipse.jetty.client

public abstract Class AbstractAuthentication

extends Object
implements Authentication
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.client.Authentication
Known Direct Subclasses
org.eclipse.jetty.client.BasicAuthentication, org.eclipse.jetty.client.DigestAuthentication, org.eclipse.jetty.client.SPNEGOAuthentication
Imports
java.net.URI

Field Summary

Modifier and TypeField and Description
private final String
private final URI

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public abstract String
public URI
public boolean
matches(String
the Authentication type such as "Basic" or "Digest"
type
,
URI
the request URI
uri
,
String
the authentication realm as provided in the WWW-Authenticate response header
realm
)

Implements org.eclipse.jetty.client.Authentication.matches.

Matches Authentications based on the given parameters
public static boolean
matchesURI(URI uri1, URI uri2)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

realmback to summary
private final String realm
uriback to summary
private final URI uri

Constructor Detail

AbstractAuthenticationback to summary
public AbstractAuthentication(URI uri, String realm)

Method Detail

getRealmback to summary
public String getRealm()
getTypeback to summary
public abstract String getType()
getURIback to summary
public URI getURI()
matchesback to summary
public boolean matches(String type, URI uri, String realm)

Implements org.eclipse.jetty.client.Authentication.matches.

Doc from org.eclipse.jetty.client.Authentication.matches.

Matches Authentications based on the given parameters

Parameters
type:String

the Authentication type such as "Basic" or "Digest"

uri:URI

the request URI

realm:String

the authentication realm as provided in the WWW-Authenticate response header

Returns:boolean

true if this authentication matches, false otherwise

Annotations
@Override
matchesURIback to summary
public static boolean matchesURI(URI uri1, URI uri2)