語言

BasicScheme.Authenticate 方法

定義

多載

名稱 Description
Authenticate(ICredentials, IHttpRequest)

為當前挑戰建立一個基本的認證回應標頭。

Authenticate(ICredentials, String, Boolean)

建立一個包含指定憑證字元集與目標類型的 Basic 認證回應標頭。

Authenticate(ICredentials, IHttpRequest)

為當前挑戰建立一個基本的認證回應標頭。

[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")]
public override 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")>]
override this.Authenticate : Org.Apache.Http.Authentication.ICredentials * Org.Apache.Http.IHttpRequest -> Org.Apache.Http.IHeader

參數

credentials
ICredentials

用於基本認證的憑證。

request
IHttpRequest

HTTP 請求接收認證-回應標頭。

傳回

一個基本的認證回應標頭。

屬性

備註

本文件部分內容源自 Apache HTTP 元件,由 Apache 軟體基金會開發,並依 授權。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Authenticate(ICredentials, String, Boolean)

建立一個包含指定憑證字元集與目標類型的 Basic 認證回應標頭。

[Android.Runtime.Register("authenticate", "(Lorg/apache/http/auth/Credentials;Ljava/lang/String;Z)Lorg/apache/http/Header;", "")]
public static Org.Apache.Http.IHeader? Authenticate(Org.Apache.Http.Authentication.ICredentials? credentials, string? charset, bool proxy);
[<Android.Runtime.Register("authenticate", "(Lorg/apache/http/auth/Credentials;Ljava/lang/String;Z)Lorg/apache/http/Header;", "")>]
static member Authenticate : Org.Apache.Http.Authentication.ICredentials * string * bool -> Org.Apache.Http.IHeader

參數

credentials
ICredentials

用於基本認證的憑證。

charset
String

用於編碼憑證的字元集。

proxy
Boolean

true建立代理認證標頭;否則,。 false

傳回

一個基本的認證回應標頭。

屬性

備註

本文件部分內容源自 Apache HTTP 元件,由 Apache 軟體基金會開發,並依 授權。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於