Package com.dynamicpdf.api
Class Aes128Security
java.lang.Object
com.dynamicpdf.api.Security
com.dynamicpdf.api.Aes128Security
-
Constructor Summary
ConstructorDescriptionAes128Security(String userPassword, String ownerPassword)
Initializes a new instance of theAes128Security
class by taking the owner and user passwords as parameters to create PDF. -
Method Summary
Modifier and TypeMethodDescriptionGets theEncryptDocumentComponents
, components of the document to be encrypted.void
Sets theEncryptDocumentComponents
, components of the document to be encrypted.Methods inherited from class com.dynamicpdf.api.Security
getAllowAccessibility, getAllowCopy, getAllowDocumentAssembly, getAllowEdit, getAllowFormFilling, getAllowHighResolutionPrinting, getAllowPrint, getAllowUpdateAnnotsAndFields, getOwnerPassword, getUserPassword, setAllowAccessibility, setAllowCopy, setAllowDocumentAssembly, setAllowEdit, setAllowFormFilling, setAllowHighResolutionPrinting, setAllowPrint, setAllowUpdateAnnotsAndFields, setOwnerPassword, setUserPassword
-
Constructor Details
-
Aes128Security
Initializes a new instance of theAes128Security
class by taking the owner and user passwords as parameters to create PDF.- Parameters:
ownerPassword
- The owner password to open the document.userPassword
- The user password to open the document.
-
-
Method Details
-
getDocumentComponents
Gets theEncryptDocumentComponents
, components of the document to be encrypted. We can encrypt all the PDF content or the content, excluding the metadata.- Returns:
- The documents components to be encrypted.
-
setDocumentComponents
Sets theEncryptDocumentComponents
, components of the document to be encrypted. We can encrypt all the PDF content or the content, excluding the metadata.- Parameters:
value
- The documents components to be encrypted.
-