Interface EncryptionBuilderInterface.WithAlgorithms
-
- Enclosing interface:
- EncryptionBuilderInterface
public static interface EncryptionBuilderInterface.WithAlgorithms
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EncryptionBuilderInterface.ToRecipients
and()
EncryptionBuilderInterface.WithAlgorithms
andToSelf(org.bouncycastle.openpgp.PGPPublicKey... keys)
Add our own public key to the list of recipient keys.EncryptionBuilderInterface.WithAlgorithms
andToSelf(org.bouncycastle.openpgp.PGPPublicKeyRing... keys)
Add our own public key to the list of recipient keys.EncryptionBuilderInterface.WithAlgorithms
andToSelf(org.bouncycastle.openpgp.PGPPublicKeyRingCollection keys)
Add our own public keys to the list of recipient keys.<O> EncryptionBuilderInterface.WithAlgorithms
andToSelf(PublicKeyRingSelectionStrategy<O> selectionStrategy, MultiMap<O,org.bouncycastle.openpgp.PGPPublicKeyRingCollection> keys)
Add our own public keys to the list of recipient keys.EncryptionBuilderInterface.DetachedSign
usingAlgorithms(SymmetricKeyAlgorithm symmetricKeyAlgorithm, HashAlgorithm hashAlgorithm, CompressionAlgorithm compressionAlgorithm)
Specify which algorithms should be used for the encryption.EncryptionBuilderInterface.DetachedSign
usingSecureAlgorithms()
Use a suite of algorithms that are considered secure.
-
-
-
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
-
usingAlgorithms
EncryptionBuilderInterface.DetachedSign usingAlgorithms(@Nonnull SymmetricKeyAlgorithm symmetricKeyAlgorithm, @Nonnull HashAlgorithm hashAlgorithm, @Nonnull CompressionAlgorithm compressionAlgorithm)
Specify which algorithms should be used for the encryption.- Parameters:
symmetricKeyAlgorithm
- symmetric algorithm for the session keyhashAlgorithm
- hash algorithmcompressionAlgorithm
- compression algorithm- Returns:
- api handle
-
usingSecureAlgorithms
EncryptionBuilderInterface.DetachedSign usingSecureAlgorithms()
Use a suite of algorithms that are considered secure.- Returns:
- api handle
-
and
EncryptionBuilderInterface.ToRecipients and()
-
-