mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
* DSAKeyValue.cs: New XML generation is commented. Old string technique did a better job to match MS implementation. * DataObject.cs: Replaced XML generation from StringBuilder to XmlElement. * KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement. * KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement. * KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement. * KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement. * KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement. * RSAKeyValue.cs: New XML generation is commented. Old string technique did a better job to match MS implementation. * Reference.cs: Replaced XML generation from StringBuilder to XmlElement. * Signature.cs: Replaced XML generation from StringBuilder to XmlElement. * SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement. * SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement. * Transform.cs: Replaced XML generation from StringBuilder to XmlElement. * XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL. * XmlDsigXPathTransform.cs: Added missing Algorithm URL. * XmlSignature.cs: New. Private contants (construct similar to WSE). svn path=/trunk/mcs/; revision=12100
43 lines
969 B
C#
43 lines
969 B
C#
//
|
|
// KeyInfoName.cs - KeyInfoName implementation for XML Signature
|
|
//
|
|
// Author:
|
|
// Sebastien Pouliot ([email protected])
|
|
//
|
|
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
|
//
|
|
|
|
using System.Xml;
|
|
|
|
namespace System.Security.Cryptography.Xml {
|
|
|
|
public class KeyInfoName : KeyInfoClause {
|
|
|
|
private string name;
|
|
|
|
public KeyInfoName() {}
|
|
|
|
public string Value {
|
|
get { return name; }
|
|
set { name = value; }
|
|
}
|
|
|
|
public override XmlElement GetXml ()
|
|
{
|
|
XmlDocument document = new XmlDocument ();
|
|
XmlElement xel = document.CreateElement (XmlSignature.ElementNames.KeyName, XmlSignature.NamespaceURI);
|
|
xel.InnerText = name;
|
|
return xel;
|
|
}
|
|
|
|
public override void LoadXml (XmlElement value)
|
|
{
|
|
if (value == null)
|
|
throw new ArgumentNullException ();
|
|
if ((value.LocalName != XmlSignature.ElementNames.KeyName) || (value.NamespaceURI != XmlSignature.NamespaceURI))
|
|
name = "";
|
|
else
|
|
name = value.InnerText;
|
|
}
|
|
}
|
|
} |