语言

IAuthenticationHandler.GetChallenges(IHttpResponse, IHttpContext) 方法

定义

从 HTTP 响应获取身份验证质询。

[Android.Runtime.Register("getChallenges", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Ljava/util/Map;", "GetGetChallenges_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 System.Collections.Generic.IDictionary<string,Org.Apache.Http.IHeader>? GetChallenges(Org.Apache.Http.IHttpResponse? response, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("getChallenges", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Ljava/util/Map;", "GetGetChallenges_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 GetChallenges : Org.Apache.Http.IHttpResponse * Org.Apache.Http.Protocol.IHttpContext -> System.Collections.Generic.IDictionary<string, Org.Apache.Http.IHeader>

参数

response
IHttpResponse

用于检查身份验证质询的 HTTP 响应。

context
IHttpContext

HTTP 请求执行的上下文。

返回

质询标头字典,由身份验证方案名称进行键式排序。

属性

例外

注解

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

适用于