|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.Security com.cete.dynamicpdf.cryptography.Aes128Security
public class Aes128Security
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:
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 |
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 |
---|
public Aes128Security()
Aes128Security
class.
public Aes128Security(java.lang.String ownerPassword, java.lang.String userPassword)
Aes128Security"
class.
ownerPassword
- The owner password to open the document.userPassword
- The user password to open the document.public Aes128Security(java.lang.String password)
Aes128Security
class.
password
- The owner and user password to open the document.Method Detail |
---|
public void setAllowFormFilling(boolean value)
value
- form filling should be allowed by the user.public boolean getAllowFormFilling()
public void setAllowAccessibility(boolean value)
value
- if accessibility programs should be able to read the
documents text and images for the user.public boolean getAllowAccessibility()
public void setAllowDocumentAssembly(boolean value)
value
- if the document can be assembled and manipulated by the
user.public boolean getAllowDocumentAssembly()
public void setAllowHighResolutionPrinting(boolean value)
value
- if the document can be printed at a high resolution by the
user.public boolean getAllowHighResolutionPrinting()
public void setDocumentComponents(EncryptDocumentComponents value)
value
- the documents components to be encrypted.public EncryptDocumentComponents getDocumentComponents()
public Encrypter getEncrypter(byte[] id)
Encrypter
object to be used for encrypting the document.
getEncrypter
in class Security
id
- ID of the current PDF document. An Encrypter
.
Encrypter
public void draw(DocumentWriter writer, Encrypter encrypter)
draw
in class Security
writer
- DocumentWriter
object to receive the output.encrypter
- Encrypter
object used to encrypt the
document.DocumentWriter
,
Encrypter
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |