mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
* SignedXml.cs: Fixed class signature (for 1.1+) by adding public to Resolver property. * Transform.cs: Fixed class signature (for 1.1+) by adding public to Resolver property. svn path=/trunk/mcs/; revision=21962
63 lines
1.3 KiB
C#
63 lines
1.3 KiB
C#
//
|
|
// Transform.cs - Transform implementation for XML Signature
|
|
//
|
|
// Author:
|
|
// Sebastien Pouliot ([email protected])
|
|
//
|
|
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
|
//
|
|
|
|
using System.Runtime.InteropServices;
|
|
using System.Xml;
|
|
|
|
namespace System.Security.Cryptography.Xml {
|
|
|
|
public abstract class Transform {
|
|
|
|
private string algo;
|
|
|
|
public Transform () {}
|
|
|
|
public string Algorithm {
|
|
get { return algo; }
|
|
set { algo = value; }
|
|
}
|
|
|
|
public abstract Type[] InputTypes {
|
|
get;
|
|
}
|
|
|
|
public abstract Type[] OutputTypes {
|
|
get;
|
|
}
|
|
|
|
protected abstract XmlNodeList GetInnerXml ();
|
|
|
|
public abstract object GetOutput ();
|
|
|
|
public abstract object GetOutput (Type type);
|
|
|
|
public XmlElement GetXml ()
|
|
{
|
|
XmlDocument document = new XmlDocument ();
|
|
XmlElement xel = document.CreateElement (XmlSignature.ElementNames.Transform, XmlSignature.NamespaceURI);
|
|
xel.SetAttribute (XmlSignature.AttributeNames.Algorithm, algo);
|
|
return xel;
|
|
}
|
|
|
|
public abstract void LoadInnerXml (XmlNodeList nodeList);
|
|
|
|
public abstract void LoadInput (object obj);
|
|
|
|
#if ! NET_1_0
|
|
private XmlResolver xmlResolver;
|
|
|
|
[MonoTODO("property not (yet) used in derived classes")]
|
|
[ComVisible(false)]
|
|
public XmlResolver Resolver {
|
|
set { xmlResolver = value; }
|
|
}
|
|
#endif
|
|
}
|
|
}
|