Class EncryptionContext

java.lang.Object
org.sejda.sambox.encryption.EncryptionContext

public final class EncryptionContext extends Object
Context holding the current state of the encryption
Author:
Andrea Vacondio
  • Field Details

  • Constructor Details

  • Method Details

    • documentId

      public void documentId(byte[] documentId)
      Sets the document ID to use in those algorithms requiring it.
      Parameters:
      documentId -
    • encryptionAlgorithm

      public GeneralEncryptionAlgorithm encryptionAlgorithm()
    • encryptionAlgorithmFromEncryptionDictionary

      public static GeneralEncryptionAlgorithm encryptionAlgorithmFromEncryptionDictionary(COSDictionary enc, byte[] encryptionKey)
      Parameters:
      enc -
      Returns:
      a GeneralEncryptionAlgorithm generated using the given encryption algorithm or null if unable to generate.