Share via


WebView.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")]
public virtual 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")>]
abstract member GetHttpAuthUsernamePassword : string * string -> string[]
override this.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.

This member is deprecated. Use WebViewDatabase#getHttpAuthUsernamePassword instead

Java documentation for android.webkit.WebView.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

See also