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.

the user namethe user's password

Namespace:  Kaazing.Security
Assembly:  Kaazing.Gateway (in Kaazing.Gateway.dll)

Syntax

Visual Basic
Public Sub New ( _
	userName As String, _
	password As Char() _
)
C#
public PasswordAuthentication(
	string userName,
	char[] password
)
Visual C++
public:
PasswordAuthentication(
	String^ userName, 
	array<wchar_t>^ password
)

Parameters

userName
Type: System..::..String
password
Type: array<System..::..Char>[]()[][]

See Also