Foxit PDF SDK

Instance Methods | List of all members
<FSCertificateSecurityCallback> Protocol Reference
Inheritance diagram for <FSCertificateSecurityCallback>:

## Instance Methods
(NSData *) | - getDecryptionKey:
| A callback function used to get the key for decrypting certificate protected PDF document. More...
Instance Methods inherited from <FSSecurityCallback>
(FSPDFDocEncryptType) | - GetSecurityType
| Get the encryption type of security callback. More...

## Detailed Description

This class represents a callback object for certificate decryption. If user wants to use their own certificate security callback, user should inherit this callback class and implement the pure virtual functions (as callback functions), and then register their own certificate security callback object to Foxit PDF SDK by function FSLibrary::registerSecurityCallback:callback: with filter "Adobe.PubSec". Function FSLibrary::unregisterSecurityCallback: can be called to unregister the security callback object with the registered filter name.

## Method Documentation

## ◆ getDecryptionKey:()

- (NSData*) getDecryptionKey: |  | (NSData *) | envelope_buffer |
| required

A callback function used to get the key for decrypting certificate protected PDF document.

Parameters

  [in] | envelope_buffer | A buffer which represents a certificate envelope.

Note
  User should implement this callback function.

Returns
  The decryption key.