com.aspose.diagram
Class PdfEncryptionDetails

java.lang.Object
    extended by com.aspose.diagram.PdfEncryptionDetails

public class PdfEncryptionDetails 
extends java.lang.Object

Contains details for a pdf encryption.


Constructor Summary
PdfEncryptionDetails(java.lang.String userPassword, java.lang.String ownerPassword, int encryptionAlgorithm)
           Ctor.
 
Property Getters/Setters Summary
intgetEncryptionAlgorithm()
voidsetEncryptionAlgorithm(int)
           Gets or sets the encryption mode. The value of the property is PdfEncryptionAlgorithm integer constant.
java.lang.StringgetOwnerPassword()
voidsetOwnerPassword(java.lang.String)
           Gets or sets the Owner password.
intgetPermissions()
voidsetPermissions(int)
           Gets or sets the permissions. The value of the property is PdfPermissions integer constant.
java.lang.StringgetUserPassword()
voidsetUserPassword(java.lang.String)
           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.

See Also:
          Aspose.Diagram Documentation - the home page for the Aspose.Diagram Product Documentation.
          Aspose.Diagram Support Forum - our preferred method of support.