Foxit PDF SDK
FSCertificateSecurityHandler Class Reference
Inheritance diagram for FSCertificateSecurityHandler:
FSSecurityHandler FSBase

Instance Methods

(id) - init
 Constructor.

 
(BOOL) - initialize:encrypt_key:
 Initialize current certificate security handler.
More...
 
(id) - initWithOther:
 Constructor, with parent class object.
More...
 
- Instance Methods inherited from FSSecurityHandler
(FSPDFDocEncryptType- getSecurityType
 Get the encryption type of current security handler.
More...
 
(BOOL) - isEmpty
 Check whether current object is empty or not.
More...
 

Detailed Description

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

See also
FSSecurityHandler

Method Documentation

◆ initialize:encrypt_key:()

- (BOOL) initialize: (FSCertificateEncryptData*)  encrypt_data
encrypt_key: (NSData *)  encrypt_key 

Initialize current certificate security handler.

Parameters
[in]encrypt_dataA certificate encrypt data object. In the encryption data, cipher type should not be FSSecurityHandlerCipherNone.
[in]encrypt_keyThe key for encryption.
For FSSecurityHandlerCipherRC4 cipher, the length of encryption key should be between 5 and 16. For FSSecurityHandlerCipherAES cipher, the length of encryption key should be 16 or 32.
Returns
YES means success, while NO means failure.

◆ initWithOther:()

- (id) initWithOther: (FSSecurityHandler*)  other

Constructor, with parent class object.

Parameters
[in]otherParent class object.

Reimplemented from FSSecurityHandler.