PDFDigitalSignature¶
Namespace: O2S.Components.PDF4NET.DigitalSignatures
Defines a PDF digital signature.
Inheritance Object → PDFBaseDigitalSignature → PDFDigitalSignature
Fields¶
OnCrlInformationNeeded¶
Gets or sets the delegate to be called when CRL information is needed for embedding it in the signature.
OnOcspInformationNeeded¶
Gets or sets the delegate to be called when OCSP information is needed for embedding it in the signature.
OnSignatureTimestampNeeded¶
Gets or sets the delegate to be called when a timestamp needs to be applied on a digital signature.
Properties¶
Certificate¶
Gets or sets the sign certificate.
Property Value
X509Certificate2
A that represents the certificate used to sign the document.
Remarks
This property is not used by PDFDocumentTimeStamp signatures.
CertificateIncludeOption¶
Gets or sets the option that controls whether the root and entire chain associated with the signing certificate are included with the digital signature.
Property Value
PDFX509CertificateIncludeOption
A PDFX509CertificateIncludeOption enum member specifying how the certificate chain is included in the signature.
Remarks
This property is not used by PDFDocumentTimeStamp signatures.
This property is ignored when PDFCmsDigitalSignature.CertificateChain property is set to an array of certificates.
ContactInfo¶
Gets or sets the contact information.
Property Value
String
Information provided by the signer to enable a recipient to contact the signer to verify the signature.
Remarks
This property should not be set for PDFDocumentTimeStamp signatures.
CosDictionary¶
Gets the signature dictionary.
Property Value
PDFCosDictionary
The COS signature object for setting custom values for the signature.
CrlInformation¶
Gets the CRL information.
Property Value
Location¶
Gets or sets the location.
Property Value
String
The CPU host name or physical location of the signing.
Remarks
This property should not be set for PDFDocumentTimeStamp signatures.
Name¶
Gets or sets the name.
Property Value
String
The name of the person or authority signing the document.
Remarks
This property should not be set for PDFDocumentTimeStamp signatures.
OcspDigestAlgorithm¶
Gets or sets the OCSP digest algorithm.
Property Value
PDFDigitalSignatureDigestAlgorithm
A PDFDigitalSignatureDigestAlgorithm enum member specifying the digest algorithm used in the OCSP request.
OcspInformation¶
Gets the OCSP information.
Property Value
Reason¶
Gets or sets the sign reason.
Property Value
String
The reason for the signing.
Remarks
This property should not be set for PDFDocumentTimeStamp signatures.
SignatureDate¶
Gets or sets the sign date.
Property Value
DateTime
The date and time when the signature was applied.
SignatureDigestAlgorithm¶
Gets or sets the signature digest algorithm.
Property Value
PDFDigitalSignatureDigestAlgorithm
A PDFDigitalSignatureDigestAlgorithm enum member specifying the digest algorithm used in the computation of the digital signature.
SignaturePolicyIdentifier¶
Gets or sets the signature policy identifier.
Property Value
Byte[]
The DER encoded signature policy identifier.
Remarks
When this property is set to a non null value, the signature-policy-identifier signed attribute is added to the signature.
The library does not verify and validate the content of this property. If this property does not include proper DER encoded content,
the generated signature will be invalid.
This property is not used by PDFDocumentTimeStamp signatures.
TimestampDigestAlgorithm¶
Gets or sets the timestamp digest algorithm.
Property Value
PDFDigitalSignatureDigestAlgorithm
A PDFDigitalSignatureDigestAlgorithm enum member specifying the digest algorithm used in the timestamp request.