2 // KeyInfoName.cs - KeyInfoName implementation for XML Signature
5 // Sebastien Pouliot (spouliot@motus.com)
7 // (C) 2002 Motus Technologies Inc. (http://www.motus.com)
13 namespace System.Security.Cryptography.Xml {
15 public class KeyInfoName : KeyInfoClause {
19 public KeyInfoName() {}
26 public override XmlElement GetXml ()
28 StringBuilder sb = new StringBuilder ();
29 sb.Append ("<KeyName xmlns=\"http://www.w3.org/2000/09/xmldsig#\">");
31 sb.Append ("</KeyName>");
33 XmlDocument doc = new XmlDocument ();
34 doc.LoadXml(sb.ToString ());
35 return doc.DocumentElement;
38 public override void LoadXml (XmlElement value)
41 throw new ArgumentNullException ();
43 if ((value.LocalName == "KeyName") && (value.NamespaceURI == "http://www.w3.org/2000/09/xmldsig#"))
44 Name = value.InnerXml;