|
Foxit PDF SDK
|
Public 成员函数 | |
| DRMSecurityHandler () | |
| 构造函数。 | |
| DRMSecurityHandler (const foxit::pdf::SecurityHandler &other) | |
| 构造函数,使用父类对象。 更多... | |
| WString | GetDRMValue (const char *key) |
| 获取指定参数的DRM值。 更多... | |
| bool | Initialize (const DRMEncryptData &encrypt_data, const char *file_id, const String &initial_key) |
| 初始化当前DRM安全处理器。 更多... | |
| bool | SetDRMValue (const char *key, const WString &value) |
| 设置指定参数的DRM值。 更多... | |
| bool | VerifyEncryptionParams () |
| 验证加密参数。 更多... | |
Public 成员函数 继承自 foxit::pdf::SecurityHandler | |
| SecurityHandler () | |
| 构造函数。 | |
| SecurityHandler (const SecurityHandler &other) | |
| 用另一个安全处理器对象的构造函数。 更多... | |
| virtual | ~SecurityHandler () |
| 析构函数。 | |
| virtual PDFDoc::EncryptType | GetSecurityType () |
| 获取当前安全处理器的加密类型。 更多... | |
| bool | IsEmpty () const |
| 检查当前对象是否为空。 更多... | |
| bool | operator != (const SecurityHandler &other) |
| 不等于操作符。 更多... | |
| SecurityHandler & | operator= (const SecurityHandler &other) |
| 赋值操作符。 更多... | |
| bool | operator== (const SecurityHandler &other) |
| 等于操作符。 更多... | |
Public 成员函数 继承自 foxit::Base | |
| FS_HANDLE | Handle () const |
| 获取当前对象的句柄。 更多... | |
额外继承的成员函数 | |
Public 类型 继承自 foxit::pdf::SecurityHandler | |
| enum | CipherType { e_CipherNone = 0, e_CipherRC4 = 1, e_CipherAES = 2 } |
| 加密算法的枚举。 更多... | |
此类表示Foxit DRM(数字版权管理)安全处理器,用于Foxit DRM加密。
|
explicit |
构造函数,使用父类对象。
| [in] | other | 父类对象。 |
| WString foxit::pdf::DRMSecurityHandler::GetDRMValue | ( | const char * | key | ) |
获取指定参数的DRM值。
| [in] | key | 作为键名的参数字符串。不应为空字符串。以下是预定义的键名:
|
| bool foxit::pdf::DRMSecurityHandler::Initialize | ( | const DRMEncryptData & | encrypt_data, |
| const char * | file_id, | ||
| const String & | initial_key | ||
| ) |
初始化当前DRM安全处理器。
| [in] | encrypt_data | 证书加密数据对象。在加密数据中,加密算法类型不应为 SecurityHandler::e_CipherNone。 |
| [in] | file_id | 文件标识字符串。 |
| [in] | initial_key | 用户指定的用于加密的初始密钥。 |
| bool foxit::pdf::DRMSecurityHandler::SetDRMValue | ( | const char * | key, |
| const WString & | value | ||
| ) |
设置指定参数的DRM值。
| [in] | key | 作为键名的参数字符串。不应为空字符串。以下是预定义的键名:
|
| [in] | value | 指定参数的新值字符串。 |
| bool foxit::pdf::DRMSecurityHandler::VerifyEncryptionParams | ( | ) |
验证加密参数。
Foxit DRM为应用程序目的维护一组加密参数。加密参数存储在PDF文件中并受验证算法保护。因此应用程序可以调用此函数来验证DRM加密的PDF文档。如果验证失败,意味着PDF文档可能已损坏。