Click or drag to resize

PdfSignatureContent Class

Represents the content of the PdfSignature.

For public-key signatures, PdfSignatureContent should be either a DER-encoded PKCS#1 binary data object or a DER-encoded CMS binary data object.

For document timestamp signatures, PdfSignatureContent shall be the TimeStampToken as specified in RFC 3161 as updated by RFC 5816. The value of the messageImprint field within the TimeStampToken shall be a hash of the bytes of the document indicated by the ByteRange and the ByteRange shall specify the complete PDF file contents (excepting the Content value).

Inheritance Hierarchy
SystemObject
  SautinSoft.Pdf.FormsPdfSignatureContent

Namespace: SautinSoft.Pdf.Forms
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.4.23
Syntax
public class PdfSignatureContent

The PdfSignatureContent type exposes the following members.

Properties
 NameDescription
Public propertyHashAlgorithm Gets the hash algorithm used to hash the contents of a PDF file upon which the signature's Value is computed by PdfDigitalId.
Public propertyPolicyIdentifier Gets the signature policy identifier contained in the PdfSignatureContent or if signature doesn't contain a policy identifier.
Public propertyRSASignaturePadding Gets the RSA signature padding used if signer's certificate has an 'RSA' public key.
Public propertySignerCertificate Gets the signer certificate contained in the PdfSignatureContent.
Public propertyTimestampToken Gets the timestamp token contained in the PdfSignatureContent or if signature doesn't contain a timestamp.
Public propertyValidationInfo Gets the (potentially partial) validation-related information (certificates, certificate revocation lists and Online Certificate Status Protocol responses) contained in the PdfSignatureContent.
Public propertyValue Gets the signature value.
Top
Methods
 NameDescription
Public methodGetHash

Gets the hash over which the signature was computed, if the hash is contained in the PdfSignatureContent; otherwise, .

If the PdfSignatureContent is a DER-encoded CMS binary data object and conforms to RFC 5652 Cryptographic Message Syntax, the hash is either the value of the encapContentInfo field within the SignedData (if eContent field within the EncapsulatedContentInfo is not empty, in which case hashAlgorithm is SHA1 because the PdfSignatureContent is in the PKCS7_SHA1 format) or the value of the MessageDigest signed attribute (if present).

If the PdfSignatureContent is a TimeStampToken as specified in RFC 3161 as updated by RFC 5816, the hash is the value of the messageImprint field within the TimeStampToken.

Public methodGetRawData Gets the copy of raw data of a PdfSignatureContent.
Public methodToString Returns a String that represents this PdfSignatureContent instance.
(Overrides ObjectToString)
Top
See Also