PdfStandardSecurityHandler class.
More...
#include <pdfix.h>
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 |