Foxit PDF SDK
fsdk.CertificateSecurityHandler Class Reference

Public Member Functions

def 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
SecurityHandler

Member Function Documentation

◆ Initialize()

def 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.SecurityHandlerE_CipherNone .
[in]encrypt_keyThe key for encryption.
For fsdk.SecurityHandlerE_CipherRC4 cipher, the length of encryption key should be between 5 and 16. For fsdk.SecurityHandlerE_CipherAES cipher, the length of encryption key should be 16 or 32.
Returns
true means success, while false means failure.