PoDoFo
1.0.0-dev
|
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... | |
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()
void PdfSigningContext::FinishSigning | ( | const PdfSigningResults & | processedResults | ) |
Finish a deferred (aka "async") signing procedure.
processedResults | results that will be used to finalize the signatures |
void PdfSigningContext::StartSigning | ( | PdfMemDocument & | doc, |
const std::shared_ptr< StreamDevice > & | device, | ||
PdfSigningResults & | results, | ||
PdfSaveOptions | saveOptions = PdfSaveOptions::None |
||
) |
Start a deferred (aka "async") signing procedure.
results | instance where intermediate results will be stored |
|
friend |
Sign the document on the given signature field.
doc | the document to be signed |
device | the input/output device where the document will be saved |
signer | the signer implementation that will compute the signature |
signature | the signature field where the signature will be applied |
options | document saving options |