Class PdfStandardSecurityHandler
The Standard security handler (ISO 32000-2 7.6.4): revisions 2–4 (RC4 40–128 bit and AES-128 via crypt filters) and 5–6 (AES-256). Authenticates the user or owner password, derives the file key, and decrypts strings and streams per object (Algorithm 1), honouring /StmF, /StrF, named stream crypt filters, /EncryptMetadata and the exemption of cross-reference streams.
public sealed class PdfStandardSecurityHandler : PdfSecurityHandler
- Inheritance
-
PdfStandardSecurityHandler
- Inherited Members
Methods
Authenticate(string?)
Tries password as the user, then the owner password. True when either opens the document.
public bool Authenticate(string? password)
Parameters
passwordstring
Returns
AuthenticateOwner(string?)
True when password is the owner (permissions) password. Unlike
Authenticate(string?) it never accepts the user password, so it proves the right to
change or remove the document's security.
public bool AuthenticateOwner(string? password)
Parameters
passwordstring