public class AuthScope
extends java.lang.Object
AuthScope represents an authentication scope consisting of
an application protocol, a host name, a port number, a realm name
and an authentication scheme name.| Constructor and Description |
|---|
AuthScope(HttpHost origin)
Defines auth scope for a specific host of origin.
|
AuthScope(HttpHost origin,
java.lang.String realm,
java.lang.String schemeName)
Defines auth scope for a specific host of origin.
|
AuthScope(java.lang.String host,
int port)
Defines auth scope with the given
host and port. |
AuthScope(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String realm,
java.lang.String schemeName)
Defines auth scope with the given
protocol, host, port,
realm, and schemeName. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getHost() |
int |
getPort() |
java.lang.String |
getProtocol() |
java.lang.String |
getRealm() |
java.lang.String |
getSchemeName() |
int |
hashCode() |
int |
match(AuthScope that)
Tests if the authentication scopes match.
|
java.lang.String |
toString() |
public AuthScope(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String realm,
java.lang.String schemeName)
protocol, host, port,
realm, and schemeName.protocol - application protocol. May be null if applies
to any protocol.host - authentication host. May be null if applies
to any host.port - authentication port. May be -1 if applies
to any port of the host.realm - authentication realm. May be null if applies
to any realm on the host.schemeName - authentication scheme name. May be null if applies
to any auth scheme supported by the host.public AuthScope(HttpHost origin,
java.lang.String realm,
java.lang.String schemeName)
origin - host of originrealm - authentication realm. May be null if applies
to any realm on the host.schemeName - authentication scheme name. May be null if applies
to any auth scheme supported by the host.public AuthScope(HttpHost origin)
origin - host of originpublic AuthScope(java.lang.String host,
int port)
host and port.host - authentication host. May be null if applies
to any host.port - authentication port. May be -1 if applies
to any port of the host.public java.lang.String getProtocol()
public java.lang.String getHost()
public int getPort()
public java.lang.String getRealm()
public java.lang.String getSchemeName()
public int match(AuthScope that)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object