From 04ff18862473ba825e63e1ee375db2c1824c8dc4 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Tue, 28 Mar 2023 13:59:59 +0200 Subject: [PATCH] rename method in recoveryKeyFactory --- .../java/org/cryptomator/ui/recoverykey/RecoveryKeyFactory.java | 2 +- .../ui/recoverykey/RecoveryKeyResetPasswordController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/recoverykey/RecoveryKeyFactory.java b/src/main/java/org/cryptomator/ui/recoverykey/RecoveryKeyFactory.java index a1180dd9f..73279396d 100644 --- a/src/main/java/org/cryptomator/ui/recoverykey/RecoveryKeyFactory.java +++ b/src/main/java/org/cryptomator/ui/recoverykey/RecoveryKeyFactory.java @@ -81,7 +81,7 @@ public class RecoveryKeyFactory { * @throws IllegalArgumentException If the recoveryKey is invalid * @apiNote This is a long-running operation and should be invoked in a background thread */ - public void resetPasswordWithRecoveryKey(Path vaultPath, String recoveryKey, CharSequence newPassword) throws IOException, IllegalArgumentException { + public void newMasterkeyFileWithPassphrase(Path vaultPath, String recoveryKey, CharSequence newPassword) throws IOException, IllegalArgumentException { final byte[] rawKey = decodeRecoveryKey(recoveryKey); try (var masterkey = new Masterkey(rawKey)) { Path masterkeyPath = vaultPath.resolve(MASTERKEY_FILENAME); diff --git a/src/main/java/org/cryptomator/ui/recoverykey/RecoveryKeyResetPasswordController.java b/src/main/java/org/cryptomator/ui/recoverykey/RecoveryKeyResetPasswordController.java index 147893426..18a952ea5 100644 --- a/src/main/java/org/cryptomator/ui/recoverykey/RecoveryKeyResetPasswordController.java +++ b/src/main/java/org/cryptomator/ui/recoverykey/RecoveryKeyResetPasswordController.java @@ -76,7 +76,7 @@ public class RecoveryKeyResetPasswordController implements FxController { @Override protected Void call() throws IOException, IllegalArgumentException { - recoveryKeyFactory.resetPasswordWithRecoveryKey(vault.getPath(), recoveryKey.get(), newPasswordController.passwordField.getCharacters()); + recoveryKeyFactory.newMasterkeyFileWithPassphrase(vault.getPath(), recoveryKey.get(), newPasswordController.passwordField.getCharacters()); return null; }