Creates an instance of a password authentication with a specified username and password.paramuserName the username to store.parampassword the associated password to store.sinceAndroid 1.0 this.userName = userName; this.password = password.clone();
this.userName = userName; this.password = password.clone();
Gets a clone of the password stored by this instance. The user is responsible to finalize the returned array if the password clone is no longer needed.returnthe copied password.sinceAndroid 1.0 return password.clone();
return password.clone();
Gets the username stored by this instance.returnthe stored username.sinceAndroid 1.0 return userName;
return userName;