|
Foxit PDF SDK
|
Public Member Functions | |
| DRMEncryptData (boolean is_encrypt_metadata, String sub_filter, int cipher, int key_length, boolean is_owner, int user_permissions) | |
| Constructor, with parameters. More... | |
| DRMEncryptData () | |
| Constructor. | |
| DRMEncryptData (DRMEncryptData other) | |
| Constructor, with another DRM encrypt data object. More... | |
| synchronized void | delete () |
| Clean up related resources immediately. More... | |
| int | getCipher () |
| Get cipher type. More... | |
| boolean | getIs_encrypt_metadata () |
| Get a boolean value to decide whether to encrypt metadata or not. More... | |
| boolean | getIs_owner () |
| Get a boolean value to decide whether current user is owner or not. More... | |
| int | getKey_length () |
| Get the key length, in bytes. More... | |
| String | getSub_filter () |
| Get the sub filter name that specifies the syntax of the encryption dictionary contents. More... | |
| int | getUser_permissions () |
| Get the user permissions. More... | |
| void | set (boolean is_encrypt_metadata, String sub_filter, int cipher, int key_length, boolean is_owner, int user_permissions) |
| Set value. More... | |
| void | setCipher (int value) |
| Set cipher type. More... | |
| void | setIs_encrypt_metadata (boolean value) |
| Set a boolean value to decide whether to encrypt metadata or not. More... | |
| void | setIs_owner (boolean value) |
| Set a boolean value to decide whether current user is owner or not. More... | |
| void | setKey_length (int value) |
| Set the key length, in bytes. More... | |
| void | setSub_filter (String value) |
| Set the sub filter name that specifies the syntax of the encryption dictionary contents. More... | |
| void | setUser_permissions (int value) |
| Set the user permissions. More... | |
This class represents some data used for class DRMSecurityHandler .
| com.foxit.sdk.pdf.DRMEncryptData.DRMEncryptData | ( | boolean | is_encrypt_metadata, |
| String | sub_filter, | ||
| int | cipher, | ||
| int | key_length, | ||
| boolean | is_owner, | ||
| int | user_permissions | ||
| ) |
Constructor, with parameters.
| [in] | is_encrypt_metadata | true means to encrypt metadata, and false means not to encrypt metadata |
| [in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
| [in] | cipher | Cipher type. Please refer to values starting from com.foxit.sdk.pdf.SecurityHandler.e_CipherRC4 and this should be one of these values except com.foxit.sdk.pdf.SecurityHandler.e_CipherNone . |
| [in] | key_length | The key length, in bytes. For com.foxit.sdk.pdf.SecurityHandler.e_CipherRC4 cipher, this value should be between 5 and 16. For com.foxit.sdk.pdf.SecurityHandler.e_CipherAES cipher, this value should be 16 or 32. |
| [in] | is_owner | true means current user is owner, and false means current user is not owner. |
| [in] | user_permissions | The user permissions. Please refer to values starting from com.foxit.sdk.pdf.PDFDoc.e_PermPrint and this can be one or combination of these values. |
| com.foxit.sdk.pdf.DRMEncryptData.DRMEncryptData | ( | DRMEncryptData | other | ) |
Constructor, with another DRM encrypt data object.
| [in] | other | Another DRM encrypt data object. |
| synchronized void com.foxit.sdk.pdf.DRMEncryptData.delete | ( | ) |
Clean up related resources immediately.
| com.foxit.sdk.pdf.DRMEncryptData.getCipher | ( | ) |
Get cipher type.
| com.foxit.sdk.pdf.DRMEncryptData.getIs_encrypt_metadata | ( | ) |
Get a boolean value to decide whether to encrypt metadata or not.
| com.foxit.sdk.pdf.DRMEncryptData.getIs_owner | ( | ) |
Get a boolean value to decide whether current user is owner or not.
| com.foxit.sdk.pdf.DRMEncryptData.getKey_length | ( | ) |
Get the key length, in bytes.
| com.foxit.sdk.pdf.DRMEncryptData.getSub_filter | ( | ) |
Get the sub filter name that specifies the syntax of the encryption dictionary contents.
| com.foxit.sdk.pdf.DRMEncryptData.getUser_permissions | ( | ) |
Get the user permissions.
| void com.foxit.sdk.pdf.DRMEncryptData.set | ( | boolean | is_encrypt_metadata, |
| String | sub_filter, | ||
| int | cipher, | ||
| int | key_length, | ||
| boolean | is_owner, | ||
| int | user_permissions | ||
| ) |
Set value.
| [in] | is_encrypt_metadata | true means to encrypt metadata, and false means not to encrypt metadata |
| [in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
| [in] | cipher | Cipher type. Please refer to values starting from com.foxit.sdk.pdf.SecurityHandler.e_CipherRC4 and this should be one of these values except com.foxit.sdk.pdf.SecurityHandler.e_CipherNone . |
| [in] | key_length | The key length, in bytes. For com.foxit.sdk.pdf.SecurityHandler.e_CipherRC4 cipher, this value should be between 5 and 16. For com.foxit.sdk.pdf.SecurityHandler.e_CipherAES cipher, this value should be 16 or 32. |
| [in] | is_owner | true means current user is owner, and false means current user is not owner. |
| [in] | user_permissions | The user permissions. Please refer to values starting from com.foxit.sdk.pdf.PDFDoc.e_PermPrint and this can be one or combination of these values. |
| com.foxit.sdk.pdf.DRMEncryptData.setCipher | ( | int | value | ) |
Set cipher type.
| [in] | value | Cipher type. Please refer to values starting from com.foxit.sdk.pdf.SecurityHandler.e_CipherRC4 and this should be one of these values except com.foxit.sdk.pdf.SecurityHandler.e_CipherNone . |
| com.foxit.sdk.pdf.DRMEncryptData.setIs_encrypt_metadata | ( | boolean | value | ) |
Set a boolean value to decide whether to encrypt metadata or not.
| [in] | value | A boolean value to decide whether to encrypt metadata or not. true means to encrypt metadata, and false means not to encrypt metadata. |
| com.foxit.sdk.pdf.DRMEncryptData.setIs_owner | ( | boolean | value | ) |
Set a boolean value to decide whether current user is owner or not.
| [in] | value | A boolean value to decide whether current user is owner or not. true means current user is owner, and false means current user is not owner. |
| com.foxit.sdk.pdf.DRMEncryptData.setKey_length | ( | int | value | ) |
Set the key length, in bytes.
| [in] | value | The key length, in bytes. For com.foxit.sdk.pdf.SecurityHandler.e_CipherRC4 cipher, this value should be between 5 and 16. For com.foxit.sdk.pdf.SecurityHandler.e_CipherAES cipher, this value should be 16 or 32. |
| com.foxit.sdk.pdf.DRMEncryptData.setSub_filter | ( | String | value | ) |
Set the sub filter name that specifies the syntax of the encryption dictionary contents.
| [in] | value | The sub filter name that specifies the syntax of the encryption dictionary contents. |
| com.foxit.sdk.pdf.DRMEncryptData.setUser_permissions | ( | int | value | ) |
Set the user permissions.
| [in] | value | The user permissions. Please refer to values starting from com.foxit.sdk.pdf.PDFDoc.e_PermPrint and this can be one or combination of these values. |