Package org.eclipse.jetty.client.util
Class AbstractAuthentication
- java.lang.Object
-
- org.eclipse.jetty.client.util.AbstractAuthentication
-
- All Implemented Interfaces:
Authentication
- Direct Known Subclasses:
BasicAuthentication,DigestAuthentication,SPNEGOAuthentication
public abstract class AbstractAuthentication extends Object implements Authentication
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.Authentication
Authentication.HeaderInfo, Authentication.Result
-
-
Field Summary
-
Fields inherited from interface org.eclipse.jetty.client.api.Authentication
ANY_REALM
-
-
Constructor Summary
Constructors Constructor Description AbstractAuthentication(URI uri, String realm)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetRealm()abstract StringgetType()URIgetURI()booleanmatches(String type, URI uri, String realm)MatchesAuthentications based on the given parametersstatic booleanmatchesURI(URI uri1, URI uri2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.client.api.Authentication
authenticate
-
-
-
-
Method Detail
-
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: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
-
-