From e59a8884c15eb3d118b446b64cfd14f4ac24552e Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 13 Dec 2021 01:14:55 +0100 Subject: [PATCH] SigningOptions: Replace arguments PGPSecretKeyRingCollection with Iterable --- .../org/pgpainless/encryption_signing/SigningOptions.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/encryption_signing/SigningOptions.java b/pgpainless-core/src/main/java/org/pgpainless/encryption_signing/SigningOptions.java index de01fa53..1ef1bc4c 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/encryption_signing/SigningOptions.java +++ b/pgpainless-core/src/main/java/org/pgpainless/encryption_signing/SigningOptions.java @@ -17,7 +17,6 @@ import org.bouncycastle.openpgp.PGPPrivateKey; import org.bouncycastle.openpgp.PGPPublicKey; import org.bouncycastle.openpgp.PGPSecretKey; import org.bouncycastle.openpgp.PGPSecretKeyRing; -import org.bouncycastle.openpgp.PGPSecretKeyRingCollection; import org.bouncycastle.openpgp.PGPSignatureGenerator; import org.bouncycastle.openpgp.operator.PGPContentSignerBuilder; import org.pgpainless.PGPainless; @@ -108,7 +107,7 @@ public final class SigningOptions { * @throws PGPException if any of the keys cannot be unlocked or a signing method cannot be created */ public SigningOptions addInlineSignatures(SecretKeyRingProtector secrectKeyDecryptor, - PGPSecretKeyRingCollection signingKeys, + Iterable signingKeys, DocumentSignatureType signatureType) throws KeyValidationError, PGPException { for (PGPSecretKeyRing signingKey : signingKeys) { @@ -213,7 +212,7 @@ public final class SigningOptions { * @throws PGPException if any of the keys cannot be validated or unlocked, or if any signing method cannot be created */ public SigningOptions addDetachedSignatures(SecretKeyRingProtector secretKeyDecryptor, - PGPSecretKeyRingCollection signingKeys, + Iterable signingKeys, DocumentSignatureType signatureType) throws PGPException { for (PGPSecretKeyRing signingKey : signingKeys) {