|
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.io.Encrypter
Represents an Encrypter class used for encryption of the document.
| Constructor Summary | |
Encrypter(byte[] owner,
byte[] user,
byte[] key,
int privileges)
Initializes a new instance of the Encrypter class. |
|
| Method Summary | |
void |
draw(DocumentWriter writer)
Draws the encrypter dictionary to the given DocumentWriter object. |
void |
encrypt(byte[] data,
int objectNumber)
Encrypts the data found in the data byte array. |
void |
encrypt(byte[] data,
int dataLength,
int objectNumber)
Encrypts the data found in the data byte array. |
byte[] |
encryptToByte(byte[] data,
int objectNumber)
Encrypts the data found in the data byte array to a new byte array. |
byte[] |
encryptToByte(byte[] data,
int start,
int length,
int objectNumber)
Encrypts the data found in the data byte array to a new byte array. |
| 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[] key,
int privileges)
Encrypter class.
owner - byte array Encrypted owner password.user - byte array Encrypted user password.key - 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.DocumentWriter
public void encrypt(byte[] data,
int objectNumber)
data - byte[] Data to encrypt.objectNumber - int object number of the PDF object containing the data.
public void encrypt(byte[] data,
int dataLength,
int objectNumber)
data - byte[] Data to encrypt.dataLength - int length of the data to encrypt.objectNumber - int object number of the PDF object containing the data.
public byte[] encryptToByte(byte[] data,
int objectNumber)
data - byte array containing data to encrypt.objectNumber - int object number of the PDF object containing the data.
public byte[] encryptToByte(byte[] data,
int start,
int length,
int objectNumber)
data - byte array containing data to encrypt.start - Start of the data to encrypt.length - Length of the data to encrypt.objectNumber - int object number of the PDF object containing the data.
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||