WebView.GetHttpAuthUsernamePassword(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
- <xref:Android.Webkit.WebView.SetHttpAuthUsernamePassword(System.String%2c+System.String%2c+System.String%2c+System.String)>
- HasHttpAuthUsernamePassword
- ClearHttpAuthUsernamePassword()