| 
 | DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cete.dynamicpdf.Security
public abstract class Security
Base class from which all security classes are derived.
Licensing:
This property is a DynamicPDF Generator Enterprise
 Edition feature. One of the following licenses is required for non-evaluation usage:
 
| Field Summary | |
|---|---|
| protected static byte[] | text_Filter | 
| protected static byte[] | text_Length | 
| protected static byte[] | text_Standard | 
| Constructor Summary | |
|---|---|
| protected  | Security()Initializes a new instance of the Securityclass. | 
| protected  | Security(java.lang.String password)Initializes a new instance of the Securityclass. | 
| protected  | Security(java.lang.String ownerPassword,
         java.lang.String userPassword)Initializes a new instance of the Securityclass. | 
| Method Summary | |
|---|---|
| protected  byte[] | binPassword(java.lang.String password)Gets a byte array of the password padded with the PDF padding array. | 
| abstract  void | draw(DocumentWriter writer,
     Encrypter encrypter)Draws the encrypter dictionary to the given DocumentWriterobject. | 
|  boolean | getAllowCopy()Gets if text and images can be copied to the clipboard by the user. | 
|  boolean | getAllowEdit()Gets if the document can be edited by the user. | 
|  boolean | getAllowPrint()Gets if the document can be printed by the user. | 
|  boolean | getAllowUpdateAnnotsAndFields()Gets if annotations and form fields can be added, edited and modified by the user. | 
| abstract  Encrypter | getEncrypter(byte[] id)Gets an Encrypterobject to be used for encrypting
 the document. | 
| protected static byte[] | getFiller()Gets the byte array specified by Adobe to use as a filler for passwords. | 
|  java.lang.String | getOwnerPassword()Gets the owner password. | 
|  java.lang.String | getUserPassword()Gets the user password. | 
|  void | setAllowCopy(boolean allowCopy)Sets if text and images can be copied to the clipboard by the user. | 
|  void | setAllowEdit(boolean allowEdit)Sets if the document can be edited by the user. | 
|  void | setAllowPrint(boolean allowPrint)Sets if the document can be printed by the user. | 
|  void | setAllowUpdateAnnotsAndFields(boolean allowUpdateAnnotsAndFields)Sets if annotations and form fields can be added, edited and modified by the user. | 
|  void | setOwnerPassword(java.lang.String ownerPassword)Sets the owner password. | 
|  void | setUserPassword(java.lang.String userPassword)Sets the user password. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static byte[] text_Filter
protected static byte[] text_Standard
protected static byte[] text_Length
| Constructor Detail | 
|---|
protected Security()
Security class.
protected Security(java.lang.String ownerPassword,
                   java.lang.String userPassword)
Security class.
ownerPassword - the String indicating owner password.userPassword - the String indicating user password.protected Security(java.lang.String password)
Security class.
password - the String specifying owner and user password.| Method Detail | 
|---|
public void setOwnerPassword(java.lang.String ownerPassword)
ownerPassword - the String specifying owner password.public java.lang.String getOwnerPassword()
public void setUserPassword(java.lang.String userPassword)
userPassword - the String specifying user password.public java.lang.String getUserPassword()
public void setAllowPrint(boolean allowPrint)
allowPrint - boolean indicating if the document can be printed
                      by the user.public boolean getAllowPrint()
public void setAllowEdit(boolean allowEdit)
allowEdit - boolean specifying if the document can be edited
                    by the user.public boolean getAllowEdit()
public void setAllowCopy(boolean allowCopy)
allowCopy - boolean indicating if text and images can be copied
                     to the clipboard by the user.public boolean getAllowCopy()
public void setAllowUpdateAnnotsAndFields(boolean allowUpdateAnnotsAndFields)
allowUpdateAnnotsAndFields - boolean indicating if annotations and
                form fields can be added, edited and modified by the user.public boolean getAllowUpdateAnnotsAndFields()
public abstract void draw(DocumentWriter writer,
                          Encrypter encrypter)
DocumentWriter object.
writer - the DocumentWriter object to receive the output.encrypter - the Encrypter object used to encrypt the document.DocumentWriter, 
Encrypterpublic abstract Encrypter getEncrypter(byte[] id)
Encrypter object to be used for encrypting
 the document.
id - byte array  ID of the current PDF document.
Encrypterprotected byte[] binPassword(java.lang.String password)
password - the String password.
protected static byte[] getFiller()
| 
 | DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||