PasswordAuthentication(String, Char[]) Constructor

Definition

Creates a new PasswordAuthentication object from the given user name and password.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[C)V", "")]
public PasswordAuthentication (string? userName, char[]? password);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[C)V", "")>]
new Java.Net.PasswordAuthentication : string * char[] -> Java.Net.PasswordAuthentication

Parameters

userName
String

the user name

password
Char[]

the user's password

Attributes

Remarks

Creates a new PasswordAuthentication object from the given user name and password.

Note that the given user password is cloned before it is stored in the new PasswordAuthentication object.

Java documentation for java.net.PasswordAuthentication.PasswordAuthentication(java.lang.String, char[]).

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