Skip to content

PDFComputeSignatureEventData

Namespace: O2S.Components.PDF4NET.DigitalSignatures

Defines the arguments for ComputeSignature delegate.

public class PDFComputeSignatureEventData

Inheritance ObjectPDFComputeSignatureEventData

Properties

ContentHash

Gets the hash of the content to be signed.

public Byte[] ContentHash { get; }

Property Value

Byte[]
The hash of the content to be signed computed using the hsh algorithm specified on the digital signature.


MessageToSign

Gets the message to be signed.

public Byte[] MessageToSign { get; }

Property Value

Byte[]
The complete DER encoded message on which the signature is computed. It includes the content hash and other required signed attributes.
This message might need to be hashed before providing it to external signature generators.


Signature

Gets or sets the computed signature.

public Byte[] Signature { get; set; }

Property Value

Byte[]
The complete DER encoded PKCS7 signature.

Remarks

The library will embed the content of the this property in the PDF file. Time stamp information will be added to the signature if PDFDigitalSignature.OnSignatureTimestampNeeded event is set.