IAuthScheme.Authenticate(ICredentials, IHttpRequest) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Produit une chaîne d’autorisation pour l’ensemble donné de ICredentials.
[Android.Runtime.Register("authenticate", "(Lorg/apache/http/auth/Credentials;Lorg/apache/http/HttpRequest;)Lorg/apache/http/Header;", "GetAuthenticate_Lorg_apache_http_auth_Credentials_Lorg_apache_http_HttpRequest_Handler:Org.Apache.Http.Authentication.IAuthSchemeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.Apache.Http.IHeader? Authenticate(Org.Apache.Http.Authentication.ICredentials? credentials, Org.Apache.Http.IHttpRequest? request);
[<Android.Runtime.Register("authenticate", "(Lorg/apache/http/auth/Credentials;Lorg/apache/http/HttpRequest;)Lorg/apache/http/Header;", "GetAuthenticate_Lorg_apache_http_auth_Credentials_Lorg_apache_http_HttpRequest_Handler:Org.Apache.Http.Authentication.IAuthSchemeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Authenticate : Org.Apache.Http.Authentication.ICredentials * Org.Apache.Http.IHttpRequest -> Org.Apache.Http.IHeader
Paramètres
- credentials
- ICredentials
Ensemble d’informations d’identification à utiliser pour l’athentication
- request
- IHttpRequest
Demande authentifiée
Retours
- Attributs
Exceptions
si la chaîne d’autorisation ne peut pas être générée en raison d’un échec d’authentification
Remarques
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.