foxit.pdf.StdSecurityHandler Class Reference
Inheritance diagram for foxit.pdf.StdSecurityHandler:
foxit.pdf.SecurityHandler foxit.common.Base

Public Member Functions

 StdSecurityHandler ()
 Constructor.

 
 StdSecurityHandler (SecurityHandler other)
 Constructor, with parent class object.

 
bool Initialize (StdEncryptData encrypt_data, byte[] user_password, byte[] owner_password)
 (Not support AES-256) Initialize current standard security handler.
More...
 
bool InitializeW (StdEncryptData encrypt_data, string user_password, string owner_password)
 (Only for AES-256) Initialize current standard security handler.
More...
 
- Public Member Functions inherited from foxit.pdf.SecurityHandler
 SecurityHandler ()
 Constructor.

 
 SecurityHandler (SecurityHandler other)
 Constructor, with another SecurityHandler object.

 
virtual PDFDoc.EncryptType GetSecurityType ()
 Get the encryption type of current security handler.
More...
 
bool IsEmpty ()
 Check whether current object is empty or not.
More...
 

Additional Inherited Members

- Public Types inherited from foxit.pdf.SecurityHandler
enum  CipherType { CipherType.e_CipherNone = 0, CipherType.e_CipherRC4 = 1, CipherType.e_CipherAES = 2 }
 Enumeration for Encryption Algorithm.
More...
 

Detailed Description

This class represents a standard security handler, used for password encryption.

See also
SecurityHandler

Member Function Documentation

◆ Initialize()

bool foxit.pdf.StdSecurityHandler.Initialize ( StdEncryptData  encrypt_data,
byte []  user_password,
byte []  owner_password 
)
inline

(Not support AES-256) Initialize current standard security handler.

Parameters
user_passwordA user password, which is used to open the PDF document. This can be empty when parameter owner_password is not empty.
owner_passwordAn owner password, which is used to take ownership of the PDF document. This can be empty when parameter user_password is not empty.
encrypt_dataA StdEncryptData object. In the encryption data, cipher type should not be e_CipherNone, or 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.
Returns
true means success, while FASLE means failure.

◆ InitializeW()

bool foxit.pdf.StdSecurityHandler.InitializeW ( StdEncryptData  encrypt_data,
string  user_password,
string  owner_password 
)
inline

(Only for AES-256) Initialize current standard security handler.

Parameters
user_passwordA user password, which is used to open the PDF document. This can be empty when parameter owner_password is not empty.
owner_passwordAn owner password, which is used to take ownership of the PDF document. This can be empty when parameter user_password is not empty.
encrypt_dataA StdEncryptData object. In the encryption data, cipher type should be e_CipherAES and key length should be 32.
Returns
true means success, while FASLE means failure.

Foxit Software Corporation Logo
@2018 Foxit Software Incorporated. All rights reserved.