public class PdfEncryptionDetails extends Object
Contains details for a PDF encryption.
Constructor and Description |
---|
PdfEncryptionDetails(String userPassword,
String ownerPassword,
int encryptionAlgorithm)
Initializes a new instance of the
PdfEncryptionDetails class. |
Modifier and Type | Method and Description |
---|---|
int |
getEncryptionAlgorithm()
Gets the encryption mode.
|
String |
getOwnerPassword()
Gets the Owner password.
|
int |
getPermissions()
Gets the permissions.
|
String |
getUserPassword()
Gets the User password.
|
void |
setEncryptionAlgorithm(int value)
Sets the encryption mode.
|
void |
setOwnerPassword(String value)
Sets the Owner password.
|
void |
setPermissions(int value)
Sets the permissions.
|
void |
setUserPassword(String value)
Sets the User password.
|
public PdfEncryptionDetails(String userPassword, String ownerPassword, int encryptionAlgorithm)
Initializes a new instance of the PdfEncryptionDetails
class.
userPassword
- The user password allowing to open protected documents.ownerPassword
- The owner password allowing to open protected documents.encryptionAlgorithm
- The PdfEncryptionAlgorithm
instance which indicate encryption
algorithm.public final int getEncryptionAlgorithm()
Gets the encryption mode.
public final void setEncryptionAlgorithm(int value)
Sets the encryption mode.
value
- the encryption mode.public final String getOwnerPassword()
Gets the Owner password.
public final void setOwnerPassword(String value)
Sets the Owner password.
value
- the Owner password.public final int getPermissions()
Gets the permissions.
public final void setPermissions(int value)
Sets the permissions.
value
- the permissions.public final String getUserPassword()
Gets the User password.
public final void setUserPassword(String value)
Sets the User password.
value
- the User password.