| | | 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 WS2007FederationHttpBinding : WSFederationHttpBinding |
| | | 9 | | { |
| | | 10 | | // static readonly ReliableMessagingVersion WS2007ReliableMessagingVersion = ReliableMessagingVersion.WSReliable |
| | | 11 | | //static readonly TransactionProtocol WS2007TransactionProtocol = TransactionProtocol.WSAtomicTransaction11; |
| | 1 | 12 | | private static readonly MessageSecurityVersion _ws2007MessageSecurityVersion = MessageSecurityVersion.WSSecurity |
| | | 13 | | |
| | | 14 | | public WS2007FederationHttpBinding() |
| | 0 | 15 | | : base() |
| | | 16 | | { |
| | | 17 | | // this.ReliableSessionBindingElement.ReliableMessagingVersion = WS2007ReliableMessagingVersion; |
| | | 18 | | // this.TransactionFlowBindingElement.TransactionProtocol = WS2007TransactionProtocol; |
| | 0 | 19 | | HttpsTransport.MessageSecurityVersion = _ws2007MessageSecurityVersion; |
| | 0 | 20 | | } |
| | | 21 | | |
| | | 22 | | public WS2007FederationHttpBinding(WSFederationHttpSecurityMode securityMode) |
| | 2 | 23 | | : this(securityMode, false) |
| | | 24 | | { |
| | 2 | 25 | | } |
| | | 26 | | |
| | | 27 | | public WS2007FederationHttpBinding(WSFederationHttpSecurityMode securityMode, bool reliableSessionEnabled) |
| | 2 | 28 | | : base(securityMode, reliableSessionEnabled) |
| | | 29 | | { |
| | | 30 | | // this.ReliableSessionBindingElement.ReliableMessagingVersion = WS2007ReliableMessagingVersion; |
| | | 31 | | // this.TransactionFlowBindingElement.TransactionProtocol = WS2007TransactionProtocol; |
| | 2 | 32 | | HttpsTransport.MessageSecurityVersion = _ws2007MessageSecurityVersion; |
| | 2 | 33 | | } |
| | | 34 | | |
| | | 35 | | private WS2007FederationHttpBinding(WSFederationHttpSecurity security, PrivacyNoticeBindingElement privacy, bool |
| | 0 | 36 | | : base(security, privacy, reliableSessionEnabled) |
| | | 37 | | { |
| | | 38 | | // this.ReliableSessionBindingElement.ReliableMessagingVersion = WS2007ReliableMessagingVersion; |
| | | 39 | | // this.TransactionFlowBindingElement.TransactionProtocol = WS2007TransactionProtocol; |
| | 0 | 40 | | HttpsTransport.MessageSecurityVersion = _ws2007MessageSecurityVersion; |
| | 0 | 41 | | } |
| | | 42 | | |
| | | 43 | | protected override SecurityBindingElement CreateMessageSecurity() |
| | | 44 | | { |
| | 50 | 45 | | return Security.CreateMessageSecurity(false, _ws2007MessageSecurityVersion); |
| | | 46 | | } |
| | | 47 | | |
| | | 48 | | } |
| | | 49 | | } |