Class StandardHandlerUsingAesGcm


public class StandardHandlerUsingAesGcm extends StandardHandlerUsingAes256
Standard security handler with Advanced Encryption Standard-Galois/Counter Mode (AES-GCM) encryption algorithm.
  • Field Details

    • noncePart

      protected byte[] noncePart
    • inObjectNonceCounter

      protected int inObjectNonceCounter
  • Constructor Details

    • StandardHandlerUsingAesGcm

      public StandardHandlerUsingAesGcm (PdfDictionary encryptionDictionary, byte[] userPassword, byte[] ownerPassword, int permissions, boolean encryptMetadata, boolean embeddedFilesOnly)
      Creates new StandardHandlerUsingAesGcm instance for encryption.
      Parameters:
      encryptionDictionary - document's encryption dictionary
      userPassword - user password
      ownerPassword - owner password
      permissions - access permissions
      encryptMetadata - indicates whether the document-level metadata stream shall be encrypted
      embeddedFilesOnly - indicates whether embedded files shall be encrypted in an otherwise unencrypted document
    • StandardHandlerUsingAesGcm

      public StandardHandlerUsingAesGcm (PdfDictionary encryptionDictionary, byte[] password)
      Creates new StandardHandlerUsingAesGcm instance for decryption.
      Parameters:
      encryptionDictionary - document's encryption dictionary
      password - owner or user password to decrypt the document
  • Method Details