2003-06-19 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / System.Security / System.Security.Cryptography.Xml / KeyInfoNode.cs
1 //
2 // KeyInfoNode.cs - KeyInfoNode implementation for XML Signature
3 //
4 // Author:
5 //      Sebastien Pouliot (spouliot@motus.com)
6 //
7 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
8 //
9
10 using System.Xml;
11
12 namespace System.Security.Cryptography.Xml {
13
14         public class KeyInfoNode : KeyInfoClause {
15
16                 private XmlElement Node;
17
18                 public KeyInfoNode () {}
19
20                 public KeyInfoNode (XmlElement node) 
21                 {
22                         LoadXml (node);
23                 }
24
25                 public XmlElement Value {
26                         get { return Node; }
27                         set { Node = value; }
28                 }
29
30                 public override XmlElement GetXml () 
31                 {
32                         return Node;
33                 }
34
35                 // LAMESPEC: No ArgumentNullException is thrown if value == null
36                 public override void LoadXml (XmlElement value) 
37                 {
38                         Node = value;
39                 }
40         }
41 }