public PasswordAuthentication (String userName, char[] password)

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.

Parameters:
userName    the user name
password    the user's password