Interface EncryptionBuilderInterface.ToRecipients
-
- Enclosing interface:
- EncryptionBuilderInterface
public static interface EncryptionBuilderInterface.ToRecipients
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EncryptionBuilderInterface.DetachedSigndoNotEncrypt()Instruct theEncryptionStreamto not encrypt any data.EncryptionBuilderInterface.WithAlgorithmsforPassphrases(Passphrase... passphrases)Encrypt to one or more symmetric passphrases.EncryptionBuilderInterface.WithAlgorithmstoRecipients(org.bouncycastle.openpgp.PGPPublicKey... keys)Pass in a list of trusted public keys of the recipients.EncryptionBuilderInterface.WithAlgorithmstoRecipients(org.bouncycastle.openpgp.PGPPublicKeyRing... keys)Pass in a list of trusted public key rings of the recipients.EncryptionBuilderInterface.WithAlgorithmstoRecipients(org.bouncycastle.openpgp.PGPPublicKeyRingCollection... keys)Pass in a list of trusted public key ring collections of the recipients.<O> EncryptionBuilderInterface.WithAlgorithmstoRecipients(PublicKeyRingSelectionStrategy<O> selectionStrategy, MultiMap<O,org.bouncycastle.openpgp.PGPPublicKeyRingCollection> keys)Pass in a map of recipient key ring collections along with a strategy for key selection.
-
-
-
Method Detail
-
toRecipients
EncryptionBuilderInterface.WithAlgorithms toRecipients(@Nonnull org.bouncycastle.openpgp.PGPPublicKey... keys)
Pass in a list of trusted public keys of the recipients.- Parameters:
keys- recipient keys for which the message will be encrypted.- Returns:
- api handle
-
toRecipients
EncryptionBuilderInterface.WithAlgorithms toRecipients(@Nonnull org.bouncycastle.openpgp.PGPPublicKeyRing... keys)
Pass in a list of trusted public key rings of the recipients.- Parameters:
keys- recipient keys for which the message will be encrypted.- Returns:
- api handle
-
toRecipients
EncryptionBuilderInterface.WithAlgorithms toRecipients(@Nonnull org.bouncycastle.openpgp.PGPPublicKeyRingCollection... keys)
Pass in a list of trusted public key ring collections of the recipients.- Parameters:
keys- recipient keys for which the message will be encrypted.- Returns:
- api handle
-
toRecipients
<O> EncryptionBuilderInterface.WithAlgorithms toRecipients(@Nonnull PublicKeyRingSelectionStrategy<O> selectionStrategy, @Nonnull MultiMap<O,org.bouncycastle.openpgp.PGPPublicKeyRingCollection> keys)
Pass in a map of recipient key ring collections along with a strategy for key selection.- Type Parameters:
O- selection criteria type (eg. email address) on which the selection strategy is based- Parameters:
selectionStrategy- selection strategy that is used to select suitable encryption keys.keys- public keys- Returns:
- api handle
-
forPassphrases
EncryptionBuilderInterface.WithAlgorithms forPassphrases(Passphrase... passphrases)
Encrypt to one or more symmetric passphrases. Note that the passphrases MUST NOT be empty.- Parameters:
passphrases- passphrase- Returns:
- api handle
-
doNotEncrypt
EncryptionBuilderInterface.DetachedSign doNotEncrypt()
Instruct theEncryptionStreamto not encrypt any data.- Returns:
- api handle
-
-