public abstract class PublicKeyKeyEncryptionMethodGenerator extends PGPKeyEncryptionMethodGenerator
Modifier | Constructor and Description |
---|---|
protected |
PublicKeyKeyEncryptionMethodGenerator(PGPPublicKey pubKey) |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
encryptSessionInfo(PGPPublicKey pubKey,
byte[] sessionInfo) |
ContainedPacket |
generate(int encAlgorithm,
byte[] sessionInfo)
Generates a packet encoding the details of this encryption method.
|
byte[][] |
processSessionInfo(byte[] encryptedSessionInfo) |
protected PublicKeyKeyEncryptionMethodGenerator(PGPPublicKey pubKey)
public byte[][] processSessionInfo(byte[] encryptedSessionInfo) throws PGPException
PGPException
public ContainedPacket generate(int encAlgorithm, byte[] sessionInfo) throws PGPException
PGPKeyEncryptionMethodGenerator
generate
in class PGPKeyEncryptionMethodGenerator
encAlgorithm
- the encryption algorithm
being usedsessionInfo
- session data generated by the encrypted data generator.PGPException
- if an error occurs constructing the packet.protected abstract byte[] encryptSessionInfo(PGPPublicKey pubKey, byte[] sessionInfo) throws PGPException
PGPException