| 
 | 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.io.Encrypter
public class Encrypter
Represents an Encrypter class used for encryption of the document.
Licensing:
This property is a DynamicPDF Generator Enterprise
 Edition feature. One of the following licenses is required for non-evaluation usage:
 
| Constructor Summary | |
|---|---|
| Encrypter(byte[] owner,
          byte[] user,
          byte[] encryptionKey,
          int privileges)Initializes a new instance of the Encrypterclass. | |
| Method Summary | |
|---|---|
|  void | draw(DocumentWriter writer)Draws the encrypter dictionary to the given DocumentWriterobject. | 
|  byte | encrypt(byte data)Encrypts the byte. | 
|  byte[] | encrypt(byte[] data)Encrypts the data found in the data byte array and returns the output. | 
|  void | encrypt(java.io.OutputStream outStream,
        byte[] data,
        int start,
        int length)Encrypts the data found in the data byte array to the output stream. | 
|  void | reset(int objectNumber)Resets the encryptor. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Encrypter(byte[] owner,
                 byte[] user,
                 byte[] encryptionKey,
                 int privileges)
Encrypter class.
owner - byte array Encrypted owner password.user - byte array Encrypted user password.encryptionKey - byte array Encryption key.privileges - PDF value of privileges.| Method Detail | 
|---|
public void draw(DocumentWriter writer)
DocumentWriter object.
writer - the DocumentWriter object to receive the output.DocumentWriterpublic byte encrypt(byte data)
data - The byte to encrypt.
public void encrypt(java.io.OutputStream outStream,
                    byte[] data,
                    int start,
                    int length)
outStream - The output stream to recieve the encrypted data.data - Data to encrypt.start - Start of the data to encrypt.length - Length of the data to encrypt.public byte[] encrypt(byte[] data)
data - Data to encrypt.
public void reset(int objectNumber)
objectNumber - | 
 | DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||