org.apache.commons.httpclient.auth
public class AuthScope extends Object
Since: 3.0
Field Summary | |
---|---|
static AuthScope | ANY
Default scope matching any host, port, realm and authentication scheme.
|
static String | ANY_HOST
The null value represents any host. |
static int | ANY_PORT
The -1 value represents any port. |
static String | ANY_REALM
The null value represents any realm. |
static String | ANY_SCHEME
The null value represents any authentication scheme. |
Constructor Summary | |
---|---|
AuthScope(String host, int port, String realm, String scheme) Creates a new credentials scope for the given
host, port, realm, and
authentication scheme.
| |
AuthScope(String host, int port, String realm) Creates a new credentials scope for the given
host, port, realm, and any
authentication scheme.
| |
AuthScope(String host, int port) Creates a new credentials scope for the given
host, port, any realm name, and any
authentication scheme.
| |
AuthScope(AuthScope authscope)
Creates a copy of the given credentials scope.
|
Method Summary | |
---|---|
boolean | equals(Object o) |
String | getHost() |
int | getPort() |
String | getRealm() |
String | getScheme() |
int | hashCode() |
int | match(AuthScope that)
Tests if the authentication scopes match.
|
String | toString() |
Parameters: host the host the credentials apply to. May be set to null if credenticals are applicable to any host. port the port the credentials apply to. May be set to negative value if credenticals are applicable to any port. realm the realm the credentials apply to. May be set to null if credenticals are applicable to any realm. scheme the authentication scheme the credentials apply to. May be set to null if credenticals are applicable to any authentication scheme.
Since: 3.0
Parameters: host the host the credentials apply to. May be set to null if credenticals are applicable to any host. port the port the credentials apply to. May be set to negative value if credenticals are applicable to any port. realm the realm the credentials apply to. May be set to null if credenticals are applicable to any realm.
Since: 3.0
Parameters: host the host the credentials apply to. May be set to null if credenticals are applicable to any host. port the port the credentials apply to. May be set to negative value if credenticals are applicable to any port.
Since: 3.0
Since: 3.0
See Also: java.lang.Object#equals(Object)
Returns: the host
Since: 3.0
Returns: the port
Since: 3.0
Returns: the realm name
Since: 3.0
Returns: the scheme type
Since: 3.0
See Also: java.lang.Object#hashCode()
Returns: the match factor. Negative value signifies no match. Non-negative signifies a match. The greater the returned value the closer the match.
Since: 3.0
See Also: java.lang.Object#toString()