public class BasePasswordEncryptionSpec extends Object implements Serializable
| Constructor and Description |
|---|
BasePasswordEncryptionSpec()
A standard constructor that creates a
BasePasswordEncryptionSpec object. |
BasePasswordEncryptionSpec(String documentOpenPassword,
String permissionsPassword)
Constructs a
BasePasswordEncryptionSpec object that is used to encrypt a
PDF document with a password. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDocumentOpenPassword()
Gets the password value that is used to open the password-encrypted PDF document.
|
String |
getPermissionPassword()
Gets the password value that is used to modify permissions or remove
password-based encryption from the PDF document.
|
List |
getPermissionsRequested()
Gets the permissions that are applicable to users that open a password-encrypted PDF document within Adobe Reader or Acrobat.
|
void |
setDocumentOpenPassword(String password)
Sets the password value that is used to open the password-encrypted PDF document.
|
void |
setPermissionPassword(String password)
Sets the password value that is used to modify permissions or remove
password-based encryption from the PDF document.
|
void |
setPermissionsRequested(List p)
Sets the permissions that are applicable to users that open a password-encrypted PDF document within Adobe Reader or Acrobat.
|
public BasePasswordEncryptionSpec()
BasePasswordEncryptionSpec object.public BasePasswordEncryptionSpec(String documentOpenPassword, String permissionsPassword)
BasePasswordEncryptionSpec object that is used to encrypt a
PDF document with a password.documentOpenPassword - The password value that is required to open a password-encrypted PDF document.permissionsPassword - The password value that is required to modify permissions on the document or remove encryption.public final void setPermissionsRequested(List p)
PasswordEncryptionPermission enumeration value.p - A java.util.List object of PasswordEncryptionPermission constants that define the permissions.public final List getPermissionsRequested()
java.util.List of PasswordEncryptionPermission constants that define the permissions.public final String getDocumentOpenPassword()
public final void setDocumentOpenPassword(String password)
password - The password value that is used to open the password-encrypted PDF document.public final String getPermissionPassword()
public final void setPermissionPassword(String password)
password - The password value that is used to modify permissions or remove password-based encryption from the PDF document.Copyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.