mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
Renamed the `NET_1_2' conditional to `NET_2_0' in all files. svn path=/trunk/mcs/; revision=25877
74 lines
1.2 KiB
C#
74 lines
1.2 KiB
C#
//
|
|
// 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_2_0
|
|
|
|
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
|