Class AbstractAuthentication
java.lang.Object
org.eclipse.jetty.client.AbstractAuthentication
- All Implemented Interfaces:
 Authentication
- Direct Known Subclasses:
 BasicAuthentication, DigestAuthentication, SPNEGOAuthentication
Abstract base class for authentication implementations. Provides common functionality for URI and realm matching.
- 
Nested Class Summary
Nested classes/interfaces inherited from interface Authentication
Authentication.HeaderInfo, Authentication.Result - 
Field Summary
Fields inherited from interface Authentication
ANY_REALM - 
Constructor Summary
ConstructorsConstructorDescriptionAbstractAuthentication(URI uri, String realm) Creates an authentication for the given URI and realm. - 
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Authentication
authenticate 
- 
Constructor Details
- 
AbstractAuthentication
 
 - 
 - 
Method Details
- 
getType
 - 
getURI
- Returns:
 - the URI this authentication applies to
 
 - 
getRealm
- Returns:
 - the authentication realm
 
 - 
matches
Description copied from interface:AuthenticationMatchesAuthentications based on the given parameters- Specified by:
 matchesin interfaceAuthentication- Parameters:
 type- theAuthenticationtype such as "Basic" or "Digest"uri- the request URIrealm- the authentication realm as provided in theWWW-Authenticateresponse header- Returns:
 - true if this authentication matches, false otherwise
 
 - 
matchesURI
 
 -