|
fop 0.95 | |||||||||
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 class PDFEncryptionJCE
class representing a /Filter /Standard object.
Field Summary | |
---|---|
static int |
PERMISSION_COPY_CONTENT
Value of content extraction permission |
static int |
PERMISSION_EDIT_ANNOTATIONS
Value of annotation editting permission |
static int |
PERMISSION_EDIT_CONTENT
Value of content editting permission |
static int |
PERMISSION_PRINT
Value of PRINT permission |
Fields inherited from class org.apache.fop.pdf.PDFObject |
---|
DATE_FORMAT, log |
Constructor Summary | |
---|---|
PDFEncryptionJCE(int objnum)
Create a /Filter /Standard object. |
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. |
byte[] |
encryptData(byte[] data,
int number,
int generation)
This method encrypts the passed data using the generated keys. |
byte[] |
getFileID()
Returns the document file ID |
java.lang.String |
getFileID(int index)
This method returns the indexed file ID |
PDFEncryptionParams |
getParams()
Returns the encryption parameters. |
java.lang.String |
getTrailerEntry()
Returns the trailer entry for encryption. |
void |
init()
This method initializes the encryption algorithms and values |
static PDFEncryption |
make(int objnum,
PDFEncryptionParams params)
Local factory method. |
PDFFilter |
makeFilter(int number,
int generation)
Creates PDFFilter for the encryption object |
void |
setParams(PDFEncryptionParams params)
Sets the encryption parameters. |
byte[] |
toPDF()
Represent the object in PDF |
Methods inherited from class org.apache.fop.pdf.PDFObject |
---|
encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, 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 |
Field Detail |
---|
public static final int PERMISSION_PRINT
public static final int PERMISSION_EDIT_CONTENT
public static final int PERMISSION_COPY_CONTENT
public static final int PERMISSION_EDIT_ANNOTATIONS
Constructor Detail |
---|
public PDFEncryptionJCE(int objnum)
objnum
- the object's numberMethod Detail |
---|
public static PDFEncryption make(int objnum, PDFEncryptionParams params)
objnum
- PDF object number for the encryption objectparams
- PDF encryption parameters
public PDFEncryptionParams getParams()
getParams
in interface PDFEncryption
public void setParams(PDFEncryptionParams params)
setParams
in interface PDFEncryption
params
- The parameterss to setpublic byte[] getFileID()
public java.lang.String getFileID(int index)
index
- The index to access the file ID
public void init()
public byte[] encryptData(byte[] data, int number, int generation)
data
- The data to be encryptednumber
- The block numbergeneration
- The block generation
public byte[] encrypt(byte[] data, PDFObject refObj)
encrypt
in interface PDFEncryption
data
- data to encryptrefObj
- reference PDFObject
public PDFFilter makeFilter(int number, int generation)
number
- The object numbergeneration
- The objects generation
public void applyFilter(AbstractPDFStream stream)
applyFilter
in interface PDFEncryption
stream
- the stream to add an encryption filter topublic byte[] toPDF()
toPDF
in class PDFObject
public java.lang.String getTrailerEntry()
getTrailerEntry
in interface PDFEncryption
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |