Click or drag to resize
DigitalSignatureType Enumeration
Specifies the type of a digital signature.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
Syntax
public enum DigitalSignatureType
Members
  Member nameValueDescription
Unknown0 Indicates an error, unknown digital signature type.
CryptoApi1 The Crypto API signature method used in Microsoft Word 97-2003 .DOC binary documents.
XmlDsig2 The XmlDsig signature method used in OOXML and OpenDocument documents.
Examples
Shows how to validate all signatures in a document.
[C#]

// Load the signed document.
Document doc = new Document(MyDir + "Document.DigitalSignature.docx");
DigitalSignatureCollection digitalSignatureCollection = doc.DigitalSignatures;

if (digitalSignatureCollection.IsValid)
{
    Console.WriteLine("Signatures belonging to this document are valid");
    Console.WriteLine(digitalSignatureCollection.Count);
    Console.WriteLine(digitalSignatureCollection[0].SignatureType);
}
else
{
    Console.WriteLine("Signatures belonging to this document are NOT valid");
}
See Also