PGPDataDecryptors.
The purpose of this class is to act as an abstract factory, whose subclasses can decide, which concrete
implementation to use to decrypt OpenPGP messages that were encrypted to a public-key.
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: decrypted session infopublic-key encrypted session-key packet pkesk, InputStreamPacket encrypted data (sed/seipd/oed) packet encData)Recover the plain session info by decrypting the encrypted session key. |
| public byte[] | Returns: decrypted session infopublic key algorithm keyAlgorithm, byte[][] encrypted session key data secKeyData)
Deprecated
use
recoverSessionData(PublicKeyEncSessionPacket, InputStreamPacket) instead.
Recover the plain session info by decrypting the encrypted session key. |
| public byte[] | Returns: decrypted session infopublic key algorithm keyAlgorithm, byte[][] encrypted session key data secKeyData, int version of the PKESK packet pkeskVersion)
Deprecated
use
recoverSessionData(PublicKeyEncSessionPacket, InputStreamPacket) instead.
Recover the plain session info by decrypting the encrypted session key. |
| recoverSessionData | back to summary |
|---|---|
| public byte[] recoverSessionData(PublicKeyEncSessionPacket pkesk, InputStreamPacket encData) throws PGPException Recover the plain session info by decrypting the encrypted session key. The session info ALWAYS has the symmetric algorithm ID prefixed, so the return value is: [sym-alg][session-key][checksum]?
| |
| recoverSessionData | back to summary |
|---|---|
| public byte[] recoverSessionData(int keyAlgorithm, byte[][] secKeyData) throws PGPException
Deprecated use Recover the plain session info by decrypting the encrypted session key. This method returns the decrypted session info as-is (without prefixing missing cipher algorithm), so the return value is: [sym-alg]?[session-key][checksum]?
| |
| recoverSessionData | back to summary |
|---|---|
| public byte[] recoverSessionData(int keyAlgorithm, byte[][] secKeyData, int pkeskVersion) throws PGPException
Deprecated use Recover the plain session info by decrypting the encrypted session key. This method returns the decrypted session info as-is (without prefixing missing cipher algorithm), so the return value is: [sym-alg]?[session-key][checksum]?
| |