Method AddLtvInfo
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
AddLtvInfo()
Adds long term validation (LTV) information to all signatures within this document.
public void AddLtvInfo()
Remarks
This method requires at least one signature available in the document.
This method adds certificates, OCSP and CRL responses to the Document Security Store (DSS) dictionary. This information allows to verify signatures later without contacting OCSP and CRL servers.
Use this method to produce PDF documents with Advanced Electronic Signatures (PAdES B-LT level) or Qualified Electronic Signatures (PAdES B-LTA level) compliant with European eIDAS regulations. Such signatures must additionally follow B-T level requirements - have ETSI.CAdES.detached format (CadesDetached) and include a timestamp.
After adding the LTV information, you need to write this PDF document incrementally to keep existing signatures valid. See the WriteIncrementally property. You can also use TimestampAndSave methods to add document timestamps. Document timestamps are required for PAdES B-LTA signature level.
Exceptions
- DigitalSignatureException
The document does not contain signatures. or Unable to get valid revocation information for some signing certificate.
AddLtvInfo(PdfSignature[])
Adds long term validation (LTV) information to the specified signatures from this document.
public void AddLtvInfo(PdfSignature[] signatures)
Parameters
signatures
PdfSignature[]Signatures to add LTV information for.
Remarks
This method requires at least one signature provided.
This method adds certificates, OCSP and CRL responses to the Document Security Store (DSS) dictionary. This information allows to verify signatures later without contacting OCSP and CRL servers.
Use this method to produce PDF documents with Advanced Electronic Signatures (PAdES B-LT level) or Qualified Electronic Signatures (PAdES B-LTA level) compliant with European eIDAS regulations. Such signatures must additionally follow B-T level requirements - have ETSI.CAdES.detached format (CadesDetached) and include a timestamp.
After adding the LTV information, you need to write this PDF document incrementally to keep all signatures valid. See the WriteIncrementally property. You can also use TimestampAndSave methods to add document timestamps. Document timestamps are required for PAdES B-LTA signature level.
Exceptions
- DigitalSignatureException
The
signatures
collection is empty. or Thesignatures
collection contains a signature from other document. or Unable to get valid revocation information for some signing certificate.
AddLtvInfo(PdfSigningOptions)
Adds long term validation (LTV) information for the certificates from the specified signing options.
public void AddLtvInfo(PdfSigningOptions signingOptions)
Parameters
signingOptions
PdfSigningOptionsThe signing options to load certificates from.
Remarks
Use this overload to add LTV information before signing. For example, to produce certification signatures with AuthorNoChanges.
This method adds certificates, OCSP and CRL responses to the Document Security Store (DSS) dictionary. This information allows to verify signatures later without contacting OCSP and CRL servers.
Use this method to produce PDF documents with Advanced Electronic Signatures (PAdES B-LT level) or Qualified Electronic Signatures (PAdES B-LTA level) compliant with European eIDAS regulations. Such signatures must additionally follow B-T level requirements - have ETSI.CAdES.detached format (CadesDetached) and include a timestamp.
After adding the LTV information to an existing document, you need to write this PDF document incrementally to keep all signatures valid. See the WriteIncrementally property. You can also use TimestampAndSave methods to add document timestamps. Document timestamps are required for PAdES B-LTA signature level.
Exceptions
- DigitalSignatureException
Unable to get valid revocation information for some signing certificate.