|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.fop.pdf.PDFObject org.apache.fop.pdf.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, encodeString, encodeText, formatDateTime, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, output, referencePDF, setDocument, setObjectNumber, 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)
PDFEncryption
encrypt
in interface PDFEncryption
data
- data to encryptrefObj
- reference PDFObject
PDFEncryption.encrypt(byte[], 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()
PDFEncryption
getTrailerEntry
in interface PDFEncryption
PDFEncryption.getTrailerEntry()
|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |