com.aspose.cad.jasperreports.pdf

Class EncryptionDetails



  • public class EncryptionDetails
    extends Object

    Contains details for a pdf encryption.

    • Constructor Detail

      • EncryptionDetails

        public EncryptionDetails(String userPassword,
                                 String ownerPassword,
                                 int permissions,
                                 EncryptionDetails.EncryptionAlgorithmEnum encryptionAlgorithm)

        Initializes a new instance of the PdfEncryptionDetailsCore 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.