Interface EncryptionBuilderInterface.ToRecipients

    • 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