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

Instance Methods

(id) - init
 Constructor.

 
(BOOL) - initialize:callback:encrypt_info:
 Initialize current custom 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 custom security handler, used for custom encryption.

See also
FSSecurityHandler

Method Documentation

◆ initialize:callback:encrypt_info:()

- (BOOL) initialize: (FSCustomEncryptData*)  encrypt_data
callback: (id<FSCustomSecurityCallback>)  callback
encrypt_info: (NSString *)  encrypt_info 

Initialize current custom security handler.

If this function is successfully, Foxit PDF SDK will take over the input security callback object and user should not release this callback object directly anymore; otherwise unexpected crash may occurs later.

Parameters
[in]encrypt_dataA custom encrypt data object.
[in]callbackA valid FSCustomSecurityCallback object, which is inherited and implemented by user for their own encryption and description algorithm. It should not be nil.
[in]encrypt_infoThe encryption information,which will be stored to document encryption dictionary. This can be an empty string.
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.