DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class StandardSecurity

java.lang.Object
  |
  +--com.cete.dynamicpdf.Security
        |
        +--com.cete.dynamicpdf.StandardSecurity

public class StandardSecurity
extends Security

40 bit PDF security is compatible with PDF version 1.1 and higher and can be read with Adobe Acrobat version 3 and higher.Refer to the Security section for more details on this class.

Licensing:
This property is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:

View Example


Constructor Summary
StandardSecurity()
          Initializes a new instance of the StandardSecurity class.
StandardSecurity(java.lang.String password)
          Initializes a new instance of the StandardSecurity class.
StandardSecurity(java.lang.String ownerPassword, java.lang.String userPassword)
          Initializes a new instance of the StandardSecurity 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

StandardSecurity

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


StandardSecurity

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

Parameters:
ownerPassword - String owner password.
userPassword - String user password.

StandardSecurity

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

Parameters:
password - The String indicating owner and user password.
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 - byte[] ID of the current PDF document.
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 DynamicPDFTM v4.0.1 for Java generated on October 06, 2006
© Copyright 2006, ceTe Software