语言

IAuthenticationHandler.SelectScheme 方法

定义

选择质询并创建可以处理它的身份验证方案。

[Android.Runtime.Register("selectScheme", "(Ljava/util/Map;Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/auth/AuthScheme;", "GetSelectScheme_Ljava_util_Map_Lorg_apache_http_HttpResponse_Lorg_apache_http_protocol_HttpContext_Handler:Org.Apache.Http.Client.IAuthenticationHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.Apache.Http.Authentication.IAuthScheme? SelectScheme(System.Collections.Generic.IDictionary<string,Org.Apache.Http.IHeader>? challenges, Org.Apache.Http.IHttpResponse? response, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("selectScheme", "(Ljava/util/Map;Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/auth/AuthScheme;", "GetSelectScheme_Ljava_util_Map_Lorg_apache_http_HttpResponse_Lorg_apache_http_protocol_HttpContext_Handler:Org.Apache.Http.Client.IAuthenticationHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SelectScheme : System.Collections.Generic.IDictionary<string, Org.Apache.Http.IHeader> * Org.Apache.Http.IHttpResponse * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.Authentication.IAuthScheme

参数

challenges
IDictionary<String,IHeader>

可用质询标头,由身份验证方案名称进行密钥控制。

response
IHttpResponse

包含质询的 HTTP 响应。

context
IHttpContext

HTTP 请求执行的上下文。

返回

用于身份验证的身份验证方案。

属性

注解

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

适用于