DigitalSignature

DigitalSignature class

Signature in file.

Constructors

NameDescription
DigitalSignature

Properties

NameTypeDescription
CertificateKeyStoreCertificate object that was used to sign the document.
CommentsStringThe purpose to signature.
SignTimeDateTimeThe time when the document was signed.
IdUUIDSpecifies a GUID which can be cross-referenced with the GUID of the signature line stored in the document content. Defau
TextStringSpecifies the text of actual signature in the digital signature. Default value is Empty.
Imagebyte[]Specifies an image for the digital signature. Default value is null.
ProviderIdUUIDSpecifies the class ID of the signature provider. Default value is Empty (all zeroes) Guid. The cryptographic service pr
IsValidbooleanIf this digital signature is valid and the document has not been tampered with, this value will be true.
XAdESTypeintXAdES type. Default value is None(XAdES is off). The value of the property is XAdESType integer constant.

DigitalSignature(certificate, privateKeyPassword, comments, signTime)

DigitalSignature.Certificate property

Certificate object that was used to sign the document.

Type: KeyStore

DigitalSignature.Comments property

The purpose to signature.

Type: String

DigitalSignature.SignTime property

The time when the document was signed.

Type: DateTime

DigitalSignature.Id property

Specifies a GUID which can be cross-referenced with the GUID of the signature line stored in the document content. Default value is Empty (all zeroes) Guid. When set, it associates SignatureLine with corresponding DigitalSignature .

Type: UUID

DigitalSignature.Text property

Specifies the text of actual signature in the digital signature. Default value is Empty.

Type: String

DigitalSignature.Image property

Specifies an image for the digital signature. Default value is null.

Type: byte[]

DigitalSignature.ProviderId property

Specifies the class ID of the signature provider. Default value is Empty (all zeroes) Guid. The cryptographic service provider (CSP) is an independent software module that actually performs cryptography algorithms for authentication, encoding, and encryption. Microsoft Office reserves the value of {00000000-0000-0000-0000-000000000000} for its default signature provider, and {000CD6A4-0000-0000-C000-000000000046} for its East Asian signature provider. The GUID of the additionally installed provider should be obtained from the documentation shipped with the provider.

Type: UUID

DigitalSignature.IsValid property

If this digital signature is valid and the document has not been tampered with, this value will be true.

Type: boolean

DigitalSignature.XAdESType property

XAdES type. Default value is None(XAdES is off). The value of the property is XAdESType integer constant.

Type: int