AuthScope represents an authentication scope consisting of
an application protocol, a host name, a port number, a realm name
and an authentication scheme name.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int | |
| private final String | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | AuthScope(final String
application protocol. May be protocol, final String null if applies
to any protocol.authentication host. May be host, final int null if applies
to any host.authentication port. May be port, final String -1 if applies
to any port of the host.authentication realm. May be realm, final String null if applies
to any realm on the host.authentication scheme name. May be schemeName)null if applies
to any auth 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 null if applies
to any realm on the host.authentication scheme name. May be schemeName)null if applies
to any auth scheme supported by the host.Defines auth scope for a specific host of origin. |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| public String | |
| public int | |
| public String | |
| public String | |
| public String | |
| public int | |
| public int | |
| public String |
| host | back to summary |
|---|---|
| private final String host | |
| port | back to summary |
|---|---|
| private final int port | |
| protocol | back to summary |
|---|---|
| private final String protocol | |
| realm | back to summary |
|---|---|
| private final String realm | |
| schemeName | back to summary |
|---|---|
| private final String schemeName | |
| AuthScope | back to summary |
|---|---|
| public AuthScope(final String protocol, 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) 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 obj) 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() | |
| getPort | back to summary |
|---|---|
| public int getPort() | |
| getProtocol | back to summary |
|---|---|
| public String getProtocol() | |
| getRealm | back to summary |
|---|---|
| public String getRealm() | |
| getSchemeName | back to summary |
|---|---|
| public String getSchemeName() | |
| 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. | |