PasswordChanger

public protocol PasswordChanger : PasswordPolicyProvider

The object handling the old and new password provided by the end-user.

Note

The SDK does not provide implementations of this interface. The implementation must be done by the user of the SDK.

  • 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 canceled (through the PasswordChangeHandler/cancel(), or - till the password authenticator is permanently locked because the user provided too many times an invalid password.

    Declaration

    Swift

    func changePassword(context: PasswordChangeContext, handler: PasswordChangeHandler)

    Parameters

    context

    the object containing contextual information for password changing.

    handler

    the object that is notified with the new password credentials.