From ba9de4b44a0bc3086ddb7f34f472bfc294008b60 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 13 Dec 2021 01:14:24 +0100 Subject: [PATCH] EncryptionOptions: replace arguments of type PGPPublicKeyRingCollection with Iterable --- .../pgpainless/encryption_signing/EncryptionOptions.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/encryption_signing/EncryptionOptions.java b/pgpainless-core/src/main/java/org/pgpainless/encryption_signing/EncryptionOptions.java index 9b51d931..705389d1 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/encryption_signing/EncryptionOptions.java +++ b/pgpainless-core/src/main/java/org/pgpainless/encryption_signing/EncryptionOptions.java @@ -99,12 +99,12 @@ public class EncryptionOptions { } /** - * Add all key rings in the provided key ring collection as recipients. + * Add all key rings in the provided {@link Iterable} (e.g. {@link PGPPublicKeyRingCollection}) as recipients. * * @param keys keys * @return this */ - public EncryptionOptions addRecipients(PGPPublicKeyRingCollection keys) { + public EncryptionOptions addRecipients(Iterable keys) { for (PGPPublicKeyRing key : keys) { addRecipient(key); } @@ -112,14 +112,14 @@ public class EncryptionOptions { } /** - * Add all key rings in the provided key ring collection as recipients. + * Add all key rings in the provided {@link Iterable} (e.g. {@link PGPPublicKeyRingCollection}) as recipients. * Per key ring, the selector is applied to select one or more encryption subkeys. * * @param keys keys * @param selector encryption key selector * @return this */ - public EncryptionOptions addRecipients(@Nonnull PGPPublicKeyRingCollection keys, @Nonnull EncryptionKeySelector selector) { + public EncryptionOptions addRecipients(@Nonnull Iterable keys, @Nonnull EncryptionKeySelector selector) { for (PGPPublicKeyRing key : keys) { addRecipient(key, selector); }