changePassword abstract method

void changePassword(
  1. PasswordChangeContext context,
  2. PasswordChangeHandler handler
)

The method that will be invoked till either the user provides the old password and a new password that conforms with the format specified by the PasswordPolicy, or till the operation is cancelled (through the PasswordChangeHandler.cancel), or till the password authenticator is permanently locked because the user provided too many times an invalid password.

Params:

  • context: the context.
  • handler: the object that must be invoked with the new and old passwords.

Implementation

void changePassword(
  PasswordChangeContext context,
  PasswordChangeHandler handler,
);