Foxit PDF SDK
FSDK.CertificateSecurityHandler Class Reference

Public Member Functions

 constructor ()
 Constructor.
 
 Initialize (encrypt_data, encrypt_key)
 Initialize current certificate security handler. More...
 

Detailed Description

This class represents a certificate security handler, used for certificate encryption.

See also
FSDK.SecurityHandler

Member Function Documentation

◆ Initialize()

FSDK.CertificateSecurityHandler.Initialize ( encrypt_data  ,
encrypt_key   
)

Initialize current certificate security handler.

Parameters
[in]encrypt_dataA certificate encrypt data object. In the encryption data, cipher type should not be FSDK.SecurityHandler.e_CipherNone.
[in]encrypt_keyThe key for encryption.
For FSDK.SecurityHandler.e_CipherRC4 cipher, the length of encryption key should be between 5 and 16. For FSDK.SecurityHandler.e_CipherAES cipher, the length of encryption key should be 16 or 32.
Returns
true means success, while false means failure.