Package org.pgpainless.util
Class SessionKey
java.lang.Object
org.pgpainless.util.SessionKey
A
SessionKey
is the symmetric key that is used to encrypt/decrypt an OpenPGP message.
The OpenPGP message header contains a copy of the session key, encrypted for the public key of each recipient.-
Constructor Summary
ConstructorsConstructorDescriptionSessionKey
(org.bouncycastle.openpgp.PGPSessionKey sessionKey) Constructor to create a session key from a BCPGPSessionKey
object.SessionKey
(SymmetricKeyAlgorithm algorithm, byte[] key) Create a session key object from an algorithm and a key. -
Method Summary
-
Constructor Details
-
SessionKey
public SessionKey(@Nonnull org.bouncycastle.openpgp.PGPSessionKey sessionKey) Constructor to create a session key from a BCPGPSessionKey
object.- Parameters:
sessionKey
- BC session key
-
SessionKey
Create a session key object from an algorithm and a key.- Parameters:
algorithm
- algorithmkey
- key
-
-
Method Details