KeyInfoNode.cs 724 B

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