From 2135455cdad225dd7228389ae54050f121955c03 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Tue, 7 Jun 2022 08:55:44 +0200 Subject: [PATCH] Don't throw KeyIsProtected --- sop-java/src/main/java/sop/operation/Decrypt.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sop-java/src/main/java/sop/operation/Decrypt.java b/sop-java/src/main/java/sop/operation/Decrypt.java index d892314..1caba1b 100644 --- a/sop-java/src/main/java/sop/operation/Decrypt.java +++ b/sop-java/src/main/java/sop/operation/Decrypt.java @@ -96,13 +96,11 @@ public interface Decrypt { * @param key input stream containing the key(s) * @return builder instance * - * @throws sop.exception.SOPGPException.KeyIsProtected if the key is password protected * @throws sop.exception.SOPGPException.BadData if the {@link InputStream} does not provide an OpenPGP key * @throws sop.exception.SOPGPException.UnsupportedAsymmetricAlgo if the key uses an unsupported asymmetric algorithm */ Decrypt withKey(InputStream key) - throws SOPGPException.KeyIsProtected, - SOPGPException.BadData, + throws SOPGPException.BadData, SOPGPException.UnsupportedAsymmetricAlgo; /**