org.apache.fop.pdf
Class PDFEncryptionJCE
- PDFEncryption, PDFWritable
public class PDFEncryptionJCE
class representing a /Filter /Standard object.
encode , encodeBinaryToHexString , encodeString , encodeText , formatDateTime , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , getParent , hasObjectNumber , makeReference , output , outputInline , referencePDF , setDocument , setObjectNumber , setParent , toPDF , toPDFString |
PERMISSION_COPY_CONTENT
public static final int PERMISSION_COPY_CONTENT
Value of content extraction permission
PERMISSION_EDIT_ANNOTATIONS
public static final int PERMISSION_EDIT_ANNOTATIONS
Value of annotation editting permission
PERMISSION_EDIT_CONTENT
public static final int PERMISSION_EDIT_CONTENT
Value of content editting permission
PERMISSION_PRINT
public static final int PERMISSION_PRINT
Value of PRINT permission
PDFEncryptionJCE
public PDFEncryptionJCE(int objnum)
Create a /Filter /Standard object.
objnum
- the object's number
encryptData
public byte[] encryptData(byte[] data,
int number,
int generation)
This method encrypts the passed data using the generated keys.
data
- The data to be encryptednumber
- The block numbergeneration
- The block generation
getFileID
public byte[] getFileID()
Returns the document file ID
getFileID
public String getFileID(int index)
This method returns the indexed file ID
index
- The index to access the file ID
init
public void init()
This method initializes the encryption algorithms and values
make
public static PDFEncryption make(int objnum,
PDFEncryptionParams params)
Local factory method.
objnum
- PDF object number for the encryption objectparams
- PDF encryption parameters
- PDFEncryption the newly created PDFEncryption object
makeFilter
public PDFFilter makeFilter(int number,
int generation)
Creates PDFFilter for the encryption object
number
- The object numbergeneration
- The objects generation
toPDF
public byte[] toPDF()
Represent the object in PDF
- toPDF in interface PDFObject
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.