109 references to SecurityMode
System.ServiceModel (108)
System\ServiceModel\Channels\PeerHelpers.cs (2)
664
SR.GetString(SR.ValueMustBeInRange,
SecurityMode
.None,
SecurityMode
.TransportWithMessageCredential)));
System\ServiceModel\Channels\PeerSecurityManager.cs (10)
141
if (security.Mode ==
SecurityMode
.Transport || security.Mode ==
SecurityMode
.TransportWithMessageCredential)
153
if (security.Mode ==
SecurityMode
.Message || security.Mode ==
SecurityMode
.TransportWithMessageCredential)
872
requirement.Properties[SecurityTokenRequirement.PeerAuthenticationMode] =
SecurityMode
.Message;
874
requirement.Properties[SecurityTokenRequirement.PeerAuthenticationMode] =
SecurityMode
.Transport;
928
requirement.Properties[SecurityTokenRequirement.PeerAuthenticationMode] =
SecurityMode
.Transport;
952
requirement.Properties[SecurityTokenRequirement.PeerAuthenticationMode] =
SecurityMode
.Message;
1008
requirement.Properties[SecurityTokenRequirement.PeerAuthenticationMode] =
SecurityMode
.Transport;
1013
requirement.Properties[SecurityTokenRequirement.PeerAuthenticationMode] =
SecurityMode
.Message;
System\ServiceModel\Configuration\NetTcpSecurityElement.cs (2)
20
public
SecurityMode
Mode
22
get { return (
SecurityMode
)base[ConfigurationStrings.Mode]; }
System\ServiceModel\Configuration\PeerSecurityElement.cs (5)
20
public
SecurityMode
Mode
22
get { return (
SecurityMode
)base[ConfigurationStrings.Mode]; }
39
if (security.Mode !=
SecurityMode
.None)
52
if (security.Mode !=
SecurityMode
.None)
65
if (source.Mode !=
SecurityMode
.None)
System\ServiceModel\Configuration\Properties.cs (6)
2444
properties.Add(new ConfigurationProperty("mode", typeof(System.ServiceModel.
SecurityMode
), System.ServiceModel.
SecurityMode
.Transport, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.SecurityModeHelper)), System.Configuration.ConfigurationPropertyOptions.None));
2575
properties.Add(new ConfigurationProperty("mode", typeof(System.ServiceModel.
SecurityMode
), System.ServiceModel.
SecurityMode
.Transport, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.SecurityModeHelper)), System.Configuration.ConfigurationPropertyOptions.None));
3844
properties.Add(new ConfigurationProperty("mode", typeof(System.ServiceModel.
SecurityMode
), System.ServiceModel.
SecurityMode
.Message, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.SecurityModeHelper)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\WSHttpSecurityElement.cs (2)
20
public
SecurityMode
Mode
22
get { return (
SecurityMode
)base[ConfigurationStrings.Mode]; }
System\ServiceModel\Description\MetadataExchangeBindings.cs (2)
160
WSHttpBinding binding = new WSHttpBinding(
SecurityMode
.None, /* reliableSessionEnabled */ false);
169
new WSHttpSecurity(
SecurityMode
.Transport, new HttpTransportSecurity(), new NonDualMessageSecurityOverHttp()), /* reliableSessionEnabled */ false);
System\ServiceModel\NetTcpBinding.cs (12)
24
public NetTcpBinding(
SecurityMode
securityMode)
30
public NetTcpBinding(
SecurityMode
securityMode, bool reliableSessionEnabled)
290
SecurityMode
mode = security.Mode;
291
if (mode ==
SecurityMode
.None)
295
else if (mode ==
SecurityMode
.Message)
301
if (mode ==
SecurityMode
.TransportWithMessageCredential)
315
Fx.Assert((mode ==
SecurityMode
.Transport) || (mode ==
SecurityMode
.TransportWithMessageCredential), "Unexpected SecurityMode value: " + mode);
423
static bool SetTransportSecurity(BindingElement transport,
SecurityMode
mode, TcpTransportSecurity transportSecurity)
430
if (this.security.Mode ==
SecurityMode
.Message || this.security.Mode ==
SecurityMode
.TransportWithMessageCredential)
447
SecurityMode
securityMode = SecurityModeHelper.ToSecurityMode(mode);
System\ServiceModel\NetTcpContextBinding.cs (2)
26
public NetTcpContextBinding(
SecurityMode
securityMode)
42
public NetTcpContextBinding(
SecurityMode
securityMode, bool reliableSessionEnabled)
System\ServiceModel\NetTcpSecurity.cs (15)
13
internal const
SecurityMode
DefaultMode =
SecurityMode
.Transport;
15
SecurityMode
mode;
24
NetTcpSecurity(
SecurityMode
mode, TcpTransportSecurity transportSecurity, MessageSecurityOverTcp messageSecurity)
34
public
SecurityMode
Mode
62
if (this.mode ==
SecurityMode
.TransportWithMessageCredential)
66
else if (this.mode ==
SecurityMode
.Transport)
88
internal static bool SetTransportSecurity(BindingElement transport,
SecurityMode
mode, TcpTransportSecurity transportSecurity)
90
if (mode ==
SecurityMode
.TransportWithMessageCredential)
94
else if (mode ==
SecurityMode
.Transport)
103
if (this.mode ==
SecurityMode
.Message)
107
else if (this.mode ==
SecurityMode
.TransportWithMessageCredential)
117
internal static bool TryCreate(SecurityBindingElement wsSecurity,
SecurityMode
mode, bool isReliableSessionEnabled, BindingElement transportSecurity, TcpTransportSecurity tcpTransportSecurity, out NetTcpSecurity security)
121
if (mode ==
SecurityMode
.Message)
126
else if (mode ==
SecurityMode
.TransportWithMessageCredential)
System\ServiceModel\PeerSecuritySettings.cs (17)
15
internal const
SecurityMode
DefaultMode =
SecurityMode
.Transport;
17
SecurityMode
mode;
38
public
SecurityMode
Mode
61
return this.Mode ==
SecurityMode
.Transport || this.Mode ==
SecurityMode
.TransportWithMessageCredential;
70
if (this.Mode ==
SecurityMode
.Message || this.Mode ==
SecurityMode
.TransportWithMessageCredential)
85
this.Mode =
SecurityMode
.Transport;
91
this.Mode =
SecurityMode
.None;
94
this.Mode =
SecurityMode
.Transport;
97
this.Mode =
SecurityMode
.Message;
100
this.Mode =
SecurityMode
.TransportWithMessageCredential;
114
case
SecurityMode
.None:
117
case
SecurityMode
.Transport:
120
case
SecurityMode
.Message:
123
case
SecurityMode
.TransportWithMessageCredential:
System\ServiceModel\SecurityMode.cs (11)
16
internal static bool IsDefined(
SecurityMode
value)
18
return (value ==
SecurityMode
.None ||
19
value ==
SecurityMode
.Transport ||
20
value ==
SecurityMode
.Message ||
21
value ==
SecurityMode
.TransportWithMessageCredential);
24
internal static
SecurityMode
ToSecurityMode(UnifiedSecurityMode value)
29
return
SecurityMode
.None;
31
return
SecurityMode
.Transport;
33
return
SecurityMode
.Message;
35
return
SecurityMode
.TransportWithMessageCredential;
37
return (
SecurityMode
)value;
System\ServiceModel\WS2007HttpBinding.cs (2)
42
public WS2007HttpBinding(
SecurityMode
securityMode)
47
public WS2007HttpBinding(
SecurityMode
securityMode, bool reliableSessionEnabled)
System\ServiceModel\WSHttpBinding.cs (6)
40
public WSHttpBinding(
SecurityMode
securityMode)
45
public WSHttpBinding(
SecurityMode
securityMode, bool reliableSessionEnabled)
100
if ((security.Mode ==
SecurityMode
.Transport) &&
113
if (this.security.Mode ==
SecurityMode
.Transport)
173
if (security.Mode ==
SecurityMode
.None || security.Mode ==
SecurityMode
.Message)
System\ServiceModel\WSHttpContextBinding.cs (2)
26
public WSHttpContextBinding(
SecurityMode
securityMode)
42
public WSHttpContextBinding(
SecurityMode
securityMode, bool reliableSessionEnabled)
System\ServiceModel\WSHttpSecurity.cs (12)
12
internal const
SecurityMode
DefaultMode =
SecurityMode
.Message;
14
SecurityMode
mode;
23
internal WSHttpSecurity(
SecurityMode
mode, HttpTransportSecurity transportSecurity, NonDualMessageSecurityOverHttp messageSecurity)
37
public
SecurityMode
Mode
78
if (this.mode ==
SecurityMode
.TransportWithMessageCredential)
95
if (this.mode ==
SecurityMode
.Message || this.mode ==
SecurityMode
.TransportWithMessageCredential)
97
return this.messageSecurity.CreateSecurityBindingElement(this.Mode ==
SecurityMode
.TransportWithMessageCredential, isReliableSessionEnabled, version);
109
SecurityMode
securityMode =
SecurityMode
.None;
115
if (!MessageSecurityOverHttp.TryCreate(sbe, securityMode ==
SecurityMode
.TransportWithMessageCredential, isReliableSessionEnabled, out messageSecurity))
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Description\WorkflowInstanceManagementBehavior.cs (1)
59
Mode =
SecurityMode
.Message,