Class MessageMetadata.EncryptedData
java.lang.Object
org.pgpainless.decryption_verification.MessageMetadata.Layer
org.pgpainless.decryption_verification.MessageMetadata.EncryptedData
- All Implemented Interfaces:
MessageMetadata.Nested
,MessageMetadata.Packet
- Enclosing class:
- MessageMetadata
public static class MessageMetadata.EncryptedData
extends MessageMetadata.Layer
implements MessageMetadata.Nested
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SymmetricKeyAlgorithm
protected SubkeyIdentifier
protected SessionKey
Fields inherited from class org.pgpainless.decryption_verification.MessageMetadata.Layer
child, depth, MAX_LAYER_DEPTH, rejectedDetachedSignatures, rejectedOnePassSignatures, rejectedPrependedSignatures, verifiedDetachedSignatures, verifiedOnePassSignatures, verifiedPrependedSignatures
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn theSymmetricKeyAlgorithm
used to encrypt the packet.Return a list of all recipient key ids to which the packet was encrypted for.Return theSessionKey
used to decrypt the packet.boolean
Methods inherited from class org.pgpainless.decryption_verification.MessageMetadata.Layer
getChild, getRejectedDetachedSignatures, getRejectedOnePassSignatures, getRejectedPrependedSignatures, getVerifiedDetachedSignatures, getVerifiedOnePassSignatures, getVerifiedPrependedSignatures
-
Field Details
-
algorithm
-
decryptionKey
-
sessionKey
-
recipients
-
-
Constructor Details
-
EncryptedData
-
-
Method Details
-
getAlgorithm
Return theSymmetricKeyAlgorithm
used to encrypt the packet.- Returns:
- symmetric encryption algorithm
-
getSessionKey
Return theSessionKey
used to decrypt the packet.- Returns:
- session key
-
getRecipients
Return a list of all recipient key ids to which the packet was encrypted for.- Returns:
- recipients
-
hasNestedChild
public boolean hasNestedChild()- Specified by:
hasNestedChild
in interfaceMessageMetadata.Nested
-