XmlDsigLevel

XmlDsigLevel enumeration

Specifies the level of a digital signature based on XML-DSig standard.

public enum XmlDsigLevel

Values

NameValueDescription
XmlDSig0Specifies XML-DSig signature level.
XAdEsEpes1Specifies 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