|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFEncryptionJCE
public final class PDFEncryptionJCE
An implementation of the Standard Security Handler.
| Field Summary |
|---|
| Fields inherited from class org.apache.fop.pdf.PDFObject |
|---|
log |
| Method Summary | |
|---|---|
void |
applyFilter(AbstractPDFStream stream)
Adds a PDFFilter to the PDFStream object |
byte[] |
encrypt(byte[] data,
PDFObject refObj)
Encrypt an array of bytes using a reference PDFObject for calculating the encryption key. |
java.lang.String |
getTrailerEntry()
Returns the /Encrypt entry in the file trailer dictionary. |
static PDFEncryption |
make(int objectNumber,
PDFEncryptionParams params,
PDFDocument pdf)
Creates and returns an encryption object. |
byte[] |
toPDF()
Prepares the encryption dictionary for output to a PDF file. |
| Methods inherited from class org.apache.fop.pdf.PDFObject |
|---|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDFString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PDFEncryption make(int objectNumber,
PDFEncryptionParams params,
PDFDocument pdf)
objectNumber - the object number for the encryption dictionaryparams - the encryption parameterspdf - the PDF document to be encrypted
public byte[] encrypt(byte[] data,
PDFObject refObj)
encrypt in interface PDFEncryptiondata - data to encryptrefObj - reference PDFObject
public void applyFilter(AbstractPDFStream stream)
applyFilter in interface PDFEncryptionstream - the stream to add an encryption filter topublic byte[] toPDF()
toPDF in class PDFObjectpublic java.lang.String getTrailerEntry()
getTrailerEntry in interface PDFEncryption
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||