|
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.RC4128Security
public class RC4128Security
RC4 128 bit PDF security, with UseCryptFilter property set to false is compatible with PDF version 1.4 or higher and can be read with Adobe Acrobat Reader version 5 or higher. By default UseCryptFilter property is false. RC4 128 bit PDF security with crypt filter is compatible with PDF version 1.5 or higher and can be read with Adobe Acrobat Reader version 6 and higher. Older readers will not be able to read document encrypted with this security. For more details on RC4 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 | |
---|---|
RC4128Security()
Initializes a new instance of the RC4128Security class. |
|
RC4128Security(java.lang.String password)
Initializes a new instance of the RC4128Security class. |
|
RC4128Security(java.lang.String ownerPassword,
java.lang.String userPassword)
Initializes a new instance of the |
Method Summary | |
---|---|
void |
draw(DocumentWriter writer,
Encrypter encrypter)
Draws the encrypter dictionary to the given DocumentWriter object. |
boolean |
getAllowAccessibility()
Gets if accessibility programs should be able to read the documents text and images for the user. |
boolean |
getAllowDocumentAssembly()
Gets 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. |
Encrypter |
getEncrypter(byte[] id)
Gets a 128 bit Encrypter object to be used for encrypting the document. |
boolean |
getEncryptMetadata()
Gets if the document metadata to be encrypted. |
boolean |
getUseCryptFilter()
Gets if the encryption should be done with crypt filters. |
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 |
setEncryptMetadata(boolean value)
Sets if the document metadata to be encrypted. |
void |
setUseCryptFilter(boolean value)
Sets if the encryption should be done with crypt filters. |
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 RC4128Security()
RC4128Security
class.
public RC4128Security(java.lang.String ownerPassword, java.lang.String userPassword)
ownerPassword
- The owner password to open the document.userPassword
- The user password to open the document.public RC4128Security(java.lang.String password)
RC4128Security
class.
password
- The owner and user password to open the document.Method Detail |
---|
public void setAllowFormFilling(boolean value)
value
- if 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 setEncryptMetadata(boolean value)
value
- if the document metadata to be encrypted. Valid only when UseCryptFilter property is true.public boolean getEncryptMetadata()
public void setUseCryptFilter(boolean value)
value
- if the encryption should be done with crypt filters.
The default value is false. If set to true RC4 128 bit encryption is compatible with
PDF version 1.5 or higher and can be read with Adobe Acrobat Reader version 6 or higher.
Without crypt filter RC4 128 bit encryption is compatible with
PDF version 1.4 or higher and can be read with Adobe Acrobat Reader version 5 or higher.public boolean getUseCryptFilter()
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)
DocumentWriter
object.
draw
in class Security
writer
- DocumentWriter
object to receive the output.encrypter
- object used to encrypt the document.- See Also:
DocumentWriter
,
Encrypter
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |