| java.lang.Object org.apache.commons.httpclient.auth.AuthScope
All known Subclasses: org.apache.commons.httpclient.auth.HttpAuthRealm,
Field Summary | |
final public static AuthScope | ANY Default scope matching any host, port, realm and authentication scheme. | final public static String | ANY_HOST The null value represents any host. | final public static int | ANY_PORT The -1 value represents any port. | final public static String | ANY_REALM The null value represents any realm. | final public static String | ANY_SCHEME The null value represents any authentication scheme. |
Constructor Summary | |
public | AuthScope(String host, int port, String realm, String scheme) Creates a new credentials scope for the given
host, port, realm, and
authentication scheme.
Parameters: host - the host the credentials apply to. | public | AuthScope(String host, int port, String realm) Creates a new credentials scope for the given
host, port, realm, and any
authentication scheme.
Parameters: host - the host the credentials apply to. | public | AuthScope(String host, int port) Creates a new credentials scope for the given
host, port, any realm name, and any
authentication scheme.
Parameters: host - the host the credentials apply to. | public | AuthScope(AuthScope authscope) Creates a copy of the given credentials scope. |
ANY | final public static AuthScope ANY(Code) | | 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 | final public static String ANY_HOST(Code) | | The null value represents any host. In the future versions of
HttpClient the use of this parameter will be discontinued.
|
ANY_PORT | final public static int ANY_PORT(Code) | | The -1 value represents any port.
|
ANY_REALM | final public static String ANY_REALM(Code) | | The null value represents any realm.
|
ANY_SCHEME | final public static String ANY_SCHEME(Code) | | The null value represents any authentication scheme.
|
AuthScope | public AuthScope(String host, int port, String realm, String scheme)(Code) | | Creates a new credentials scope for the given
host, port, realm, and
authentication scheme.
Parameters: host - the host the credentials apply to. May be setto null if credenticals are applicable toany host. Parameters: port - the port the credentials apply to. May be setto negative value if credenticals are applicable toany port. Parameters: realm - the realm the credentials apply to. May be set to null if credenticals are applicable toany realm. Parameters: scheme - the authentication scheme the credentials apply to. May be set to null if credenticals are applicable toany authentication scheme. since: 3.0 |
AuthScope | public AuthScope(String host, int port, String realm)(Code) | | Creates a new credentials scope for the given
host, port, realm, and any
authentication scheme.
Parameters: host - the host the credentials apply to. May be setto null if credenticals are applicable toany host. Parameters: port - the port the credentials apply to. May be setto negative value if credenticals are applicable toany port. Parameters: realm - the realm the credentials apply to. May be set to null if credenticals are applicable toany realm. since: 3.0 |
AuthScope | public AuthScope(String host, int port)(Code) | | Creates a new credentials scope for the given
host, port, any realm name, and any
authentication scheme.
Parameters: host - the host the credentials apply to. May be setto null if credenticals are applicable toany host. Parameters: port - the port the credentials apply to. May be setto negative value if credenticals are applicable toany port. since: 3.0 |
AuthScope | public AuthScope(AuthScope authscope)(Code) | | Creates a copy of the given credentials scope.
since: 3.0 |
getPort | public int getPort()(Code) | | the port since: 3.0 |
getRealm | public String getRealm()(Code) | | the realm name since: 3.0 |
getScheme | public String getScheme()(Code) | | the scheme type since: 3.0 |
match | public int match(AuthScope that)(Code) | | Tests if the authentication scopes match.
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 |
|
|