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 SymmetricKeyAlgorithmprotected SubkeyIdentifierprotected SessionKeyFields 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 theSymmetricKeyAlgorithmused to encrypt the packet.Return a list of all recipient key ids to which the packet was encrypted for.Return theSessionKeyused to decrypt the packet.booleanMethods 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 theSymmetricKeyAlgorithmused to encrypt the packet.- Returns:
- symmetric encryption algorithm
-
getSessionKey
Return theSessionKeyused 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:
hasNestedChildin interfaceMessageMetadata.Nested
-