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); }