| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- //
- // XmlDsigEnvelopedSignatureTransform.cs -
- // Enveloped Signature Transform implementation for XML Signature
- //
- // Author:
- // Sebastien Pouliot ([email protected])
- //
- // (C) 2002 Motus Technologies Inc. (http://www.motus.com)
- //
- using System.IO;
- using System.Xml;
- namespace System.Security.Cryptography.Xml {
- public class XmlDsigEnvelopedSignatureTransform : Transform {
- protected bool comments;
- public XmlDsigEnvelopedSignatureTransform ()
- {
- comments = false;
- }
- public XmlDsigEnvelopedSignatureTransform (bool includeComments)
- {
- comments = includeComments;
- }
- public override Type[] InputTypes {
- get {
- if (input == null) {
- lock (this) {
- // this way the result is cached if called multiple time
- input = new Type [3];
- input[0] = typeof (System.IO.Stream);
- input[1] = typeof (System.Xml.XmlDocument);
- input[2] = typeof (System.Xml.XmlNodeList);
- }
- }
- return input;
- }
- }
- public override Type[] OutputTypes {
- get {
- if (output == null) {
- lock (this) {
- // this way the result is cached if called multiple time
- output = new Type [2];
- input[0] = typeof (System.Xml.XmlDocument);
- input[1] = typeof (System.Xml.XmlNodeList);
- }
- }
- return output;
- }
- }
- protected override XmlNodeList GetInnerXml ()
- {
- return null; // THIS IS DOCUMENTED AS SUCH
- }
- public override object GetOutput()
- {
- // return (object) new XmlNodeList ();
- return null;
- }
- public override object GetOutput (Type type)
- {
- if (type == Type.GetType ("Stream"))
- return GetOutput ();
- throw new ArgumentException ("type");
- }
- public override void LoadInnerXml (XmlNodeList nodeList)
- {
- // NO CHANGE
- }
- public override void LoadInput (object obj)
- {
- // if (type.Equals (Stream.GetType ())
- }
- }
- }
|