Interface EncryptionBuilderInterface.WithAlgorithms

    • Method Detail

      • andToSelf

        EncryptionBuilderInterface.WithAlgorithms andToSelf​(@Nonnull
                                                            org.bouncycastle.openpgp.PGPPublicKey... keys)
        Add our own public key to the list of recipient keys.
        Parameters:
        keys - own public keys
        Returns:
        api handle
      • andToSelf

        EncryptionBuilderInterface.WithAlgorithms andToSelf​(@Nonnull
                                                            org.bouncycastle.openpgp.PGPPublicKeyRing... keys)
        Add our own public key to the list of recipient keys.
        Parameters:
        keys - own public keys
        Returns:
        api handle
      • andToSelf

        EncryptionBuilderInterface.WithAlgorithms andToSelf​(@Nonnull
                                                            org.bouncycastle.openpgp.PGPPublicKeyRingCollection keys)
        Add our own public keys to the list of recipient keys.
        Parameters:
        keys - own public keys
        Returns:
        api handle
      • andToSelf

        <O> EncryptionBuilderInterface.WithAlgorithms andToSelf​(@Nonnull
                                                                PublicKeyRingSelectionStrategy<O> selectionStrategy,
                                                                @Nonnull
                                                                MultiMap<O,​org.bouncycastle.openpgp.PGPPublicKeyRingCollection> keys)
        Add our own public keys to the list of recipient keys.
        Type Parameters:
        O - selection criteria type (eg. email address) used by the selection strategy.
        Parameters:
        selectionStrategy - key selection strategy used to determine suitable keys for encryption.
        keys - public keys
        Returns:
        api handle