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 CompressionAlgorithmnegotiateCompressionAlgorithm(ProducerOptions producerOptions) static SymmetricKeyAlgorithmnegotiateSymmetricEncryptionAlgorithm(EncryptionOptions encryptionOptions) Negotiate theSymmetricKeyAlgorithmused for message encryption.onOutputStream(OutputStream outputStream) Create aEncryptionStreamon anOutputStreamthat contains the plain data that shall be encrypted and or signed.
-
Constructor Details
-
EncryptionBuilder
public EncryptionBuilder()
-
-
Method Details
-
onOutputStream
Description copied from interface:EncryptionBuilderInterfaceCreate aEncryptionStreamon anOutputStreamthat contains the plain data that shall be encrypted and or signed.- Specified by:
onOutputStreamin interfaceEncryptionBuilderInterface- Parameters:
outputStream- output stream of the plain data.- Returns:
- api handle
-
negotiateSymmetricEncryptionAlgorithm
public static SymmetricKeyAlgorithm negotiateSymmetricEncryptionAlgorithm(EncryptionOptions encryptionOptions) Negotiate theSymmetricKeyAlgorithmused for message encryption.- Parameters:
encryptionOptions- encryption options- Returns:
- negotiated symmetric key algorithm
-
negotiateCompressionAlgorithm
-