Public Member Functions | |
CertificateSecurityHandler () | |
Constructor. | |
CertificateSecurityHandler (const foxit::pdf::SecurityHandler &other) | |
Constructor, with parent class object. More... | |
bool | Initialize (const CertificateEncryptData &encrypt_data, const String &encrypt_key) |
Initialize current certificate security handler. More... | |
![]() | |
SecurityHandler () | |
Constructor. | |
SecurityHandler (const SecurityHandler &other) | |
Constructor, with another SecurityHandler object. More... | |
virtual | ~SecurityHandler () |
Destructor. | |
virtual PDFDoc::EncryptType | GetSecurityType () |
Get the encryption type of current security handler. More... | |
bool | IsEmpty () const |
Check whether current object is empty or not. More... | |
bool | operator!= (const SecurityHandler &other) |
Not equal operator. More... | |
SecurityHandler & | operator= (const SecurityHandler &other) |
Assign operator. More... | |
bool | operator== (const SecurityHandler &other) |
Equal operator. More... | |
![]() | |
FS_HANDLE | Handle () const |
Get the handle of current object. More... | |
Additional Inherited Members | |
![]() | |
enum | CipherType { e_CipherNone = 0, e_CipherRC4 = 1, e_CipherAES = 2 } |
Enumeration for Encryption Algorithm. More... | |
This class represents a certificate security handler, used for certificate encryption.
|
explicit |
Constructor, with parent class object.
[in] | other | Parent class object. |
bool foxit::pdf::CertificateSecurityHandler::Initialize | ( | const CertificateEncryptData & | encrypt_data, |
const String & | encrypt_key | ||
) |
Initialize current certificate security handler.
[in] | encrypt_data | A CertificateEncryptData object. In the encryption data, cipher type should not be SecurityHandler::e_CipherNone. |
[in] | encrypt_key | The key for encryption. For SecurityHandler::e_CipherRC4 cipher, the length of encryption key should be between 5 and 16. For SecurityHandler::e_CipherAES cipher, the length of encryption key should be 16 or 32. |