public class PdfEncryptionDetails extends Object
Contains details for a pdf encryption.
Constructor and Description |
---|
PdfEncryptionDetails(String userPassword,
String ownerPassword,
int encryptionAlgorithm)
PdfEncryptionDetails Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getEncryptionAlgorithm()
Gets the encryption algorithm.
|
String |
getOwnerPassword()
Gets the Owner password.
|
int |
getPermissions()
Gets the permissions.
|
String |
getUserPassword()
Gets the User password.
|
void |
setEncryptionAlgorithm(int value)
Sets the encryption algorithm.
|
void |
setOwnerPassword(String value)
Sets the Owner password.
|
void |
setPermissions(int value)
Sets the permissions.
|
void |
setUserPassword(String value)
Sets the User password.
|
public 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.
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.
value
- user password.public 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.
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.
value
- owner password.public int getPermissions()
Gets the permissions.
PdfPermissions
).public void setPermissions(int value)
Sets the permissions.
value
- pdf permissions (PdfPermissions
).public int getEncryptionAlgorithm()
Gets the encryption algorithm.
PdfEncryptionAlgorithm
).public void setEncryptionAlgorithm(int value)
Sets the encryption algorithm.
value
- encryption algorithm (PdfEncryptionAlgorithm
).Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.