Foxit PDF SDK
fsdk.SecurityHandler Class Reference

Public Member Functions

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

Detailed Description

Class SecurityHandler is the base class that represents a security hander used for encrypting PDF document. It has following derived classes:

To set a security handler to a PDF document, please call function fsdk.PDFDoc.SetSecurityHandler , then the security handler will take effect in later saving process. To get the security handler used for a PDF document, please call function fsdk.PDFDoc.SetSecurityHandler .

See also
StdSecurityHandler
CertificateSecurityHandler
DRMSecurityHandler
CustomSecurityHandler
RMSSecurityHandler
PDFDoc

Member Function Documentation

◆ GetSecurityType()

def fsdk.SecurityHandler.GetSecurityType ( )

Get the encryption type of current security handler.

Returns
The encryption type. If current security handler object does not represent any specified type of security handler, it would return fsdk.PDFDocE_EncryptUnknown .

◆ IsEmpty()

def fsdk.SecurityHandler.IsEmpty ( )

Check whether current object is empty or not.

When the current object is empty, that means current object is useless.

Returns
true means current object is empty, while false means not.