Foxit PDF SDK
FoxitPDFSDKPython3.RMSEncryptData Class Reference

Inherits FoxitPDFSDKPython3._object.

Public Member Functions

def RMSEncryptData (is_encrypt_metadata, publish_license, server_eul_list, irm_version)
 Constructor, with parameters. More...
 
def Set (is_encrypt_metadata, publish_license, server_eul_list, irm_version)
 Set value. More...
 

Static Public Attributes

 is_encrypt_metadata = _swig_property(_fsdk.RMSEncryptData_is_encrypt_metadata_get, _fsdk.RMSEncryptData_is_encrypt_metadata_set)
 A boolean value to decide whether to encrypt metadata or not. true means to encrypt metadata, and false means not to encrypt metadata.
 
 publish_license = _swig_property(_fsdk.RMSEncryptData_publish_license_get, _fsdk.RMSEncryptData_publish_license_set)
 The Encoded Publishing License issued from server to the Content publisher, in ASCII encoding. This should not be an empty string. More...
 
 server_eul_list = _swig_property(_fsdk.RMSEncryptData_server_eul_list_get, _fsdk.RMSEncryptData_server_eul_list_set)
 A string array that contains pairs of strings to represent content of a dictionary object which is encoded Server EUL. More...
 

Detailed Description

This class represents some data used for class RMSSecurityHandler .

Constructor & Destructor Documentation

◆ RMSEncryptData()

def FoxitPDFSDKPython3.RMSEncryptData.RMSEncryptData (   is_encrypt_metadata,
  publish_license,
  server_eul_list,
  irm_version 
)

Constructor, with parameters.

Constructor, with another RMS encrypt data object.

Constructor.

Parameters
[in]is_encrypt_metadatatrue means to encrypt metadata, and false means not to encrypt metadata.
[in]publish_licenseThe Encoded Publishing License issued from server to the Content publisher, in ASCII encoding. This should not be an empty string.
This field contains the publishing license from Microsoft IRM services or a comparable IRM service. The original data of Publishing License should be compressed by Flate compression algorithm at first, and then encoded by Base-64 Encryption algorithm. Foxit PDF SDK offers functions in class FoxitPDFSDKPython3.Codec for Flate compression algorithm and Base-64 Encryption algorithm. Please refer to class FoxitPDFSDKPython3.Codec if necessary.
[in]server_eul_listIn this string array, the count of strings should be multiply of 2. 2 strings are in a pair, and each pair represents content of a dictionary object which is encoded Server EUL.
For each pair, the first string is ServerID, and the second one is ServerEUL. The original data of Server ID and Server EUL should be compressed by Flate compression algorithm at first, and then encoded by Base-64 Encryption algorithm. Foxit PDF SDK offers functions in class FoxitPDFSDKPython3.Codec for Flate compression algorithm and Base-64 Encryption algorithm. Please refer to class FoxitPDFSDKPython3.Codec if necessary.
An empty array means not use such information.
[in]irm_versionMicrosoft IRM version. It should be above 1. If input version is below 1, Foxit PDF SDK will use 1 as version by default.0.
[in]otherAnother RMS encrypt data object.

Member Function Documentation

◆ Set()

def FoxitPDFSDKPython3.RMSEncryptData.Set (   is_encrypt_metadata,
  publish_license,
  server_eul_list,
  irm_version 
)

Set value.

Parameters
[in]is_encrypt_metadatatrue means to encrypt metadata, and false means not to encrypt metadata.
[in]publish_licenseThe Encoded Publishing License issued from server to the Content publisher, in ASCII encoding. This should not be an empty string.
This field contains the publishing license from Microsoft IRM services or a comparable IRM service. The original data of Publishing License should be compressed by Flate compression algorithm at first, and then encoded by Base-64 Encryption algorithm. Foxit PDF SDK offers functions in class FoxitPDFSDKPython3.Codec for Flate compression algorithm and Base-64 Encryption algorithm. Please refer to class FoxitPDFSDKPython3.Codec if necessary.
[in]server_eul_listIn this string array, the count of strings should be multiply of 2. 2 strings are in a pair, and each pair represents content of a dictionary object which is encoded Server EUL.
For each pair, the first string is ServerID, and the second one is ServerEUL. The original data of Server ID and Server EUL should be compressed by Flate compression algorithm at first, and then encoded by Base-64 Encryption algorithm. Foxit PDF SDK offers functions in class FoxitPDFSDKPython3.Codec for Flate compression algorithm and Base-64 Encryption algorithm. Please refer to class FoxitPDFSDKPython3.Codec if necessary.
An empty array means not use such information.
[in]irm_versionMicrosoft IRM version. It should be above 1. If input version is below 1, Foxit PDF SDK will use 1 as version by default.0.
Returns
None.

Member Data Documentation

◆ publish_license

FoxitPDFSDKPython3.RMSEncryptData.publish_license = _swig_property(_fsdk.RMSEncryptData_publish_license_get, _fsdk.RMSEncryptData_publish_license_set)
static

The Encoded Publishing License issued from server to the Content publisher, in ASCII encoding. This should not be an empty string.

This field contains the publishing license from Microsoft IRM services or a comparable IRM service. The original data of Publishing License should be compressed by Flate compression algorithm at first, and then encoded by Base-64 Encryption algorithm. Foxit PDF SDK offers functions in class FoxitPDFSDKPython3.Codec for Flate compression algorithm and Base-64 Encryption algorithm. Please refer to class FoxitPDFSDKPython3.Codec if necessary.

◆ server_eul_list

FoxitPDFSDKPython3.RMSEncryptData.server_eul_list = _swig_property(_fsdk.RMSEncryptData_server_eul_list_get, _fsdk.RMSEncryptData_server_eul_list_set)
static

A string array that contains pairs of strings to represent content of a dictionary object which is encoded Server EUL.

In this string array, the count of strings should be multiply of 2. 2 strings are in a pair, and each pair represents content of a dictionary object which is encoded Server EUL.
For each pair, the first string is ServerID, and the second one is ServerEUL. The original data of Server ID and Server EUL should be compressed by Flate compression algorithm at first, and then encoded by Base-64 Encryption algorithm. Foxit PDF SDK offers functions in class FoxitPDFSDKPython3.Codec for Flate compression algorithm and Base-64 Encryption algorithm.Please refer to class FoxitPDFSDKPython3.Codec if necessary.
An empty array means not use such information.