Beispiel #1
0
        public BasicHttpsBinding(BasicHttpsSecurityMode securityMode)
        {
            if (securityMode == BasicHttpsSecurityMode.TransportWithMessageCredential)
            {
                throw ExceptionHelper.PlatformNotSupported(SR.Format(SR.UnsupportedSecuritySetting, "securityMode", securityMode));
            }

            _basicHttpsSecurity      = new BasicHttpsSecurity();
            _basicHttpsSecurity.Mode = securityMode;
        }
        internal void InitializeFrom(BasicHttpsSecurity security)
        {
            if (security == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security");
            }

            SetPropertyValueIfNotDefaultValue(ConfigurationStrings.Mode, security.Mode);
            this.Transport.InitializeFrom(security.Transport);
            this.Message.InitializeFrom(security.Message);
        }
        internal void ApplyConfiguration(BasicHttpsSecurity security)
        {
            if (security == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security");
            }

            security.Mode = this.Mode;
            this.Transport.ApplyConfiguration(security.Transport);
            this.Message.ApplyConfiguration(security.Message);
        }
Beispiel #4
0
 void Initialize()
 {
     _messageEncoding = NetHttpBindingDefaults.MessageEncoding;
     _binaryMessageEncodingBindingElement = new BinaryMessageEncodingBindingElement()
     {
         MessageVersion = MessageVersion.Soap12WSAddressing10
     };
     TextMessageEncodingBindingElement.MessageVersion = MessageVersion.Soap12WSAddressing10;
     InternalWebSocketSettings.TransportUsage         = NetHttpBindingDefaults.TransportUsage;
     InternalWebSocketSettings.SubProtocol            = WebSocketTransportSettings.SoapSubProtocol;
     _basicHttpsSecurity = new BasicHttpsSecurity();
 }
Beispiel #5
0
        internal static BasicHttpsSecurity ToBasicHttpsSecurity(BasicHttpSecurity basicHttpSecurity)
        {
            Fx.Assert(basicHttpSecurity != null, "basicHttpSecurity cannot be null");

            BasicHttpsSecurity basicHttpsSecurity = new BasicHttpsSecurity()
            {
                Transport = basicHttpSecurity.Transport,
                Mode      = BasicHttpsSecurityModeHelper.ToBasicHttpsSecurityMode(basicHttpSecurity.Mode)
            };

            return(basicHttpsSecurity);
        }
Beispiel #6
0
        internal static BasicHttpSecurity ToBasicHttpSecurity(BasicHttpsSecurity basicHttpsSecurity)
        {
            Fx.Assert(basicHttpsSecurity != null, "Cannot pass in a null value for basicHttpsSecurity");

            BasicHttpSecurity basicHttpSecurity = new BasicHttpSecurity()
            {
                Transport = basicHttpsSecurity.Transport,
                Mode      = BasicHttpsSecurityModeHelper.ToBasicHttpSecurityMode(basicHttpsSecurity.Mode)
            };

            return(basicHttpSecurity);
        }
Beispiel #7
0
        internal static BasicHttpSecurity ToBasicHttpSecurity(BasicHttpsSecurity basicHttpsSecurity)
        {
            Fx.Assert(basicHttpsSecurity != null, "Cannot pass in a null value for basicHttpsSecurity");

            BasicHttpSecurity basicHttpSecurity = new BasicHttpSecurity()
            {
                Transport = basicHttpsSecurity.Transport,
                Mode = BasicHttpsSecurityModeHelper.ToBasicHttpSecurityMode(basicHttpsSecurity.Mode)
            };

            return basicHttpSecurity;
        }
 void Initialize()
 {
     this.messageEncoding = NetHttpBindingDefaults.MessageEncoding;
     this.binaryMessageEncodingBindingElement = new BinaryMessageEncodingBindingElement()
     {
         MessageVersion = MessageVersion.Soap12WSAddressing10
     };
     this.TextMessageEncodingBindingElement.MessageVersion = MessageVersion.Soap12WSAddressing10;
     this.MtomMessageEncodingBindingElement.MessageVersion = MessageVersion.Soap12WSAddressing10;
     this.session         = new ReliableSessionBindingElement();
     this.reliableSession = new OptionalReliableSession(this.session);
     this.InternalWebSocketSettings.TransportUsage = NetHttpBindingDefaults.TransportUsage;
     this.InternalWebSocketSettings.SubProtocol    = WebSocketTransportSettings.SoapSubProtocol;
     this.basicHttpsSecurity = new BasicHttpsSecurity();
 }
Beispiel #9
0
 public BasicHttpsBinding(
     BasicHttpsSecurityMode securityMode)
 {
     security = new BasicHttpsSecurity(securityMode);
 }
 internal static BasicHttpsSecurity ToBasicHttpsSecurity(BasicHttpSecurity basicHttpSecurity)
 {
     Fx.Assert(basicHttpSecurity != null, "basicHttpSecurity cannot be null");
     
     BasicHttpsSecurity basicHttpsSecurity = new BasicHttpsSecurity()
     {
         Message = basicHttpSecurity.Message,
         Transport = basicHttpSecurity.Transport,
         Mode = BasicHttpsSecurityModeHelper.ToBasicHttpsSecurityMode(basicHttpSecurity.Mode)
     };
    
     return basicHttpsSecurity;
 }
Beispiel #11
0
		public BasicHttpsBinding (
			BasicHttpsSecurityMode securityMode)
		{
			security = new BasicHttpsSecurity (securityMode);
		}
Beispiel #12
0
 public BasicHttpsBinding(BasicHttpsSecurityMode securityMode)
 {
     _basicHttpsSecurity      = new BasicHttpsSecurity();
     _basicHttpsSecurity.Mode = securityMode;
 }
Beispiel #13
0
 public BasicHttpsBinding(BasicHttpsSecurityMode securityMode)
     : base()
 {
     this.basicHttpsSecurity      = new BasicHttpsSecurity();
     this.basicHttpsSecurity.Mode = securityMode;
 }