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.
this.userName = userName;
this.password = (char[])password.clone();