foxit.pdf.CertificateSecurityHandler Class Reference
Inheritance diagram for foxit.pdf.CertificateSecurityHandler:
foxit.pdf.SecurityHandler foxit.common.Base

Public Member Functions

 CertificateSecurityHandler ()
 Constructor.

 
 CertificateSecurityHandler (SecurityHandler other)
 Constructor, with parent class object.

 
bool Initialize (CertificateEncryptData encrypt_data, byte[] encrypt_key)
 Initialize current certificate security handler.
More...
 
- Public Member Functions inherited from foxit.pdf.SecurityHandler
 SecurityHandler ()
 Constructor.

 
 SecurityHandler (SecurityHandler other)
 Constructor, with another SecurityHandler object.

 
virtual PDFDoc.EncryptType GetSecurityType ()
 Get the encryption type of current security handler.
More...
 
bool IsEmpty ()
 Check whether current object is empty or not.
More...
 

Additional Inherited Members

- Public Types inherited from foxit.pdf.SecurityHandler
enum  CipherType { CipherType.e_CipherNone = 0, CipherType.e_CipherRC4 = 1, CipherType.e_CipherAES = 2 }
 Enumeration for Encryption Algorithm.
More...
 

Detailed Description

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

See also
SecurityHandler

Member Function Documentation

◆ Initialize()

bool foxit.pdf.CertificateSecurityHandler.Initialize ( CertificateEncryptData  encrypt_data,
byte []  encrypt_key 
)
inline

Initialize current certificate security handler.

Parameters
encrypt_dataA CertificateEncryptData object. In the encryption data, cipher type should not be {}.
encrypt_keyThe key for encryption.
For e_CipherRC4 cipher, the length of encryption key should be between 5 and 16. For {} cipher, the length of encryption key should be 16 or 32.
Returns
true means success, while FASLE means failure.

Foxit Software Corporation Logo
@2018 Foxit Software Incorporated. All rights reserved.