Class EncryptionBuilder
java.lang.Object
org.pgpainless.encryption_signing.EncryptionBuilder
- All Implemented Interfaces:
EncryptionBuilderInterface
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.pgpainless.encryption_signing.EncryptionBuilderInterface
EncryptionBuilderInterface.WithOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompressionAlgorithm
negotiateCompressionAlgorithm
(ProducerOptions producerOptions) static SymmetricKeyAlgorithm
negotiateSymmetricEncryptionAlgorithm
(EncryptionOptions encryptionOptions) Negotiate theSymmetricKeyAlgorithm
used for message encryption.onOutputStream
(OutputStream outputStream) Create aEncryptionStream
on anOutputStream
that contains the plain data that shall be encrypted and or signed.
-
Constructor Details
-
EncryptionBuilder
public EncryptionBuilder()
-
-
Method Details
-
onOutputStream
Description copied from interface:EncryptionBuilderInterface
Create aEncryptionStream
on anOutputStream
that contains the plain data that shall be encrypted and or signed.- Specified by:
onOutputStream
in interfaceEncryptionBuilderInterface
- Parameters:
outputStream
- output stream of the plain data.- Returns:
- api handle
-
negotiateSymmetricEncryptionAlgorithm
public static SymmetricKeyAlgorithm negotiateSymmetricEncryptionAlgorithm(EncryptionOptions encryptionOptions) Negotiate theSymmetricKeyAlgorithm
used for message encryption.- Parameters:
encryptionOptions
- encryption options- Returns:
- negotiated symmetric key algorithm
-
negotiateCompressionAlgorithm
-