public abstract class FoxitDRMHandler
extends java.lang.Object
FoxitDRMHandler
represents an abstract class.
It offers callback methods for application to implement the Foxit DRM decryption.
It should be set to Foxit PDF SDK by calling
before doing Foxit DRM encryption or decryption.PDFDocument.setFoxitDRMHandler(FoxitDRMHandler)
PDFDocument
Modifier and Type | Class and Description |
---|---|
class |
FoxitDRMHandler.CryptionParams
Class
CryptionParams represents the cryption parameters used by Foxit DRM encryption and decryption. |
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
clientData
User-defined data.
|
Constructor and Description |
---|
FoxitDRMHandler() |
Modifier and Type | Method and Description |
---|---|
abstract FoxitDRMHandler.CryptionParams |
getDecryptionParams(java.lang.Object clientData,
FileHandler file,
java.lang.String subFilter)
Callback function to get decryption parameters.
|
public java.lang.Object clientData
public abstract FoxitDRMHandler.CryptionParams getDecryptionParams(java.lang.Object clientData, FileHandler file, java.lang.String subFilter) throws PDFException
clientData
- The user-defined data.file
- A FileHandle
object which is a PDF file object to be opened or decrypted.subFilter
- A String
object which is the sub filter of encryption.CryptionParams
object that receives the decryption parameters.PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFException
,
FileHandler
,
FoxitDRMHandler.CryptionParams