|
Bouncy Castle Cryptography Library 1.71 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.openpgp.PGPEncryptedData
org.bouncycastle.openpgp.PGPPBEEncryptedData
A password based encryption object.
PBE encrypted data objects can be decrypted
using a PBEDataDecryptorFactory
.
Nested Class Summary |
Nested classes inherited from class org.bouncycastle.openpgp.PGPEncryptedData |
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 | |
int |
getAlgorithm()
Return the symmetric encryption algorithm that is used by the packet. |
java.io.InputStream |
getDataStream(PBEDataDecryptorFactory dataDecryptorFactory)
Open an input stream which will provide the decrypted data protected by this object. |
java.io.InputStream |
getDataStream(SessionKeyDataDecryptorFactory dataDecryptorFactory)
|
PGPSessionKey |
getSessionKey(PBEDataDecryptorFactory dataDecryptorFactory)
Return the symmetric session key required to decrypt the data protected by this object. |
int |
getSymmetricAlgorithm(PBEDataDecryptorFactory dataDecryptorFactory)
Return the symmetric key algorithm required to decrypt the data protected by this object. |
int |
getVersion()
Return the version number of the Encrypted Session Key Packet. |
Methods inherited from class org.bouncycastle.openpgp.PGPEncryptedData |
getInputStream, isIntegrityProtected, verify |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public int getSymmetricAlgorithm(PBEDataDecryptorFactory dataDecryptorFactory) throws PGPException
dataDecryptorFactory
- decryptor factory to use to recover the session data.
encryption algorithm
used to
encrypt this object.
PGPException
- if the session data cannot be recovered.public PGPSessionKey getSessionKey(PBEDataDecryptorFactory dataDecryptorFactory) throws PGPException
dataDecryptorFactory
- decryptor factory used to recover the session data.
PGPException
- if the session data cannot be recoveredpublic java.io.InputStream getDataStream(PBEDataDecryptorFactory dataDecryptorFactory) throws PGPException
dataDecryptorFactory
- decryptor factory to use to recover the session data and provide
the stream.
PGPException
- if the session data cannot be recovered or the stream cannot be created.public java.io.InputStream getDataStream(SessionKeyDataDecryptorFactory dataDecryptorFactory) throws PGPException
PGPException
public int getVersion()
PGPEncryptedData
getVersion
in class PGPEncryptedData
public int getAlgorithm()
PGPEncryptedData
getAlgorithm
in class PGPEncryptedData
|
Bouncy Castle Cryptography Library 1.71 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |