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 Details

  • Constructor Details

  • Method Details

    • getAlgorithm

      @Nonnull public SymmetricKeyAlgorithm getAlgorithm()
      Return the SymmetricKeyAlgorithm used to encrypt the packet.
      Returns:
      symmetric encryption algorithm
    • getSessionKey

      @Nonnull public SessionKey getSessionKey()
      Return the SessionKey used to decrypt the packet.
      Returns:
      session key
    • getRecipients

      @Nonnull public List<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 interface MessageMetadata.Nested