org.bouncycastle.openpgp

Class PGPPBEEncryptedData

Implemented Interfaces:
SymmetricKeyAlgorithmTags

public class PGPPBEEncryptedData
extends PGPEncryptedData

A password based encryption 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(char[] passPhrase, String provider)
Return the decrypted input stream, using the passed in passPhrase.
InputStream
getInputStream()
Return the raw input stream for the data stream.

Methods inherited from class org.bouncycastle.openpgp.PGPEncryptedData

getInputStream, isIntegrityProtected, verify

Method Details

getDataStream

public InputStream getDataStream(char[] passPhrase,
                                 String provider)
            throws PGPException,
                   NoSuchProviderException
Return the decrypted input stream, using the passed in passPhrase.

Parameters:
passPhrase -
provider -

Returns:
InputStream

Throws:
PGPException -


getInputStream

public InputStream getInputStream()
Return the raw input stream for the data stream.
Overrides:
getInputStream in interface PGPEncryptedData

Returns:
InputStream