Skip navigation links
Bouncy Castle Cryptography 1.68
org.bouncycastle.openpgp

Class PGPEncryptedDataGenerator

Raw data is not typically written directly to the OutputStream obtained from a PGPEncryptedDataGenerator. The OutputStream is usually wrapped by a PGPLiteralDataGenerator, and often with a PGPCompressedDataGenerator between.

Once plaintext data for encryption has been written to the constructed OutputStream, writing of the encrypted object stream is completed by closing the OutputStream obtained from the open() method, or equivalently invoking close() on this generator.

Skip navigation links
Bouncy Castle Cryptography 1.68