PdfStandardSecurityHandler class.
More...
#include <pdfix.h>
|
| virtual void | SetPassword (const wchar_t *password, PdfPermissionLevel level)=0 |
| | Sets user/owner password to the security handler.
|
| virtual bool | HasPassword (PdfPermissionLevel level)=0 |
| | Gets whether the user/owner password is set to the security handler.
|
| virtual bool | GetParams (PdfStandardSecurityParams *params)=0 |
| | Gets security parameters.
|
| 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.
|
PdfStandardSecurityHandler class.
A standard password-based security handler that all conforming readers shall support.
◆ GetParams()
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
-
| level | level 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
-
| password | To unlock or protect the document. |
| level | level of permission for which user wants to set password, this method allows only user or owner level permissions |