示例#1
0
        protected SecureMessageDecryptor(
            Message source, MessageSecurityBindingSupport security)
        {
            source_message = source;
            this.security  = security;

            // FIXME: use proper max buffer
            buf = source.CreateBufferedCopy(int.MaxValue);

            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);
        }
示例#2
0
 public MessageSecurityGenerator(Message msg,
                                 MessageSecurityBindingSupport security)
 {
     this.msg      = msg;
     this.security = security;
 }