Top Description Constructors Methods
org.bouncycastle.openpgp.operator

public abstract Class PGPKeyEncryptionMethodGenerator

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGenerator, org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGenerator
Imports
org.bouncycastle.bcpg.ContainedPacket, .SymmetricKeyAlgorithmTags, org.bouncycastle.openpgp.PGPEncryptedDataGenerator, .PGPException

An encryption method that can be applied to encrypt data in a PGPEncryptedDataGenerator.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract ContainedPacket

Returns:

a packet encoding the provided information and the configuration of this instance.
generate
(int
the encryption algorithm being used
encAlgorithm
,
byte[]
session data generated by the encrypted data generator.
sessionInfo
)

Generates a packet encoding the details of this encryption method.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PGPKeyEncryptionMethodGeneratorback to summary
public PGPKeyEncryptionMethodGenerator()

Method Detail

generateback to summary
public abstract ContainedPacket generate(int encAlgorithm, byte[] sessionInfo) throws PGPException

Generates a packet encoding the details of this encryption method.

Parameters
encAlgorithm:int

the encryption algorithm being used

sessionInfo:byte[]

session data generated by the encrypted data generator.

Returns:ContainedPacket

a packet encoding the provided information and the configuration of this instance.

Exceptions
PGPException:
if an error occurs constructing the packet.