Package com.aspose.tasks
Class PdfEncryptionDetails
- java.lang.Object
-
- com.aspose.tasks.PdfEncryptionDetails
-
public class PdfEncryptionDetails extends Object
Contains details for a PDF encryption.
-
-
Constructor Summary
Constructors Constructor Description PdfEncryptionDetails(String userPassword, String ownerPassword, int encryptionAlgorithm)Initializes a new instance of thePdfEncryptionDetailsclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEncryptionAlgorithm()Gets the encryption mode.StringgetOwnerPassword()Gets the Owner password.intgetPermissions()Gets the permissions.StringgetUserPassword()Gets the User password.voidsetEncryptionAlgorithm(int value)Sets the encryption mode.voidsetOwnerPassword(String value)Sets the Owner password.voidsetPermissions(int value)Sets the permissions.voidsetUserPassword(String value)Sets the User password.
-
-
-
Constructor Detail
-
PdfEncryptionDetails
public PdfEncryptionDetails(String userPassword, String ownerPassword, int encryptionAlgorithm)
Initializes a new instance of the
PdfEncryptionDetailsclass.- Parameters:
userPassword- The user password allowing to open protected documents.ownerPassword- The owner password allowing to open protected documents.encryptionAlgorithm- ThePdfEncryptionAlgorithminstance 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.
-
-