com.aspose.html.rendering.pdf.encryption

Class PdfEncryptionInfo



  • public class PdfEncryptionInfo
    extends Object

    Contains details for a pdf encryption.

    • Constructor Detail

      • PdfEncryptionInfo

        public PdfEncryptionInfo(String userPassword,
                                 String ownerPassword,
                                 int permissions,
                                 int encryptionAlgorithm)

        Initializes a new instance of the PdfEncryptionInfo class.

        Parameters:
        userPassword - The user password.
        ownerPassword - The owner password.
        permissions - The permissions.
        encryptionAlgorithm - The encryption algorithm.
    • Method Detail

      • getUserPassword

        public String getUserPassword()

        Gets or sets the User password.

        Value: The user password.


        Opening the document with the correct user password (or opening a document that does not have a user password) allows additional operations to be performed according to the user access permissions specified in the document’s encryption dictionary.

      • setUserPassword

        public void setUserPassword(String value)

        Gets or sets the User password.

        Value: The user password.


        Opening the document with the correct user password (or opening a document that does not have a user password) allows additional operations to be performed according to the user access permissions specified in the document’s encryption dictionary.

      • getOwnerPassword

        public String getOwnerPassword()

        Gets or sets the Owner password.

        Value: The owner password.


        Opening the document with the correct owner password (assuming it is not the same as the user password) allows full (owner) access to the document. This unlimited access includes the ability to change the document’s passwords and access permissions.

      • setOwnerPassword

        public void setOwnerPassword(String value)

        Gets or sets the Owner password.

        Value: The owner password.


        Opening the document with the correct owner password (assuming it is not the same as the user password) allows full (owner) access to the document. This unlimited access includes the ability to change the document’s passwords and access permissions.

      • getPermissions

        public int getPermissions()

        Gets or sets the permissions.

        Value: The permissions.
      • setPermissions

        public void setPermissions(int value)

        Gets or sets the permissions.

        Value: The permissions.
      • getEncryptionAlgorithm

        public int getEncryptionAlgorithm()

        Gets or sets the encryption mode.

        Value: The encryption algorithm.
      • setEncryptionAlgorithm

        public void setEncryptionAlgorithm(int value)

        Gets or sets the encryption mode.

        Value: The encryption algorithm.