org.bouncycastle.openpgp

Class PGPPublicKeyEncryptedData

Implemented Interfaces:
SymmetricKeyAlgorithmTags

public class PGPPublicKeyEncryptedData
extends PGPEncryptedData

A public key encrypted data object.

Nested Class Summary

Nested classes/interfaces inherited from class org.bouncycastle.openpgp.PGPEncryptedData

PGPEncryptedData.TruncatedStream

Fields inherited from interface org.bouncycastle.bcpg.SymmetricKeyAlgorithmTags

AES_128, AES_192, AES_256, BLOWFISH, CAST5, DES, IDEA, NULL, SAFER, TRIPLE_DES, TWOFISH

Method Summary

InputStream
getDataStream(PGPPrivateKey privKey, String provider)
Return the decrypted data stream for the packet.
long
getKeyID()
Return the keyID for the key used to encrypt the data.

Methods inherited from class org.bouncycastle.openpgp.PGPEncryptedData

getInputStream, isIntegrityProtected, verify

Method Details

getDataStream

public InputStream getDataStream(PGPPrivateKey privKey,
                                 String provider)
            throws PGPException,
                   NoSuchProviderException
Return the decrypted data stream for the packet.

Parameters:
privKey -
provider -

Returns:
InputStream

Throws:
PGPException -


getKeyID

public long getKeyID()
Return the keyID for the key used to encrypt the data.

Returns:
long