DynamicPDF by ceTe Software

com.cete.dynamicpdf.cryptography
Class RC440Security

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

public class RC440Security
extends Security

RC4 40 bit PDF security is compatible with PDF version 1.1 and higher and can be read with Adobe Acrobat version 3 and higher. For more details on RC4 40 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
RC440Security()
          Initializes a new instance of the RC440Security class.
RC440Security(java.lang.String password)
          Initializes a new instance of the RC440Security class.
RC440Security(java.lang.String ownerPassword, java.lang.String userPassword)
          Initializes a new instance of the RC440Security class.
 
Method Summary
 void draw(DocumentWriter writer, Encrypter encrypter)
          Draws the encrypter dictionary to the given DocumentWriter object.
 Encrypter getEncrypter(byte[] id)
          Gets a 40 bit Encrypter object to be used for encrypting the document.
 
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

RC440Security

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


RC440Security

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

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

RC440Security

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

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

getEncrypter

public Encrypter getEncrypter(byte[] id)
Gets a 40 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 DocumentWriter 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