|
Foxit PDF SDK
|
Public Member Functions | |
| def | GetDRMValue (key) |
| Get the DRM value for a specified parameter. More... | |
| def | Initialize (encrypt_data, file_id, initial_key) |
| Initialize current DRM security handler. More... | |
| def | SetDRMValue (key, value) |
| Set the DRM value for a specified parameter. More... | |
| def | VerifyEncryptionParams () |
| Verify encryption parameters. More... | |
This class represents a Foxit DRM(Digital Right Management) security handler, used for Foxit DRM encryption.
| def fsdk.DRMSecurityHandler.GetDRMValue | ( | key | ) |
Get the DRM value for a specified parameter.
| [in] | key | A parameter string as the key name. It should not be an empty string. Followings are pre-defined key names:
|
| def fsdk.DRMSecurityHandler.Initialize | ( | encrypt_data, | |
| file_id, | |||
| initial_key | |||
| ) |
Initialize current DRM security handler.
| [in] | encrypt_data | A certificate encrypt data object. In the encryption data, cipher type should not be fsdk.SecurityHandlerE_CipherNone . |
| [in] | file_id | The file identity string. |
| [in] | initial_key | The user specified initial key for encryption. |
| def fsdk.DRMSecurityHandler.SetDRMValue | ( | key, | |
| value | |||
| ) |
Set the DRM value for a specified parameter.
| [in] | key | A parameter string as the key name. It should not be an empty string. Followings are pre-defined key names:
|
| [in] | value | New value string for specified parameter. |
| def fsdk.DRMSecurityHandler.VerifyEncryptionParams | ( | ) |
Verify encryption parameters.
Foxit DRM maintains a set of encryption parameters for application purpose. Encryption parameters are stored in PDF file and protected by verification algorithm. So application can call this function to verify a DRM encrypted PDF document. If the verification is failed, that means the PDF document might be distorted.