DigitalSignature

DigitalSignature class

Contains Digital signature properties.

public class DigitalSignature : BaseSignature

Constructors

Name Description
DigitalSignature() Initialize Digital signature with default parameters.
DigitalSignature(string) Initialize Digital signature with known SignatureId.
DigitalSignature(X509Certificate2) Create Digital signature with specified certificate.
DigitalSignature(X509Store) Create Digital signature based on specified X509 store. First certificate from specified store will be used.
DigitalSignature(X509Store, int) Create Digital signature based on specified X509 Store and index of certificate.

Properties

Name Description
Certificate { get; set; } Gets or sets the X509 certificate.
CertificateCustomStoreName { get; set; } Specifies the custom store name of the certificate.
CertificateStoreLocation { get; set; } Specifies the store location of the certificate
CertificateStoreName { get; set; } Specifies the store name of the certificate.
Comments { get; set; } Gets or sets the signing purpose comment.
CreatedOn { get; set; } Get or set the signature creation date.
Deleted { get; } Get the flag that indicates if this signature was deleted from the document. This property is being used only for document history log records to keep the list of deleted signatures.
Height { get; set; } Specifies height of signature.
IsSignature { get; set; } Get or set flag to indicate if this component is Signature or document content. This property is being used with Update method to set element as signature (true) or document element (false).
IsValid { get; set; } Keeps true if this digital signature is valid and the document has not been tampered with.
Left { get; set; } Specifies left position of signature.
ModifiedOn { get; set; } Get or set the signature modification date.
PageNumber { get; } Specifies the page signature was found on.
SignatureId { get; } Unique signature identifier to modify signature in the document over Update or Delete methods. This property will be set automatically after Sign or Search method being called. If this property was saved before it can be set manually to manipulate the signature.
SignatureType { get; } Specifies the type of signature.
SignTime { get; set; } Gets or sets the time the document was signed.
Thumbprint { get; } Gets the thumbprint of a certificate.
Top { get; set; } Specifies top position of signature.
Width { get; set; } Specifies width of signature.
XAdESType { get; } XAdES type XAdESType. Default value is None (XAdES is off). At this moment XAdES signature type is supported only for Spreadsheet documents.

Methods

Name Description
override Clone() Clone Barcode Signature instance.
override Equals(object) Overwrites Equals method to compare signature properties
override GetHashCode() Overrides GetHashCode method
static LoadDigitalSignatures() Load Digital signatures from all system X509 Certificates Stores.
static LoadDigitalSignatures(StoreName) Load Digital signatures from a certificate storage.
static LoadDigitalSignatures(string) Load Digital signatures from a certificate storage.
static LoadDigitalSignatures(StoreName, StoreLocation) Load Digital signatures from a digital certificate storage placed in specific location.
static LoadDigitalSignatures(string, StoreLocation) Load Digital signatures from a digital certificate storage placed in specific location.

See Also