com.aspose.tasks

Interfaces

Classes

Exceptions

Class PdfEncryptionDetails


  • public class PdfEncryptionDetails
    extends Object

    Contains details for a PDF encryption.

    • Constructor Detail

      • PdfEncryptionDetails

        public PdfEncryptionDetails​(String userPassword,
                                    String ownerPassword,
                                    int encryptionAlgorithm)

        Initializes a new instance of the PdfEncryptionDetails class.

        Parameters:
        userPassword - The user password allowing to open protected documents.
        ownerPassword - The owner password allowing to open protected documents.
        encryptionAlgorithm - The PdfEncryptionAlgorithm instance which indicate encryption algorithm.
    • Method Detail

      • getEncryptionAlgorithm

        public final int getEncryptionAlgorithm()

        Gets the encryption mode.

        Returns:
        the encryption mode.
      • setEncryptionAlgorithm

        public final void setEncryptionAlgorithm​(int value)

        Sets the encryption mode.

        Parameters:
        value - the encryption mode.
      • getOwnerPassword

        public final String getOwnerPassword()

        Gets 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.
        Returns:
        the Owner password.
      • setOwnerPassword

        public final void setOwnerPassword​(String value)

        Sets 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.
        Parameters:
        value - the Owner password.
      • getPermissions

        public final int getPermissions()

        Gets the permissions.

        Returns:
        the permissions.
      • setPermissions

        public final void setPermissions​(int value)

        Sets the permissions.

        Parameters:
        value - the permissions.
      • getUserPassword

        public final String getUserPassword()

        Gets 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.
        Returns:
        the User password.
      • setUserPassword

        public final void setUserPassword​(String value)

        Sets 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.
        Parameters:
        value - the User password.