2 // KeyInfoEncryptedKey.cs - KeyInfoEncryptedKey implementation for XML Encryption
3 // http://www.w3.org/2001/04/xmlenc#sec-EncryptedKey
6 // Tim Coleman (tim@timcoleman.com)
8 // Copyright (C) Tim Coleman, 2004
15 namespace System.Security.Cryptography.Xml {
17 public class KeyInfoEncryptedKey : KeyInfoClause {
21 EncryptedKey encryptedKey;
27 public KeyInfoEncryptedKey ()
31 public KeyInfoEncryptedKey (EncryptedKey ek)
36 #endregion // Constructors
40 public EncryptedKey EncryptedKey {
41 get { return encryptedKey; }
42 set { encryptedKey = value; }
45 #endregion // Properties
49 public override XmlElement GetXml ()
51 return GetXml (new XmlDocument ());
55 internal XmlElement GetXml (XmlDocument document)
57 if (encryptedKey != null)
58 return encryptedKey.GetXml (document);
63 public override void LoadXml (XmlElement value)
65 EncryptedKey = new EncryptedKey ();
66 EncryptedKey.LoadXml (value);