| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- //
- // KeyInfoEncryptedKey.cs - KeyInfoEncryptedKey implementation for XML Encryption
- // http://www.w3.org/2001/04/xmlenc#sec-EncryptedKey
- //
- // Author:
- // Tim Coleman ([email protected])
- //
- // Copyright (C) Tim Coleman, 2004
- //
- #if NET_1_2
- using System.Xml;
- namespace System.Security.Cryptography.Xml {
- public class KeyInfoEncryptedKey : KeyInfoClause {
- #region Fields
- EncryptedKey encryptedKey;
- #endregion // Fields
- #region Constructors
- public KeyInfoEncryptedKey ()
- {
- }
- public KeyInfoEncryptedKey (EncryptedKey ek)
- {
- EncryptedKey = ek;
- }
- #endregion // Constructors
- #region Properties
- public EncryptedKey EncryptedKey {
- get { return encryptedKey; }
- set { encryptedKey = value; }
- }
- #endregion // Properties
- #region Methods
- public override XmlElement GetXml ()
- {
- return GetXml (new XmlDocument ());
- }
- [MonoTODO]
- internal XmlElement GetXml (XmlDocument document)
- {
- if (encryptedKey != null)
- return encryptedKey.GetXml (document);
- return null;
- }
- [MonoTODO]
- public override void LoadXml (XmlElement value)
- {
- EncryptedKey = new EncryptedKey ();
- EncryptedKey.LoadXml (value);
- }
- #endregion // Methods
- }
- }
- #endif
|