protected SecureMessageDecryptor(
            Message source, MessageSecurityBindingSupport security)
        {
            source_message = source;
            this.security  = security;

            // FIXME: use proper max buffer
            buf = source.CreateBufferedCopy(int.MaxValue);
            //Console.WriteLine ("####### " + buf.CreateMessage ());

            doc = new XmlDocument();
            doc.PreserveWhitespace = true;

            nsmgr = new XmlNamespaceManager(doc.NameTable);
            nsmgr.AddNamespace("s", "http://www.w3.org/2003/05/soap-envelope");
            nsmgr.AddNamespace("c", Constants.WsscNamespace);
            nsmgr.AddNamespace("o", Constants.WssNamespace);
            nsmgr.AddNamespace("e", EncryptedXml.XmlEncNamespaceUrl);
            nsmgr.AddNamespace("u", Constants.WsuNamespace);
            nsmgr.AddNamespace("dsig", SignedXml.XmlDsigNamespaceUrl);
        }
Esempio n. 2
0
 public MessageSecurityGenerator(Message msg,
                                 MessageSecurityBindingSupport security)
 {
     this.msg      = msg;
     this.security = security;
 }
		public MessageSecurityGenerator (Message msg, 
			MessageSecurityBindingSupport security)
		{
			this.msg = msg;
			this.security = security;
		}
Esempio n. 4
0
		protected SecureMessageDecryptor (
			Message source, MessageSecurityBindingSupport security)
		{
			source_message = source;
			this.security = security;

			// FIXME: use proper max buffer
			buf = source.CreateBufferedCopy (int.MaxValue);
Console.WriteLine ("####### " + buf.CreateMessage ());

			doc = new XmlDocument ();
			doc.PreserveWhitespace = true;

			nsmgr = new XmlNamespaceManager (doc.NameTable);
			nsmgr.AddNamespace ("s", "http://www.w3.org/2003/05/soap-envelope");
			nsmgr.AddNamespace ("c", Constants.WsscNamespace);
			nsmgr.AddNamespace ("o", Constants.WssNamespace);
			nsmgr.AddNamespace ("e", EncryptedXml.XmlEncNamespaceUrl);
			nsmgr.AddNamespace ("u", Constants.WsuNamespace);
			nsmgr.AddNamespace ("dsig", SignedXml.XmlDsigNamespaceUrl);

		}