The text of this article is not in this database — only its details are. Read it on the old site: XML Signature in .NET
1 Comment
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: XML Signature in .NET
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Jackson HoePosted May 22, 2010, 9:23 AM
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