java.lang.Object | |
↳ | org.apache.http.auth.AuthScope |
The class represents an authentication scope consisting of a host name,
a port number, a realm name and an authentication scheme name which
Credentials
apply to.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ANY_PORT | The -1 value represents any port. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ANY | Default scope matching any host, port, realm and authentication scheme. | ||||||||||
ANY_HOST | The null value represents any host. | ||||||||||
ANY_REALM | The null value represents any realm. | ||||||||||
ANY_SCHEME | The null value represents any authentication scheme. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new credentials scope for the given
host, port, realm, and
authentication scheme.
| |||||||||||
Creates a new credentials scope for the given
host, port, realm, and any
authentication scheme.
| |||||||||||
Creates a new credentials scope for the given
host, port, any realm name, and any
authentication scheme.
| |||||||||||
Creates a copy of the given credentials scope.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Tests if the authentication scopes match.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The -1 value represents any port.
Default scope matching any host, port, realm and authentication scheme. In the future versions of HttpClient the use of this parameter will be discontinued.
The null value represents any host. In the future versions of HttpClient the use of this parameter will be discontinued.
The null value represents any authentication scheme.
Creates a new credentials scope for the given host, port, realm, and authentication scheme.
host | the host the credentials apply to. May be set to null if credentials are applicable to any host. |
---|---|
port | the port the credentials apply to. May be set to negative value if credentials are applicable to any port. |
realm | the realm the credentials apply to. May be set to null if credentials are applicable to any realm. |
scheme | the authentication scheme the credentials apply to. May be set to null if credentials are applicable to any authentication scheme. |
Creates a new credentials scope for the given host, port, realm, and any authentication scheme.
host | the host the credentials apply to. May be set to null if credentials are applicable to any host. |
---|---|
port | the port the credentials apply to. May be set to negative value if credentials are applicable to any port. |
realm | the realm the credentials apply to. May be set to null if credentials are applicable to any realm. |
Creates a new credentials scope for the given host, port, any realm name, and any authentication scheme.
host | the host the credentials apply to. May be set to null if credentials are applicable to any host. |
---|---|
port | the port the credentials apply to. May be set to negative value if credentials are applicable to any port. |
Creates a copy of the given credentials scope.
Tests if the authentication scopes match.