public class PDFEncryptionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
logging instance
|
Constructor and Description |
---|
PDFEncryptionManager() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkAvailableAlgorithms()
Checks whether the necessary algorithms are available.
|
static boolean |
isJCEAvailable()
Indicates whether JCE is available.
|
static PDFEncryption |
newInstance(int objnum,
PDFEncryptionParams params)
Creates a new PDFEncryption instance if PDF encryption is available.
|
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. |
public static boolean isJCEAvailable()
public static boolean checkAvailableAlgorithms()
public static void setupPDFEncryption(PDFEncryptionParams params, PDFDocument pdf)
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 forpublic static PDFEncryption newInstance(int objnum, PDFEncryptionParams params)
objnum
- PDF object numberparams
- PDF encryption parametersCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.