Język

IAuthenticationHandler.GetChallenges(IHttpResponse, IHttpContext) Method

Definition

Gets the authentication challenges from the HTTP response.

[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>

Parameters

response
IHttpResponse

The HTTP response to examine for authentication challenges.

context
IHttpContext

The context for the HTTP request execution.

Returns

A dictionary of challenge headers, keyed by authentication scheme name.

Attributes

Exceptions

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