Public Member Functions | |
StdSecurityHandler () | |
Constructor. | |
StdSecurityHandler (SecurityHandler other) | |
Constructor, with parent class object. More... | |
boolean | initialize (StdEncryptData encrypt_data, byte[] user_password, byte[] owner_password) throws com.foxit.sdk.PDFException |
(Not support AES-256) Initialize current standard security handler. More... | |
boolean | initializeW (StdEncryptData encrypt_data, String user_password, String owner_password) throws com.foxit.sdk.PDFException |
(Only for AES-256) Initialize current standard security handler. More... | |
![]() | |
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 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 standard security handler, used for password encryption.
com.foxit.sdk.pdf.StdSecurityHandler.StdSecurityHandler | ( | SecurityHandler | other | ) |
Constructor, with parent class object.
[in] | other | Parent class object. |
boolean com.foxit.sdk.pdf.StdSecurityHandler.initialize | ( | StdEncryptData | encrypt_data, |
byte [] | user_password, | ||
byte [] | owner_password | ||
) | throws com.foxit.sdk.PDFException |
(Not support AES-256) Initialize current standard security handler.
[in] | user_password | A user password, which is used to open the PDF document. This can be empty when parameter owner_password is not empty. |
[in] | owner_password | An owner password, which is used to take ownership of the PDF document. This can be empty when parameter user_password is not empty. |
[in] | encrypt_data | A standard encrypt data object. In the encryption data, cipher type should not be com.foxit.sdk.pdf.SecurityHandler.e_CipherNone , or com.foxit.sdk.pdf.SecurityHandler.e_CipherAES with key length 32 (that means not support AES-256). Please refer to comment of class StdEncryptData to ensure the validation of each member. |
boolean com.foxit.sdk.pdf.StdSecurityHandler.initializeW | ( | StdEncryptData | encrypt_data, |
String | user_password, | ||
String | owner_password | ||
) | throws com.foxit.sdk.PDFException |
(Only for AES-256) Initialize current standard security handler.
[in] | user_password | A user password, which is used to open the PDF document. This can be empty when parameter owner_password is not empty. |
[in] | owner_password | An owner password, which is used to take ownership of the PDF document. This can be empty when parameter user_password is not empty. |
[in] | encrypt_data | A standard encrypt data object. In the encryption data, cipher type should be com.foxit.sdk.pdf.SecurityHandler.e_CipherAES and key length should be 32. |