org.apache.fop.pdf
Class PDFEncryptionManager
java.lang.Objectorg.apache.fop.pdf.PDFEncryptionManager
public class PDFEncryptionManager
extends java.lang.Object
This class acts as a factory for PDF encryption support. It enables the
feature to be optional to FOP depending on the availability of JCE.
protected static Log | log- logging instance
|
log
protected static Log log
logging instance
checkAvailableAlgorithms
public static boolean checkAvailableAlgorithms()
Checks whether the necessary algorithms are available.
- boolean True if all necessary algorithms are present
isJCEAvailable
public static boolean isJCEAvailable()
Indicates whether JCE is available.
- boolean true if JCE is present
newInstance
public static PDFEncryption newInstance(int objnum,
PDFEncryptionParams params) Creates a new PDFEncryption instance if PDF encryption is available.
objnum - PDF object numberparams - PDF encryption parameters
- PDFEncryption the newly created instance, null if PDF encryption
is unavailable.
setupPDFEncryption
public static void setupPDFEncryption(PDFEncryptionParams params,
PDFDocument pdf) Sets up PDF encryption if PDF encryption is requested by registering
a PDFEncryptionParams object with the user agent and if
the necessary cryptographic support is available.
params - the PDF encryption params or null to disable encryptionpdf - the PDF document to setup encryption for
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.