public class EncryptionDetails extends Object
Contains details for a pdf encryption.
Modifier and Type | Class and Description |
---|---|
static class |
EncryptionDetails.EncryptionAlgorithmEnum |
Constructor and Description |
---|
EncryptionDetails(String userPassword,
String ownerPassword,
int permissions,
EncryptionDetails.EncryptionAlgorithmEnum encryptionAlgorithm)
Initializes a new instance of the
PdfEncryptionDetailsCore class. |
Modifier and Type | Method and Description |
---|---|
EncryptionDetails.EncryptionAlgorithmEnum |
getEncryptionAlgorithm()
Gets the encryption mode.
|
String |
getOwnerPassword()
Gets or sets the Owner password.
|
int |
getPermissions()
Gets or sets the permissions.
|
String |
getUserPassword()
Gets or sets the User password.
|
void |
setEncryptionAlgorithm(EncryptionDetails.EncryptionAlgorithmEnum encryptionAlgorithm)
Gets or sets the encryption mode.
|
void |
setOwnerPassword(String value)
Gets or sets the Owner password.
|
void |
setPermissions(int value)
Gets or sets the permissions.
|
void |
setUserPassword(String value)
Gets or sets the User password.
|
public EncryptionDetails(String userPassword, String ownerPassword, int permissions, EncryptionDetails.EncryptionAlgorithmEnum encryptionAlgorithm)
Initializes a new instance of the PdfEncryptionDetailsCore
class.
userPassword
- The user password.ownerPassword
- The owner password.permissions
- The permissions.encryptionAlgorithm
- The encryption algorithm.public String getUserPassword()
Gets or sets the User password.
Value: 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)
Gets or sets the User password.
Value: 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 String getOwnerPassword()
Gets or sets the Owner password.
Value: 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)
Gets or sets the Owner password.
Value: 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 int getPermissions()
Gets or sets the permissions.
Value: The permissions.public void setPermissions(int value)
Gets or sets the permissions.
Value: The permissions.public EncryptionDetails.EncryptionAlgorithmEnum getEncryptionAlgorithm()
Gets the encryption mode.
Value: The encryption algorithm.public void setEncryptionAlgorithm(EncryptionDetails.EncryptionAlgorithmEnum encryptionAlgorithm)
Gets or sets the encryption mode.
Value: The encryption algorithm.