IAuthScheme.Authenticate(ICredentials, IHttpRequest) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
產生給定集合 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
參數
- credentials
- ICredentials
用於陶藝的資格證明
- request
- IHttpRequest
請求正在驗證
傳回
- 屬性
例外狀況
若因認證失敗無法產生授權字串
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。