public class PDFSecuritySettings extends Object
Constructor and Description |
---|
PDFSecuritySettings(String permissionsPwd,
String openPwd,
PasswordPermissions permissions,
int encryptType)
Creates a set of encryption information.
|
Modifier and Type | Method and Description |
---|---|
int |
getEncryptType()
Returns the current encryption type in this set of encryption information.
|
String |
getOpenPassword()
Returns the current open password in this set of encryption information.
|
PasswordPermissions |
getPermissions()
Returns the current permission object in this set of encryption information.
|
String |
getPermissionsPassword()
Returns the current permissions password in this set of encryption information.
|
void |
setEncryptType(int encryptType)
Changes the encryption type in this set of encryption information.
|
void |
setOpenPassword(String openPwd)
Changes the open password in this set of encryption information.
|
void |
setPermissions(PasswordPermissions permissions)
Changes the permission object in this set of encryption information.
|
void |
setPermissionsPassword(String permissionsPwd)
Changes the permissions password in this set of encryption information.
|
public PDFSecuritySettings(String permissionsPwd, String openPwd, PasswordPermissions permissions, int encryptType)
permissionsPwd
- A password to protect a document's permissionsopenPwd
- A password to be used for opening a document that has these settingspermissions
- Permission objectencryptType
- The encryption type. This value can be PasswordPermissions.ENCRYPTION_RC4 or PasswordPermissions.ENCRYPTION_AESpublic void setPermissionsPassword(String permissionsPwd)
permissionsPwd
- A password to protect a document's permissionspublic String getPermissionsPassword()
public void setOpenPassword(String openPwd)
openPwd
- A password to be used for opening a document that has these settingspublic String getOpenPassword()
public void setPermissions(PasswordPermissions permissions)
permissions
- Permission objectpublic PasswordPermissions getPermissions()
public void setEncryptType(int encryptType)
encryptType
- The encryption type. This value can be PDFPermissions.ENCRYPTION_RC4 or PDFPermissions.ENCRYPTION_AESpublic int getEncryptType()