Foxit PDF SDK

Instance Methods | List of all members
FSCustomSecurityHandler Class Reference
Inheritance diagram for FSCustomSecurityHandler:

## 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_data | A custom encrypt data object.
  [in] | callback | A valid FSCustomSecurityCallback object, which is inherited and implemented by user for their own encryption and description algorithm. It should not be nil.
  [in] | encrypt_info | The encryption information,which will be stored to document encryption dictionary. This can be an empty string. Default value: an empty string.

Returns
  YES means success, while NO means failure.

## ◆ initWithOther:()

- (id) initWithOther: |  | (FSSecurityHandler*) | other |

Constructor, with parent class object.

Parameters

  [in] | other | Parent class object.

Reimplemented from FSSecurityHandler.