Class PubSecHandlerUsingAes256

Direct Known Subclasses:
PubSecHandlerUsingAesGcm

public class PubSecHandlerUsingAes256 extends PubSecHandlerUsingAes128
  • Constructor Details

    • PubSecHandlerUsingAes256

      public PubSecHandlerUsingAes256(PdfDictionary encryptionDictionary, Certificate[] certs, int[] permissions, boolean encryptMetadata, boolean embeddedFilesOnly)
    • PubSecHandlerUsingAes256

      public PubSecHandlerUsingAes256(PdfDictionary encryptionDictionary, Key certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata)
  • Method Details

    • setHashKeyForNextObject

      public void setHashKeyForNextObject(int objNumber, int objGeneration)
      Description copied from class: SecurityHandler
      Note: For most of the supported security handlers algorithm to calculate encryption key for particular object is the same.
      Overrides:
      setHashKeyForNextObject in class PubSecHandlerUsingAes128
      Parameters:
      objNumber - number of particular object for encryption
      objGeneration - generation of particular object for encryption
    • getDigestAlgorithm

      protected String getDigestAlgorithm()
      Overrides:
      getDigestAlgorithm in class PubSecHandlerUsingAes128
    • initKey

      protected void initKey(byte[] globalKey, int keyLength)
      Overrides:
      initKey in class PubSecHandlerUsingAes128
    • setPubSecSpecificHandlerDicEntries

      protected void setPubSecSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly)
      Overrides:
      setPubSecSpecificHandlerDicEntries in class PubSecHandlerUsingAes128
    • setEncryptionDictEntries

      void setEncryptionDictEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly, int version, PdfName cryptFilter)