DynamicPDF by ceTe Software

com.cete.dynamicpdf.cryptography
Class Aes128Security

java.lang.Object
  extended by com.cete.dynamicpdf.Security
      extended by com.cete.dynamicpdf.cryptography.Aes128Security

public class Aes128Security
extends Security

AES 128 bit PDF security is compatible with PDF version 1.5 and higher and can be read with Adobe Acrobat Reader version 7 or higher. Older readers will not be able to read document encrypted with this security. Setting document version to lower values will throw an exception at the time of draw. For more details on AES 128 bit security take a look at the Security topic.

Licensing:
This class is a DynamicPDF Merger Standard Edition feature. One of the following licenses is required for non-evaluation usage:

View Example


Field Summary
 
Fields inherited from class com.cete.dynamicpdf.Security
text_Filter, text_Length, text_Standard
 
Constructor Summary
Aes128Security()
          Initializes a new instance of the Aes128Security class.
Aes128Security(java.lang.String password)
          Initializes a new instance of the Aes128Security class.
Aes128Security(java.lang.String ownerPassword, java.lang.String userPassword)
          Initializes a new instance of the Aes128Security" class.
 
Method Summary
 void draw(DocumentWriter writer, Encrypter encrypter)
          Draws the encrypter dictionary to the given object.
 boolean getAllowAccessibility()
          Gets if accessibility programs should be able to read the documents text and images for the user.
 boolean getAllowDocumentAssembly()
          Sets if the document can be assembled and manipulated by the user.
 boolean getAllowFormFilling()
          Gets if form filling should be allowed by the user.
 boolean getAllowHighResolutionPrinting()
          Gets if the document can be printed at a high resolution by the user.
 EncryptDocumentComponents getDocumentComponents()
          Gets the documents components to be encrypted.
 Encrypter getEncrypter(byte[] id)
          Gets a 128 bit Encrypter object to be used for encrypting the document.
 void setAllowAccessibility(boolean value)
          Sets if accessibility programs should be able to read the documents text and images for the user.
 void setAllowDocumentAssembly(boolean value)
          Sets if the document can be assembled and manipulated by the user.
 void setAllowFormFilling(boolean value)
          sets if form filling should be allowed by the user.
 void setAllowHighResolutionPrinting(boolean value)
          Sets if the document can be printed at a high resolution by the user.
 void setDocumentComponents(EncryptDocumentComponents value)
          Sets the documents components to be encrypted.
 
Methods inherited from class com.cete.dynamicpdf.Security
binPassword, getAllowCopy, getAllowEdit, getAllowPrint, getAllowUpdateAnnotsAndFields, getFiller, getOwnerPassword, getUserPassword, setAllowCopy, setAllowEdit, setAllowPrint, setAllowUpdateAnnotsAndFields, setOwnerPassword, setUserPassword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Aes128Security

public Aes128Security()
Initializes a new instance of the Aes128Security class.


Aes128Security

public Aes128Security(java.lang.String ownerPassword,
                      java.lang.String userPassword)
Initializes a new instance of the Aes128Security" class.

Parameters:
ownerPassword - The owner password to open the document.
userPassword - The user password to open the document.

Aes128Security

public Aes128Security(java.lang.String password)
Initializes a new instance of the Aes128Security class.

Parameters:
password - The owner and user password to open the document.
Method Detail

setAllowFormFilling

public void setAllowFormFilling(boolean value)
sets if form filling should be allowed by the user.

Parameters:
value - form filling should be allowed by the user.

getAllowFormFilling

public boolean getAllowFormFilling()
Gets if form filling should be allowed by the user.

Returns:
boolean if form filling should be allowed by the user..

setAllowAccessibility

public void setAllowAccessibility(boolean value)
Sets if accessibility programs should be able to read the documents text and images for the user.

Parameters:
value - if accessibility programs should be able to read the documents text and images for the user.

getAllowAccessibility

public boolean getAllowAccessibility()
Gets if accessibility programs should be able to read the documents text and images for the user.

Returns:
boolean if accessibility programs should be able to read the documents text and images for the user.

setAllowDocumentAssembly

public void setAllowDocumentAssembly(boolean value)
Sets if the document can be assembled and manipulated by the user.

Parameters:
value - if the document can be assembled and manipulated by the user.

getAllowDocumentAssembly

public boolean getAllowDocumentAssembly()
Sets if the document can be assembled and manipulated by the user.

Returns:
boolean if the document can be assembled and manipulated by the user.

setAllowHighResolutionPrinting

public void setAllowHighResolutionPrinting(boolean value)
Sets if the document can be printed at a high resolution by the user.

Parameters:
value - if the document can be printed at a high resolution by the user.

getAllowHighResolutionPrinting

public boolean getAllowHighResolutionPrinting()
Gets if the document can be printed at a high resolution by the user.

Returns:
boolean if the document can be printed at a high resolution by the user.

setDocumentComponents

public void setDocumentComponents(EncryptDocumentComponents value)
Sets the documents components to be encrypted.

Parameters:
value - the documents components to be encrypted.

getDocumentComponents

public EncryptDocumentComponents getDocumentComponents()
Gets the documents components to be encrypted.

Returns:
the documents components to be encrypted.

getEncrypter

public Encrypter getEncrypter(byte[] id)
Gets a 128 bit Encrypter object to be used for encrypting the document.

Specified by:
getEncrypter in class Security
Parameters:
id - ID of the current PDF document. An Encrypter.
Returns:
An Encrypter.
See Also:
Encrypter

draw

public void draw(DocumentWriter writer,
                 Encrypter encrypter)
Draws the encrypter dictionary to the given object.

Specified by:
draw in class Security
Parameters:
writer - DocumentWriter object to receive the output.
encrypter - Encrypter object used to encrypt the document.
See Also:
DocumentWriter, Encrypter

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software