com.aspose.xps.rendering

Class PdfEncryptionDetails



  • public class PdfEncryptionDetails
    extends Object

    Contains details for a pdf encryption.

    • Constructor Detail

      • PdfEncryptionDetails

        public PdfEncryptionDetails(String userPassword,
                                    String ownerPassword,
                                    int permissions,
                                    PdfEncryptionAlgorithm 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()

        Returns 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 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.
      • getOwnerPassword

        public String getOwnerPassword()

        Returns 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 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 int getPermissions()

        Returns the permissions.

        Returns:
        The permissions.
      • setPermissions

        public void setPermissions(int value)

        Sets the permissions.

        Parameters:
        value - The permissions.
      • getEncryptionAlgorithm

        public PdfEncryptionAlgorithm getEncryptionAlgorithm()

        Returns the encryption mode.

        Returns:
        The encryption algorithm.
      • setEncryptionAlgorithm

        public void setEncryptionAlgorithm(PdfEncryptionAlgorithm value)

        Sets the encryption mode.

        Parameters:
        value - The encryption algorithm.