Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel.Channels / HttpsTransportBindingElement.cs
index ad0c83047ef8b2f289fab3683b39167aa051e51c..52f3a0e20cd515ca2b69f26e4689009b833a8104 100644 (file)
@@ -84,10 +84,12 @@ namespace System.ServiceModel.Channels
                }
 
 #if !NET_2_1
-               [MonoTODO]
                public XmlElement GetTransportTokenAssertion ()
                {
-                       throw new NotImplementedException ();
+                       var doc = new XmlDocument ();
+                       var token = doc.CreateElement ("sp", "HttpsToken", PolicyImportHelper.SecurityPolicyNS);
+                       token.SetAttribute ("RequireClientCertificate", req_cli_cert ? "true" : "false");
+                       return token;
                }
 
                // overriden only in full profile