com.aspose.diagram

Class PdfEncryptionDetails

  • java.lang.Object
    • com.aspose.diagram.PdfEncryptionDetails
public class PdfEncryptionDetails 
extends java.lang.Object

Contains details for a pdf encryption.

Constructor Summary
PdfEncryptionDetails(java.lang.StringuserPassword, java.lang.StringownerPassword, intencryptionAlgorithm)
Ctor.
 
Property Getters/Setters Summary
intgetEncryptionAlgorithm()
void
           Gets or sets the encryption mode. The value of the property is PdfEncryptionAlgorithm integer constant.
java.lang.StringgetOwnerPassword()
void
setOwnerPassword(java.lang.Stringvalue)
           Gets or sets the Owner password.
intgetPermissions()
void
setPermissions(intvalue)
           Gets or sets the permissions. The value of the property is PdfPermissions integer constant.
java.lang.StringgetUserPassword()
void
setUserPassword(java.lang.Stringvalue)
           Gets or sets the User password.
 

    • Constructor Detail

      • PdfEncryptionDetails

        public PdfEncryptionDetails(java.lang.String userPassword, java.lang.String ownerPassword, int encryptionAlgorithm)
        Ctor.
        Parameters:
        encryptionAlgorithm - A PdfEncryptionAlgorithm value.
    • Property Getters/Setters Detail

      • getUserPassword/setUserPassword

        public java.lang.String getUserPassword() / public void setUserPassword(java.lang.String value)
        
        Gets or 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.
      • getOwnerPassword/setOwnerPassword

        public java.lang.String getOwnerPassword() / public void setOwnerPassword(java.lang.String value)
        
        Gets or 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.
      • getPermissions/setPermissions

        public int getPermissions() / public void setPermissions(int value)
        
        Gets or sets the permissions. The value of the property is PdfPermissions integer constant.
      • getEncryptionAlgorithm/setEncryptionAlgorithm

        public int getEncryptionAlgorithm() / public void setEncryptionAlgorithm(int value)
        
        Gets or sets the encryption mode. The value of the property is PdfEncryptionAlgorithm integer constant.