public final class PDFEncryptionManager extends Object
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(PDFEncryptionParams params,
PDFDocument pdf)
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(PDFEncryptionParams params, PDFDocument pdf)
params
- PDF encryption parameterspdf
- the PDF document to encryptCopyright © 2025 Apache Software Foundation. All rights reserved.