DigitalSignatureSignatureType Property

Gets the type of the digital signature.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.8.0

Syntax

public DigitalSignatureType SignatureType { get; }

Property Value

Type: DigitalSignatureType

Examples

Shows how to validate each signature in a document and display basic information about the signature.
// Load the document which contains signature
Document doc = new Document(MyDir + "Digitally signed.docx");

foreach (DigitalSignature signature in doc.DigitalSignatures)
{
    Console.WriteLine("*** Signature Found ***");
    Console.WriteLine("Is valid: " + signature.IsValid);
    // This property is available in MS Word documents only
    Console.WriteLine("Reason for signing: " + signature.Comments); 
    Console.WriteLine("Signature type: " + signature.SignatureType);
    Console.WriteLine("Time of signing: " + signature.SignTime);
    Console.WriteLine("Subject name: " + signature.CertificateHolder.Certificate.SubjectName);
    Console.WriteLine("Issuer name: " + signature.CertificateHolder.Certificate.IssuerName.Name);
    Console.WriteLine();
}

See Also