XML Signature in .NET
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: XML Signature in .NET
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: XML Signature in .NET
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 1,000 SHARP for every article they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyFeatured eBookClaude for AI-Native BuildersDownload nowWrite an article and earn +1,000 SHARP when it is approved.
Write an article
Jackson HoePosted May 22, 2010, 5:23 AM EDT
Now that we have set the Key to sign the XML document, we will explore how to add a DataObject to the signed XML. The following line of code will add the DataObject to the SignedXML. signedXml.AddObject(dataObject); The following line of code will add the Reference object to the SignedXML. signedXml.AddReference(reference); Finally Generate/ Compute the signature information. signedXml.ComputeSignature(); The following will generate the XML representation of SignedXML. XmlElement xmlSignature = signedXml.GetXml(); Console.WriteLine(xmlSignature.OuterXml); thx