org.bouncycastle.openpgp

Class PGPEncryptedData

public abstract class PGPEncryptedData extends Object implements SymmetricKeyAlgorithmTags

Nested Class Summary
protected classPGPEncryptedData.TruncatedStream
Method Summary
InputStreamgetInputStream()
Return the raw input stream for the data stream.
booleanisIntegrityProtected()
Return true if the message is integrity protected.
booleanverify()
Note: This can only be called after the message has been read.

Method Detail

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()
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.