KeyInfoNode.cs 719 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // KeyInfoNode.cs - KeyInfoNode implementation for XML Signature
  3. //
  4. // Author:
  5. // Sebastien Pouliot ([email protected])
  6. //
  7. // (C) 2002 Motus Technologies Inc. (http://www.motus.com)
  8. //
  9. using System.Text;
  10. using System.Xml;
  11. namespace System.Security.Cryptography.Xml {
  12. public class KeyInfoNode : KeyInfoClause {
  13. protected XmlElement Node;
  14. public KeyInfoNode () {}
  15. public KeyInfoNode (XmlElement node)
  16. {
  17. LoadXml (node);
  18. }
  19. public XmlElement Value {
  20. get { return Node; }
  21. set { Node = value; }
  22. }
  23. public override XmlElement GetXml ()
  24. {
  25. return Node;
  26. }
  27. // LAMESPEC: No ArgumentNullException is thrown if value == null
  28. public override void LoadXml (XmlElement value)
  29. {
  30. Node = value;
  31. }
  32. }
  33. }