org.bouncycastle.openpgp

Class PGPEncryptedData

Implemented Interfaces:
SymmetricKeyAlgorithmTags
Known Direct Subclasses:
PGPPBEEncryptedData, PGPPublicKeyEncryptedData

public abstract class PGPEncryptedData
extends java.lang.Object
implements SymmetricKeyAlgorithmTags

Nested Class Summary

protected class
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
getInputStream()
Return the raw input stream for the data stream.
boolean
isIntegrityProtected()
Return true if the message is integrity protected.
boolean
verify()
Note: This can only be called after the message has been read.

Method Details

getInputStream

public InputStream getInputStream()
Return the raw input stream for the data stream.
Returns:
InputStream

isIntegrityProtected

public boolean isIntegrityProtected()
Return true if the message is integrity protected.
Returns:
true if there is a modification detection code package associated with this stream

verify

public boolean verify()
            throws PGPException,
                   IOException
Note: This can only be called after the message has been read.
Returns:
true if the message verifies, false otherwise.
Throws:
PGPException - if the message is not integrity protected.