Java org.bouncycastle.openpgp PGPEncryptedDataGenerator fields, constructors, methods, implement or subclass

Example usage for Java org.bouncycastle.openpgp PGPEncryptedDataGenerator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.bouncycastle.openpgp PGPEncryptedDataGenerator.

The text is from its open source code.

Field

intS2K_SHA1
Specifier for SHA-1 S2K PBE generator.

Constructor

PGPEncryptedDataGenerator(PGPDataEncryptorBuilder encryptorBuilder, boolean oldFormat)
Base constructor with the option to turn on formatting for PGP 2.6.x compatibility.
PGPEncryptedDataGenerator(PGPDataEncryptorBuilder encryptorBuilder)
Base constructor.

Method

voidaddMethod(PGPKeyEncryptionMethodGenerator method)
Add a key encryption method to be used to encrypt the session data associated with this encrypted data.
voidclose()
Close off the encrypted object - this is equivalent to calling close on the stream returned by the open() methods.
OutputStreamopen(OutputStream out, long length)
Create an OutputStream based on the configured methods to write a single encrypted object of known length.
OutputStreamopen(OutputStream out, byte[] buffer)
Create an OutputStream which will encrypt the data as it is written to it.