AuthScope represents an authentication scope consisting of a host name,
a port number, a realm name and an authentication scheme name.
This class can also optionally contain a host of origin, if created in response to authentication challenge from a specific host.
| Modifier and Type | Field and Description |
|---|---|
| public static final AuthScope | ANY
Default scope matching any host, port, realm and authentication scheme. |
| public static final String | ANY_HOST
The |
| public static final int | ANY_PORT
The |
| public static final String | ANY_REALM
The |
| public static final String | ANY_SCHEME
The |
| private final String | host
The host the credentials apply to. |
| private final HttpHost | origin
The original host, if known |
| private final int | port
The port the credentials apply to. |
| private final String | realm
The realm the credentials apply to. |
| private final String | scheme
The authentication scheme the credentials apply to. |
| Access | Constructor and Description |
|---|---|
| public | AuthScope(final String
authentication host. May be host, final int ANY_HOST if applies
to any host.authentication port. May be port, final String ANY_PORT if applies
to any port of the host.authentication realm. May be realm, final String ANY_REALM if applies
to any realm on the host.authentication scheme. May be schemeName)ANY_SCHEME if applies
to any scheme supported by the host.Defines auth scope with the given |
| public | AuthScope(final HttpHost
host of origin origin, final String authentication realm. May be realm, final String ANY_REALM if applies
to any realm on the host.authentication scheme. May be schemeName)ANY_SCHEME if applies
to any scheme supported by the host.Defines auth scope for a specific host of origin. |
| public | |
| public | AuthScope(final String
authentication host. May be host, final int ANY_HOST if applies
to any host.authentication port. May be port, final String ANY_PORT if applies
to any port of the host.authentication realm. May be realm)ANY_REALM if applies
to any realm on the host.Defines auth scope with the given |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. |
| public String | |
| public HttpHost | |
| public int | |
| public String | |
| public String | |
| public int | |
| public int | |
| public String |
| ANY | back to summary |
|---|---|
| public static final AuthScope ANY Default scope matching any host, port, realm and authentication scheme. In the future versions of HttpClient the use of this parameter will be discontinued. | |
| ANY_HOST | back to summary |
|---|---|
| public static final String ANY_HOST The | |
| ANY_PORT | back to summary |
|---|---|
| public static final int ANY_PORT The | |
| ANY_REALM | back to summary |
|---|---|
| public static final String ANY_REALM The | |
| ANY_SCHEME | back to summary |
|---|---|
| public static final String ANY_SCHEME The | |
| host | back to summary |
|---|---|
| private final String host The host the credentials apply to. | |
| origin | back to summary |
|---|---|
| private final HttpHost origin The original host, if known | |
| port | back to summary |
|---|---|
| private final int port The port the credentials apply to. | |
| realm | back to summary |
|---|---|
| private final String realm The realm the credentials apply to. | |
| scheme | back to summary |
|---|---|
| private final String scheme The authentication scheme the credentials apply to. | |
| AuthScope | back to summary |
|---|---|
| public AuthScope(final String host, final int port, final String realm, final String schemeName) Defines auth scope with the given
| |
| AuthScope | back to summary |
|---|---|
| public AuthScope(final HttpHost origin, final String realm, final String schemeName) Defines auth scope for a specific host of origin.
| |
| AuthScope | back to summary |
|---|---|
| public AuthScope(final HttpHost origin) Defines auth scope for a specific host of origin.
| |
| AuthScope | back to summary |
|---|---|
| public AuthScope(final String host, final int port, final String realm) Defines auth scope with the given | |
| AuthScope | back to summary |
|---|---|
| public AuthScope(final String host, final int port) Defines auth scope with the given | |
| AuthScope | back to summary |
|---|---|
| public AuthScope(final AuthScope authscope) Creates a copy of the given credentials scope. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getHost | back to summary |
|---|---|
public String getHost()
| |
| getOrigin | back to summary |
|---|---|
public HttpHost getOrigin()
| |
| getPort | back to summary |
|---|---|
public int getPort()
| |
| getRealm | back to summary |
|---|---|
public String getRealm()
| |
| getScheme | back to summary |
|---|---|
public String getScheme()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| match | back to summary |
|---|---|
| public int match(final AuthScope that) Tests if the authentication scopes match.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |