2003-01-17 Sebastien Pouliot <spouliot@videotron.ca>
[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 Motus Technologies Inc. (http://www.motus.com)
8 //
9
10 using System.Text;
11 using System.Xml;
12
13 namespace System.Security.Cryptography.Xml {
14
15 public class KeyInfoNode : KeyInfoClause {
16
17         private XmlElement Node;
18
19         public KeyInfoNode () {}
20
21         public KeyInfoNode (XmlElement node) 
22         {
23                 LoadXml (node);
24         }
25
26         public XmlElement Value {
27                 get { return Node; }
28                 set { Node = value; }
29         }
30
31         public override XmlElement GetXml () 
32         {
33                 return Node;
34         }
35
36         // LAMESPEC: No ArgumentNullException is thrown if value == null
37         public override void LoadXml (XmlElement value) 
38         {
39                 Node = value;
40         }
41 }
42
43 }