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
Fields Modifier and Type Field Description protected SymmetricKeyAlgorithm
algorithm
protected SubkeyIdentifier
decryptionKey
protected java.util.List<java.lang.Long>
recipients
protected SessionKey
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 Constructor Description EncryptedData(SymmetricKeyAlgorithm algorithm, int depth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SymmetricKeyAlgorithm
getAlgorithm()
Return theSymmetricKeyAlgorithm
used to encrypt the packet.java.util.List<java.lang.Long>
getRecipients()
Return a list of all recipient key ids to which the packet was encrypted for.SessionKey
getSessionKey()
Return theSessionKey
used to decrypt the packet.boolean
hasNestedChild()
-
Methods inherited from class org.pgpainless.decryption_verification.MessageMetadata.Layer
getChild, getRejectedDetachedSignatures, getRejectedOnePassSignatures, getRejectedPrependedSignatures, getVerifiedDetachedSignatures, getVerifiedOnePassSignatures, getVerifiedPrependedSignatures
-
-
-
-
Field Detail
-
algorithm
protected final SymmetricKeyAlgorithm algorithm
-
decryptionKey
protected SubkeyIdentifier decryptionKey
-
sessionKey
protected SessionKey sessionKey
-
recipients
protected java.util.List<java.lang.Long> recipients
-
-
Constructor Detail
-
EncryptedData
public EncryptedData(@Nonnull SymmetricKeyAlgorithm algorithm, int depth)
-
-
Method Detail
-
getAlgorithm
@Nonnull public SymmetricKeyAlgorithm getAlgorithm()
Return theSymmetricKeyAlgorithm
used to encrypt the packet.- Returns:
- symmetric encryption algorithm
-
getSessionKey
@Nonnull public SessionKey getSessionKey()
Return theSessionKey
used to decrypt the packet.- Returns:
- session key
-
getRecipients
@Nonnull public java.util.List<java.lang.Long> 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
-
-