public abstract class AbstractAuthentication extends java.lang.Object implements Authentication
Authentication.HeaderInfo, Authentication.Result
ANY_REALM
Constructor and Description |
---|
AbstractAuthentication(java.net.URI uri,
java.lang.String realm) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRealm() |
abstract java.lang.String |
getType() |
java.net.URI |
getURI() |
boolean |
matches(java.lang.String type,
java.net.URI uri,
java.lang.String realm)
Matches
Authentication s based on the given parameters |
static boolean |
matchesURI(java.net.URI uri1,
java.net.URI uri2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate
public AbstractAuthentication(java.net.URI uri, java.lang.String realm)
public abstract java.lang.String getType()
public java.net.URI getURI()
public java.lang.String getRealm()
public boolean matches(java.lang.String type, java.net.URI uri, java.lang.String realm)
Authentication
Authentication
s based on the given parametersmatches
in interface Authentication
type
- the Authentication
type such as "Basic" or "Digest"uri
- the request URIrealm
- the authentication realm as provided in the WWW-Authenticate
response headerpublic static boolean matchesURI(java.net.URI uri1, java.net.URI uri2)
Copyright © 1995–2023 Webtide. All rights reserved.