Język

IAuthenticationHandler.SelectScheme Method

Definition

Selects a challenge and creates an authentication scheme that can process it.

[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

Parameters

challenges
IDictionary<String,IHeader>

The available challenge headers, keyed by authentication scheme name.

response
IHttpResponse

The HTTP response that contains the challenges.

context
IHttpContext

The context for the HTTP request execution.

Returns

The authentication scheme to use for authentication.

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