|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.openpgp.PGPEncryptedData
A PGP encrypted data object.
Encrypted data packets are decrypted using a PGPDataDecryptor
obtained from a
PGPDataDecryptorFactory
.
Inner Class Summary | |
protected static class |
PGPEncryptedData.TruncatedStream
|
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 |
Fields inherited from interface org.bouncycastle.bcpg.AEADAlgorithmTags |
EAX, GCM, OCB |
Method Summary | |
int |
getAlgorithm()
Return the symmetric encryption algorithm that is used by the packet. |
java.io.InputStream |
getInputStream()
Return the raw input stream for the data stream. |
int |
getVersion()
Return the version number of the Encrypted Session Key Packet. |
boolean |
isAEAD()
Checks whether the packet is protected using an AEAD algorithm. |
boolean |
isIntegrityProtected()
Checks whether the packet is integrity protected using a modification detection code package. |
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()
Note this stream is shared with all other encryption methods in the same
PGPEncryptedDataList
and with any decryption methods in sub-classes, so consuming
this stream will affect decryption.
public boolean isIntegrityProtected()
public boolean isAEAD()
public boolean verify() throws PGPException, java.io.IOException
Note: This can only be called after the message has been read.
PGPException
- if the message is not integrity
protected
.public int getVersion()
public int getAlgorithm()
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |