BasicCredentialsProvider.GetCredentials(AuthScope) 方法

定义

查找身份验证范围的凭据。

[Android.Runtime.Register("getCredentials", "(Lorg/apache/http/auth/AuthScope;)Lorg/apache/http/auth/Credentials;", "GetGetCredentials_Lorg_apache_http_auth_AuthScope_Handler")]
public virtual Org.Apache.Http.Authentication.ICredentials? GetCredentials(Org.Apache.Http.Authentication.AuthScope? authscope);
[<Android.Runtime.Register("getCredentials", "(Lorg/apache/http/auth/AuthScope;)Lorg/apache/http/auth/Credentials;", "GetGetCredentials_Lorg_apache_http_auth_AuthScope_Handler")>]
abstract member GetCredentials : Org.Apache.Http.Authentication.AuthScope -> Org.Apache.Http.Authentication.ICredentials
override this.GetCredentials : Org.Apache.Http.Authentication.AuthScope -> Org.Apache.Http.Authentication.ICredentials

参数

authscope
AuthScope

要为其查找凭据的身份验证范围。

返回

与身份验证范围匹配的凭据;如果没有可用的匹配凭据,则为 null。

实现

属性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于