public class PdfEncryptionDetails
Constructor Summary |
---|
PdfEncryptionDetails(java.lang.StringuserPassword, java.lang.StringownerPassword)
Initializes an instance of this class. |
Property Getters/Setters Summary | ||
---|---|---|
java.lang.String | getOwnerPassword() | |
void | setOwnerPassword(java.lang.Stringvalue) | |
Specifies the owner password for the encrypted PDF document. | ||
int | getPermissions() | |
void | setPermissions(intvalue) | |
Specifies the operations that are allowed to a user on an encrypted PDF document.
The default value is |
||
java.lang.String | getUserPassword() | |
void | setUserPassword(java.lang.Stringvalue) | |
Specifies the user password required for opening the encrypted PDF document. |
public PdfEncryptionDetails(java.lang.String userPassword, java.lang.String ownerPassword)
public java.lang.String getOwnerPassword() / public void setOwnerPassword(java.lang.String value)
The owner password allows the user to open an encrypted PDF document without any access restrictions
specified in
The owner password cannot be the same as the user password.
public int getPermissions() / public void setPermissions(int value)
public java.lang.String getUserPassword() / public void setUserPassword(java.lang.String value)
The user password will be required to open an encrypted PDF document for viewing. The permissions specified in
The user password can be null or empty string, in this case no password will be required from the user when opening the PDF document. The user password cannot be the same as the owner password.