AbstractAuthenticationHandler.SelectScheme Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Selects an available registered scheme in preference order.
[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")]
public virtual 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")>]
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
override this.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 indexed by lowercase scheme name.
- response
- IHttpResponse
The response that supplies parameters when a scheme is created.
- context
- IHttpContext
The context that supplies the scheme registry and, if set, the scheme preference order.
Returns
The first scheme in preference order that has both a challenge and a supported registry entry. Throws an authentication exception if no scheme can be selected.
Implements
- 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.