((PasswordCredential) this.credential).getValue() != password &&
((PasswordCredential) this.credential).getValue() == null ||
!((PasswordCredential) this.credential).getValue().equals(password)) {
this.credential = new PasswordCredential(password);
invalid = false;
manager.fireEvent(new CredentialsUpdatedEvent());
}
}