| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using CoreWCF.Channels; |
| | | 5 | | |
| | | 6 | | namespace CoreWCF |
| | | 7 | | { |
| | | 8 | | public class WS2007HttpBinding : WSHttpBinding |
| | | 9 | | { |
| | 1 | 10 | | private static readonly MessageSecurityVersion s_WS2007MessageSecurityVersion = MessageSecurityVersion.WSSecurit |
| | | 11 | | |
| | | 12 | | public WS2007HttpBinding() |
| | 3 | 13 | | : base() |
| | | 14 | | { |
| | 3 | 15 | | HttpsTransport.MessageSecurityVersion = s_WS2007MessageSecurityVersion; |
| | 3 | 16 | | } |
| | | 17 | | |
| | | 18 | | public WS2007HttpBinding(SecurityMode securityMode) |
| | 10 | 19 | | : this(securityMode, reliableSessionEnabled: false) |
| | | 20 | | { |
| | 10 | 21 | | } |
| | | 22 | | |
| | | 23 | | public WS2007HttpBinding(SecurityMode securityMode, bool reliableSessionEnabled) |
| | 10 | 24 | | : base(securityMode, reliableSessionEnabled) |
| | | 25 | | { |
| | 10 | 26 | | HttpsTransport.MessageSecurityVersion = s_WS2007MessageSecurityVersion; |
| | 10 | 27 | | } |
| | | 28 | | |
| | | 29 | | internal WS2007HttpBinding(WSHTTPSecurity security, bool reliableSessionEnabled) |
| | 0 | 30 | | : base(security, reliableSessionEnabled) |
| | | 31 | | { |
| | 0 | 32 | | HttpsTransport.MessageSecurityVersion = s_WS2007MessageSecurityVersion; |
| | 0 | 33 | | } |
| | | 34 | | |
| | | 35 | | public override BindingElementCollection CreateBindingElements() |
| | | 36 | | { |
| | 141 | 37 | | return base.CreateBindingElements(); |
| | | 38 | | } |
| | | 39 | | |
| | | 40 | | protected override TransportBindingElement GetTransport() |
| | | 41 | | { |
| | 180 | 42 | | return base.GetTransport(); |
| | | 43 | | } |
| | | 44 | | |
| | | 45 | | protected override SecurityBindingElement CreateMessageSecurity() |
| | | 46 | | { |
| | 141 | 47 | | return this.Security.CreateMessageSecurity(isReliableSessionEnabled: false, s_WS2007MessageSecurityVersion); |
| | | 48 | | } |
| | | 49 | | } |
| | | 50 | | } |