changeIdentityPasswordAsync method

Future<String> changeIdentityPasswordAsync(
  1. String userId,
  2. String currentPassword,
  3. String newPassword
)

Change the password use to encrypt the identity for the userId.

userId - The ID of the user. currentPassword - The user's current password. newPassword - The new password.

Returns the new SSKS ID of the stored identity

Implementation

Future<String> changeIdentityPasswordAsync(
    String userId, String currentPassword, String newPassword) {
  final _TransferablePointer<NativeSealdSsksPasswordPlugin> tPtr = _ptr;
  return compute(
      (Map<String, dynamic> args) => SealdSsksPasswordPlugin._(tPtr)
          .changeIdentityPassword(
              args["userId"], args["currentPassword"], args["newPassword"]),
      {
        "userId": userId,
        "currentPassword": currentPassword,
        "newPassword": newPassword
      });
}