Class Aes128Security

java.lang.Object
com.dynamicpdf.api.Security
com.dynamicpdf.api.Aes128Security

public class Aes128Security extends Security
  • Constructor Details

    • Aes128Security

      public Aes128Security(String userPassword, String ownerPassword)
      Initializes a new instance of the Aes128Security class by taking the owner and user passwords as parameters to create PDF.
      Parameters:
      ownerPassword - The owner password to open the document.
      userPassword - The user password to open the document.
  • Method Details

    • getDocumentComponents

      public EncryptDocumentComponents getDocumentComponents()
      Gets the EncryptDocumentComponents, components of the document to be encrypted. We can encrypt all the PDF content or the content, excluding the metadata.
      Returns:
      The documents components to be encrypted.
    • setDocumentComponents

      public void setDocumentComponents(EncryptDocumentComponents value)
      Sets the EncryptDocumentComponents, components of the document to be encrypted. We can encrypt all the PDF content or the content, excluding the metadata.
      Parameters:
      value - The documents components to be encrypted.