|
Bouncy Castle Cryptography 1.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.openpgp.PGPEncryptedData
public abstract class PGPEncryptedData
A PGP encrypted data object.
Encrypted data packets are decrypted using aPGPDataDecryptor obtained from a
PGPDataDecryptorFactory.
| Nested Class Summary | |
|---|---|
protected class |
PGPEncryptedData.TruncatedStream
|
| Field Summary |
|---|
| Fields inherited from interface org.bouncycastle.bcpg.SymmetricKeyAlgorithmTags |
|---|
AES_128, AES_192, AES_256, BLOWFISH, CAMELLIA_128, CAMELLIA_192, CAMELLIA_256, CAST5, DES, IDEA, NULL, SAFER, TRIPLE_DES, TWOFISH |
| Method Summary | |
|---|---|
java.io.InputStream |
getInputStream()
Return the raw input stream for the data stream. |
boolean |
isIntegrityProtected()
Checks whether the packet is integrity protected. |
boolean |
verify()
Verifies the integrity of the packet against the modification detection code associated with it in the stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.io.InputStream getInputStream()
PGPEncryptedDataList and with any decryption methods in sub-classes, so consuming
this stream will affect decryption.
public boolean isIntegrityProtected()
true if there is a modification detection code package associated with
this stream
public boolean verify()
throws PGPException,
java.io.IOException
true if the message verifies, false otherwise.
PGPException - if the message is not integrity
protected.
java.io.IOException
|
Bouncy Castle Cryptography 1.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||