PBE encrypted data objects can be decrypted
using a PBEDataDecryptorFactory.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv SymmetricKeyEncSessionPacket |
| Access | Constructor and Description |
|---|---|
| pack-priv | PGPPBEEncryptedData(SymmetricKeyEncSessionPacket
the PBE key data packet associated with the encrypted data in the PGP object
stream. keyData, InputStreamPacket the encrypted data. encData)Construct a PBE encrypted data object. |
| Modifier and Type | Method and Description |
|---|---|
| public int | getAlgorithm()
Overrides org. |
| public InputStream | Returns: the resulting decrypted input stream, probably containing a sequence of PGP data objects.decryptor factory to use to recover the session data and provide
the stream. dataDecryptorFactory)Open an input stream which will provide the decrypted data protected by this object. |
| public InputStream | getDataStream(SessionKeyDataDecryptorFactory dataDecryptorFactory)
Deprecated
will be removed in 1.74, use PGPEncryptedDataList.extractSessionKeyEncryptedData() and then apply the dataDecryptorFactory.
|
| public PGPSessionKey | Returns: session keydecryptor factory used to recover the session data. dataDecryptorFactory)Return the symmetric session key required to decrypt the data protected by this object. |
| public int | Returns: the identifier of theencryption algorithm used to
encrypt this object.decryptor factory to use to recover the session data. dataDecryptorFactory)Return the symmetric key algorithm required to decrypt the data protected by this object. |
| public int | getVersion()
Overrides org. |
| keyData | back to summary |
|---|---|
| pack-priv SymmetricKeyEncSessionPacket keyData | |
| PGPPBEEncryptedData | back to summary |
|---|---|
| pack-priv PGPPBEEncryptedData(SymmetricKeyEncSessionPacket keyData, InputStreamPacket encData) Construct a PBE encrypted data object.
| |
| getAlgorithm | back to summary |
|---|---|
| public int getAlgorithm() Overrides org. Doc from org. Return the symmetric encryption algorithm that is used by the packet.
| |
| getDataStream | back to summary |
|---|---|
| public InputStream getDataStream(PBEDataDecryptorFactory dataDecryptorFactory) throws PGPException Open an input stream which will provide the decrypted data protected by this object.
| |
| getDataStream | back to summary |
|---|---|
| public InputStream getDataStream(SessionKeyDataDecryptorFactory dataDecryptorFactory) throws PGPException
Deprecated will be removed in 1.74, use PGPEncryptedDataList.extractSessionKeyEncryptedData() and then apply the dataDecryptorFactory. | |
| getSessionKey | back to summary |
|---|---|
| public PGPSessionKey getSessionKey(PBEDataDecryptorFactory dataDecryptorFactory) throws PGPException Return the symmetric session key required to decrypt the data protected by this object.
| |
| getSymmetricAlgorithm | back to summary |
|---|---|
| public int getSymmetricAlgorithm(PBEDataDecryptorFactory dataDecryptorFactory) throws PGPException Return the symmetric key algorithm required to decrypt the data protected by this object.
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Overrides org. Doc from org. Return the version number of the Encrypted Session Key Packet.
| |