public class PGPPublicKeyEncryptedData extends PGPEncryptedData
PGPEncryptedData.TruncatedStreamAES_128, AES_192, AES_256, BLOWFISH, CAMELLIA_128, CAMELLIA_192, CAMELLIA_256, CAST5, DES, IDEA, NULL, SAFER, TRIPLE_DES, TWOFISHEAX, GCM, OCB| Modifier and Type | Method and Description |
|---|---|
int |
getAlgorithm()
Return the symmetric encryption algorithm that is used by the packet.
|
java.io.InputStream |
getDataStream(PublicKeyDataDecryptorFactory dataDecryptorFactory)
Open an input stream which will provide the decrypted data protected by this object.
|
java.io.InputStream |
getDataStream(SessionKeyDataDecryptorFactory dataDecryptorFactory)
Deprecated.
will be removed in 1.74, use PGPEncryptedDataList.extractSessionKeyEncryptedData() and then apply the dataDecryptorFactory.
|
long |
getKeyID()
Deprecated.
use
getKeyIdentifier() instead |
KeyIdentifier |
getKeyIdentifier()
Return a
KeyIdentifier for the key used to encrypt the data. |
PGPSessionKey |
getSessionKey(PublicKeyDataDecryptorFactory dataDecryptorFactory)
Return the symmetric session key required to decrypt the data protected by this object.
|
int |
getSymmetricAlgorithm(PublicKeyDataDecryptorFactory 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.
|
getInputStream, isAEAD, isIntegrityProtected, verify@Deprecated public long getKeyID()
getKeyIdentifier() insteadpublic KeyIdentifier getKeyIdentifier()
KeyIdentifier for the key used to encrypt the data.public int getSymmetricAlgorithm(PublicKeyDataDecryptorFactory 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(PublicKeyDataDecryptorFactory dataDecryptorFactory) throws PGPException
dataDecryptorFactory - decryptor factory to use to recover the session data.PGPException - if the session data cannot be recovered.public java.io.InputStream getDataStream(PublicKeyDataDecryptorFactory 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
PGPExceptionpublic int getAlgorithm()
PGPEncryptedDatagetAlgorithm in class PGPEncryptedDatapublic int getVersion()
PGPEncryptedDatagetVersion in class PGPEncryptedData