Table of Contents

Class PdfSecurityHandler

Namespace
PdfEngine.Vector.Security
Assembly
PdfEngine.Vector.dll

What every security handler shares once it has a file key (ISO 32000-2 7.6): the crypt filters (/CF, /StmF, /StrF, per-stream /Crypt), /EncryptMetadata, per-object keys (Algorithm 1) and RC4 / AES-CBC decryption of strings and streams. Subclasses authenticate and derive the key.

public abstract class PdfSecurityHandler
Inheritance
PdfSecurityHandler
Derived
Inherited Members

Properties

Algorithm

The cipher protecting streams (strings when streams are left in clear), for display: "AES-256", "RC4 128-bit".

public string Algorithm { get; }

Property Value

string

IsMetadataEncrypted

False when the document's XMP metadata stream is left unencrypted (/EncryptMetadata false).

public bool IsMetadataEncrypted { get; }

Property Value

bool

IsOwner

True when access is unrestricted: the Standard owner password, or a public-key recipient granted every permission. Readers then ignore /P.

public bool IsOwner { get; }

Property Value

bool

Permissions

The permission flags in effect (Table 22): /P, or the recipient's permissions for public-key encryption.

public int Permissions { get; }

Property Value

int

Revision

Security handler revision (/R), or the public-key sub-filter's equivalent.

public int Revision { get; }

Property Value

int