Package com.dynamicpdf.api
Class Aes256Security
java.lang.Object
com.dynamicpdf.api.Security
com.dynamicpdf.api.Aes256Security
Represents AES 256 bit PDF document security.
AES 256 bit PDF security is compatible with PDF version 1.5 and higher. This class is FIPS compliant when used in applications targetting .NET framework v3.5 or higher. Adobe Acrobat Reader version X or higher is needed to open these documents.
-
Constructor Summary
ConstructorDescriptionAes256Security(String userPassword, String ownerPassword)
Initializes a new instance of theAes256Security
class by taking the owner and user passwords as parameters to create PDF. -
Method Summary
Modifier and TypeMethodDescriptionGets or sets theEncryptDocumentComponents
, components of the document to be encrypted.void
Sets or 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
-
Aes256Security
Initializes a new instance of theAes256Security
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 or sets 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 or 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.
-