PoDoFo  1.0.0-dev
Public Member Functions | Friends | List of all members
PoDoFo::PdfSigningContext Class Referencefinal

A context that can be used to customize the signing process. More...

#include <PdfSigningContext.h>

Public Member Functions

PdfSignerId AddSigner (const PdfSignature &signature, const std::shared_ptr< PdfSigner > &signer)
 Configure a signer on the specific signature field.
 
void Sign (PdfMemDocument &doc, StreamDevice &device, PdfSaveOptions options=PdfSaveOptions::None)
 Start a blocking event-driven signing procedure.
 
void StartSigning (PdfMemDocument &doc, const std::shared_ptr< StreamDevice > &device, PdfSigningResults &results, PdfSaveOptions saveOptions=PdfSaveOptions::None)
 Start a deferred (aka "async") signing procedure. More...
 
void FinishSigning (const PdfSigningResults &processedResults)
 Finish a deferred (aka "async") signing procedure. More...
 

Friends

PODOFO_API void SignDocument (PdfMemDocument &doc, StreamDevice &device, PdfSigner &signer, PdfSignature &signature, PdfSaveOptions saveOptions)
 Sign the document on the given signature field. More...
 

Detailed Description

A context that can be used to customize the signing process.

It also enables the deferred (aka "async") signing, which is a mean to separately process the intermediate results of signing (normally a hash to sign) that doesn't require a streamlined event based processing. It can be issued by starting the process with StartSigning() and finishing it with FinishSigning()

Member Function Documentation

◆ FinishSigning()

void PdfSigningContext::FinishSigning ( const PdfSigningResults processedResults)

Finish a deferred (aka "async") signing procedure.

Parameters
processedResultsresults that will be used to finalize the signatures

◆ StartSigning()

void PdfSigningContext::StartSigning ( PdfMemDocument doc,
const std::shared_ptr< StreamDevice > &  device,
PdfSigningResults results,
PdfSaveOptions  saveOptions = PdfSaveOptions::None 
)

Start a deferred (aka "async") signing procedure.

Parameters
resultsinstance where intermediate results will be stored

Friends And Related Function Documentation

◆ SignDocument

PODOFO_API void SignDocument ( PdfMemDocument doc,
StreamDevice device,
PdfSigner &  signer,
PdfSignature &  signature,
PdfSaveOptions  saveOptions 
)
friend

Sign the document on the given signature field.

Parameters
docthe document to be signed
devicethe input/output device where the document will be saved
signerthe signer implementation that will compute the signature
signaturethe signature field where the signature will be applied
optionsdocument saving options

The documentation for this class was generated from the following files: