XmlDsigLevel
XmlDsigLevel enumeration
Specifies the level of a digital signature based on XML-DSig standard.
public enum XmlDsigLevel
Values
Name | Value | Description |
---|---|---|
XmlDSig | 0 | Specifies XML-DSig signature level. |
XAdEsEpes | 1 | Specifies XAdES-EPES signature level. |
Examples
Shows how to sign document based on XML-DSig standard.
CertificateHolder certificateHolder = CertificateHolder.Create(MyDir + "morzal.pfx", "aw");
SignOptions signOptions = new SignOptions { XmlDsigLevel = XmlDsigLevel.XAdEsEpes };
string inputFileName = MyDir + "Document.docx";
string outputFileName = ArtifactsDir + "DigitalSignatureUtil.XmlDsig.docx";
DigitalSignatureUtil.Sign(inputFileName, outputFileName, certificateHolder, signOptions);
See Also
- namespace Aspose.Words.DigitalSignatures
- assembly Aspose.Words