Foxit PDF SDK

Public Member Functions | List of all members
com.foxit.sdk.pdf.RMSSecurityCallback Class Reference
Inheritance diagram for com.foxit.sdk.pdf.RMSSecurityCallback:

## Public Member Functions
int | getSecurityType ()
| Get the encryption type of security callback. More...
Public Member Functions inherited from com.foxit.sdk.pdf.CustomSecurityCallback
java.lang.Object | createContext (String filter, String sub_filter, String encrypt_info)
| A callback function used to create context for encryption and decryption. More...
byte[] | decryptData (java.lang.Object decryptor, byte[] encrypted_data)
| A callback function used to decrypt the encrypted data. More...
boolean | encryptData (java.lang.Object context, int obj_num, int gen_num, byte[] src_data, byte[] out_dst_buffer)
| A callback function used to get encrypted data. More...
byte[] | finishDecryptor (java.lang.Object decryptor)
| A callback function used to finish the decryption. More...
int | getCipher (java.lang.Object context)
| A callback function used to get the cipher type. More...
int | getDecryptedSize (java.lang.Object context, int src_data_size)
| A callback function used to get the estimated decrypted data size. More...
int | getEncryptedSize (java.lang.Object context, int obj_num, int gen_num, byte[] src_data)
| A callback function used to get the estimated encrypted size. More...
byte[] | getEncryptKey (java.lang.Object context)
| A callback function used to get the encryption key. More...
int | getUserPermissions (java.lang.Object context, int user_permission)
| A callback function used to get the user permissions. More...
boolean | isOwner (java.lang.Object context)
| A callback function used to check if current user is the owner of the PDF document. More...
boolean | releaseContext (java.lang.Object context)
| A callback function used to release the context for encryption and decryption. More...
java.lang.Object | startDecryptor (java.lang.Object context, int obj_num, int gen_num)
| A callback function used to start a decryption. More...
boolean | useStandardCryptoMethod (java.lang.Object context)
| A callback function to check if to use standard crypto method or custom crypto method. More...
Public Member Functions inherited from com.foxit.sdk.pdf.SecurityCallback
void | release ()
| A callback function used to release current callback object itself. More...

## Detailed Description

This class represents a callback object for RMS decryption and encryption. If user wants to use RMS security callback, user should inherit this callback class and implement the pure virtual functions (as callback functions), and then register the RMS security callback object to Foxit PDF SDK by function common.Library.registerSecurityCallback with filter "MicrosoftIRMServices" or "FoxitRMS". Function common.Library.unregisterSecurityCallback can be called to unregister the security callback object with the registered filter name.

## Member Function Documentation

## ◆ getSecurityType()

int com.foxit.sdk.pdf.RMSSecurityCallback.getSecurityType | ( |  | ) |

Get the encryption type of security callback.

Note
  User should not override this function, otherwise there will be unexpected behavior.

Returns
  The encryption type. It would always be com.foxit.sdk.pdf.PDFDoc.e_EncryptRMS .

Reimplemented from com.foxit.sdk.pdf.CustomSecurityCallback.