PDFix SDK  8.2.0
Loading...
Searching...
No Matches
PdfStandardSecurityHandler Struct Referenceabstract

PdfStandardSecurityHandler class. More...

#include <pdfix.h>

Inheritance diagram for PdfStandardSecurityHandler:
PdfSecurityHandler

Public Member Functions

virtual void SetPassword (const wchar_t *password, PdfPermissionLevel level)=0
 Sets user/owner password to the security handler. More...
 
virtual bool HasPassword (PdfPermissionLevel level)=0
 Gets whether the user/owner password is set to the security handler. More...
 
virtual bool GetParams (PdfStandardSecurityParams *params)=0
 Gets security parameters. More...
 
- Public Member Functions inherited from PdfSecurityHandler
virtual int GetFilter (wchar_t *buffer, int len) const =0
 
virtual void Destroy ()=0
 Destroys digital signature's resources. More...
 

Detailed Description

PdfStandardSecurityHandler class.

A standard password-based security handler that all conforming readers shall support.

Member Function Documentation

◆ GetParams()

virtual bool PdfStandardSecurityHandler::GetParams ( PdfStandardSecurityParams params)
pure virtual

Gets security parameters.

Parameters
params(Filled by the method) Pointer to a security parameters.
Returns
true if method finished successfully

◆ HasPassword()

virtual bool PdfStandardSecurityHandler::HasPassword ( PdfPermissionLevel  level)
pure virtual

Gets whether the user/owner password is set to the security handler.

Parameters
levellevel of permission for which user wants know if password is set, this method allows only user or owner level permissions
Returns
true, if security handler contains password with specified permission level

◆ SetPassword()

virtual void PdfStandardSecurityHandler::SetPassword ( const wchar_t *  password,
PdfPermissionLevel  level 
)
pure virtual

Sets user/owner password to the security handler.

Parameters
passwordTo unlock or protect the document.
levellevel of permission for which user wants to set password, this method allows only user or owner level permissions