|
Foxit PDF SDK
|
Public Member Functions | |
| CertificateSecurityHandler () | |
| Constructor. | |
| CertificateSecurityHandler (SecurityHandler other) | |
| Constructor, with parent class object. More... | |
| synchronized void | delete () |
| Clean up related resources immediately. More... | |
| boolean | initialize (CertificateEncryptData encrypt_data, byte[] encrypt_key) throws com.foxit.sdk.PDFException |
| Initialize current certificate security handler. More... | |
Public Member Functions inherited from com.foxit.sdk.pdf.SecurityHandler | |
| SecurityHandler () | |
| Constructor. | |
| SecurityHandler (SecurityHandler other) | |
| Constructor, with another security handler object. More... | |
| int | getSecurityType () |
| Get the encryption type of current security handler. More... | |
| boolean | isEmpty () |
| Check whether current object is empty or not. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from com.foxit.sdk.pdf.SecurityHandler | |
| static final int | e_CipherAES = 2 |
| Use AES encryption algorithm, with the key length be 16 bytes (as AES-128) or 32 bytes (as AES-256, only supported in PDF 2.0). | |
| static final int | e_CipherNone = 0 |
| Not use encryption algorithm. | |
| static final int | e_CipherRC4 = 1 |
| Use RC4 encryption algorithm, with the key length between 5 bytes and 16 bytes. | |
This class represents a certificate security handler, used for certificate encryption.
| com.foxit.sdk.pdf.CertificateSecurityHandler.CertificateSecurityHandler | ( | SecurityHandler | other | ) |
Constructor, with parent class object.
| [in] | other | Parent class object. |
| synchronized void com.foxit.sdk.pdf.CertificateSecurityHandler.delete | ( | ) |
Clean up related resources immediately.
Reimplemented from com.foxit.sdk.pdf.SecurityHandler.
| boolean com.foxit.sdk.pdf.CertificateSecurityHandler.initialize | ( | CertificateEncryptData | encrypt_data, |
| byte[] | encrypt_key | ||
| ) | throws com.foxit.sdk.PDFException |
Initialize current certificate security handler.
| [in] | encrypt_data | A certificate encrypt data object. In the encryption data, cipher type should not be com.foxit.sdk.pdf.SecurityHandler.e_CipherNone . |
| [in] | encrypt_key | The key for encryption. For com.foxit.sdk.pdf.SecurityHandler.e_CipherRC4 cipher, the length of encryption key should be between 5 and 16. For com.foxit.sdk.pdf.SecurityHandler.e_CipherAES cipher, the length of encryption key should be 16 or 32. |