From 70ad4a274ec02252f3d32413e4dd11f4341f7405 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Fri, 30 Oct 2020 13:29:18 +0100 Subject: [PATCH] Change method name to toNoPassphrase() --- .../java/org/pgpainless/key/modification/KeyRingEditor.java | 2 +- .../pgpainless/key/modification/KeyRingEditorInterface.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/key/modification/KeyRingEditor.java b/pgpainless-core/src/main/java/org/pgpainless/key/modification/KeyRingEditor.java index 9740775a..b5ee9020 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/key/modification/KeyRingEditor.java +++ b/pgpainless-core/src/main/java/org/pgpainless/key/modification/KeyRingEditor.java @@ -239,7 +239,7 @@ public class KeyRingEditor implements KeyRingEditorInterface { } @Override - public KeyRingEditorInterface noPassphrase() throws PGPException { + public KeyRingEditorInterface toNoPassphrase() throws PGPException { SecretKeyRingProtector newProtector = new UnprotectedKeysProtector(); PGPSecretKeyRing secretKeys = changePassphrase(keyId, KeyRingEditor.this.secretKeyRing, oldProtector, newProtector); diff --git a/pgpainless-core/src/main/java/org/pgpainless/key/modification/KeyRingEditorInterface.java b/pgpainless-core/src/main/java/org/pgpainless/key/modification/KeyRingEditorInterface.java index 806db3c0..fb018e4a 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/key/modification/KeyRingEditorInterface.java +++ b/pgpainless-core/src/main/java/org/pgpainless/key/modification/KeyRingEditorInterface.java @@ -129,7 +129,7 @@ public interface KeyRingEditorInterface { /** * Set secure default settings for the symmetric passphrase encryption. - * Note that this obviously has no effect if you decide to set {@link WithPassphrase#noPassphrase()}. + * Note that this obviously has no effect if you decide to set {@link WithPassphrase#toNoPassphrase()}. * * @return next builder step */ @@ -160,7 +160,7 @@ public interface KeyRingEditorInterface { * * @return editor builder */ - KeyRingEditorInterface noPassphrase() throws PGPException; + KeyRingEditorInterface toNoPassphrase() throws PGPException; } /**