mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-02-17 06:36:25 +01:00
EncryptionOptions: replace arguments of type PGPPublicKeyRingCollection with Iterable<PGPPublicKeyRing>
This commit is contained in:
parent
710f676dc3
commit
ba9de4b44a
1 changed files with 4 additions and 4 deletions
|
@ -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
|
* @param keys keys
|
||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public EncryptionOptions addRecipients(PGPPublicKeyRingCollection keys) {
|
public EncryptionOptions addRecipients(Iterable<PGPPublicKeyRing> keys) {
|
||||||
for (PGPPublicKeyRing key : keys) {
|
for (PGPPublicKeyRing key : keys) {
|
||||||
addRecipient(key);
|
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.
|
* Per key ring, the selector is applied to select one or more encryption subkeys.
|
||||||
*
|
*
|
||||||
* @param keys keys
|
* @param keys keys
|
||||||
* @param selector encryption key selector
|
* @param selector encryption key selector
|
||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public EncryptionOptions addRecipients(@Nonnull PGPPublicKeyRingCollection keys, @Nonnull EncryptionKeySelector selector) {
|
public EncryptionOptions addRecipients(@Nonnull Iterable<PGPPublicKeyRing> keys, @Nonnull EncryptionKeySelector selector) {
|
||||||
for (PGPPublicKeyRing key : keys) {
|
for (PGPPublicKeyRing key : keys) {
|
||||||
addRecipient(key, selector);
|
addRecipient(key, selector);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue