WebViewDatabase.GetHttpAuthUsernamePassword(String, String) Method

Definition

Retrieves HTTP authentication credentials for a given host and realm from the WebViewDatabase instance.

[Android.Runtime.Register("getHttpAuthUsernamePassword", "(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;", "GetGetHttpAuthUsernamePassword_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=26)]
public abstract string[]? GetHttpAuthUsernamePassword (string? host, string? realm);
[<Android.Runtime.Register("getHttpAuthUsernamePassword", "(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;", "GetGetHttpAuthUsernamePassword_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=26)>]
abstract member GetHttpAuthUsernamePassword : string * string -> string[]

Parameters

host
String

the host to which the credentials apply

realm
String

the realm to which the credentials apply

Returns

String[]

the credentials as a String array, if found. The first element is the username and the second element is the password. null if no credentials are found.

Attributes

Remarks

Retrieves HTTP authentication credentials for a given host and realm from the WebViewDatabase instance.

Java documentation for android.webkit.WebViewDatabase.getHttpAuthUsernamePassword(java.lang.String, java.lang.String).

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