Method AddValidationDataAsync
- Namespace
- PdfSharp.Pdf.Signatures
- Assembly
- PdfSharp.dll
AddValidationDataAsync(PdfDocument, PdfValidationDataOptions?, CancellationToken)
Collects validation data for the document's signatures and document time-stamps and adds it to the DSS (PAdES B-LT, ETSI EN 319 142-1): the certificates of their chains, and for each certificate below a root an OCSP response (RFC 6960) from the responder its certificate names, or else a CRL (RFC 5280) from each of its distribution points. The certificates come from the signatures, their signature time-stamps and ExtraCertificates. Open the document in Append mode and save it after. The responses are not verified: their signatures and the certificates' status are for the validator to judge. The addresses asked come from the certificates; see PdfValidationDataOptions.
public static Task<PdfValidationDataReport> AddValidationDataAsync(PdfDocument document, PdfValidationDataOptions? options = null, CancellationToken cancellationToken = default)
Parameters
documentPdfDocumentoptionsPdfValidationDataOptionscancellationTokenCancellationToken
Returns
- Task<PdfValidationDataReport>