Language

AuthScope.Match(AuthScope) Method

Definition

Tests if the authentication scopes match.

[Android.Runtime.Register("match", "(Lorg/apache/http/auth/AuthScope;)I", "GetMatch_Lorg_apache_http_auth_AuthScope_Handler")]
public virtual int Match(Org.Apache.Http.Authentication.AuthScope? that);
[<Android.Runtime.Register("match", "(Lorg/apache/http/auth/AuthScope;)I", "GetMatch_Lorg_apache_http_auth_AuthScope_Handler")>]
abstract member Match : Org.Apache.Http.Authentication.AuthScope -> int
override this.Match : Org.Apache.Http.Authentication.AuthScope -> int

Parameters

that
AuthScope

The authentication scope to compare with this scope. Must not be null.

Returns

-1 if any host, port, realm, or scheme differs and neither value for that part is a wildcard. Otherwise, a score from 0 to 15: equal schemes add 1, equal realms add 2, equal ports add 4, and equal hosts add 8. Equal wildcard values also add these scores. A higher score means a closer match.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to