TPDFlibPublicKeyRecipientSource

Data types, security and signatures

Description

Selects where a dispatched call reads a recipient certificate from. The value travels with the Source parameter of the TPDFlibPublicKeyRecipientRegister callback.

TPDFlib declares the public methods and a protected dispatch method for registering recipients for public-key encryption. The edition class supplies the implementation as a callback, and this value tells the callback which public method is calling. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_ENTERPRISE_REQUIRED. Application code never passes a value of this type.

Syntax

Delphi

type TPDFlibPublicKeyRecipientSource = (pkrFile, pkrPFX, pkrStore);

Values

pkrFileDER or PEM certificate file; the operation behind AddPublicKeyRecipientFromFile
pkrPFXPKCS #12 PFX file; the operation behind AddPublicKeyRecipientFromPFX
pkrStoreWindows certificate store; the operation behind AddPublicKeyRecipientFromStore

See also

TPDFlibPublicKeyRecipientRegister, TPDFlibPublicKeyEncrypt, AddPublicKeyRecipientFromFile