70 references to PolicyEnforcement
System (37)
net\System\Net\HttpListener.cs (10)
382
m_ExtendedProtectionPolicy = new ExtendedProtectionPolicy(
PolicyEnforcement
.Never);
461
if (!AuthenticationManager.OSSupportsExtendedProtection && value.PolicyEnforcement ==
PolicyEnforcement
.Always)
1442
extendedProtectionPolicy = new ExtendedProtectionPolicy(
PolicyEnforcement
.Never);
2026
if (policy.PolicyEnforcement ==
PolicyEnforcement
.Never)
2040
GlobalLog.Assert(policy.PolicyEnforcement !=
PolicyEnforcement
.Always, "User managed to set PolicyEnforcement.Always when the OS does not support extended protection!");
2071
if (policy.PolicyEnforcement ==
PolicyEnforcement
.Never)
2091
GlobalLog.Assert(policy.PolicyEnforcement !=
PolicyEnforcement
.Always, "User managed to set PolicyEnforcement.Always when the OS does not support extended protection!");
2104
if (policy.PolicyEnforcement ==
PolicyEnforcement
.WhenSupported)
2196
if (policy.PolicyEnforcement !=
PolicyEnforcement
.Never) {
2198
if (policy.PolicyEnforcement ==
PolicyEnforcement
.WhenSupported) {
net\System\Net\SecureProtocols\_NegoState.cs (7)
100
if (policy.PolicyEnforcement ==
PolicyEnforcement
.Always)
116
_ExtendedProtectionPolicy = new ExtendedProtectionPolicy(
PolicyEnforcement
.Never);
190
if (_ExtendedProtectionPolicy.PolicyEnforcement ==
PolicyEnforcement
.WhenSupported) { flags |= ContextFlags.AllowMissingBindings; }
191
if (_ExtendedProtectionPolicy.PolicyEnforcement !=
PolicyEnforcement
.Never &&
455
if (_ExtendedProtectionPolicy.PolicyEnforcement ==
PolicyEnforcement
.Never ||
463
GlobalLog.Assert(_ExtendedProtectionPolicy.PolicyEnforcement !=
PolicyEnforcement
.Always,
472
if (_ExtendedProtectionPolicy.PolicyEnforcement ==
PolicyEnforcement
.WhenSupported)
security\system\security\Authentication\ExtendedProtection\Configuration\ExtendedProtectionPolicyElement.cs (7)
27
public
PolicyEnforcement
PolicyEnforcement {
29
return (
PolicyEnforcement
)this[this.policyEnforcement];
56
if (PolicyEnforcement ==
PolicyEnforcement
.Never)
58
return new ExtendedProtectionPolicy(
PolicyEnforcement
.Never);
79
private static
PolicyEnforcement
DefaultPolicyEnforcement
83
return
PolicyEnforcement
.Never;
89
typeof(
PolicyEnforcement
), DefaultPolicyEnforcement,
security\system\security\Authentication\ExtendedProtection\ExtendedProtectionPolicy.cs (9)
32
private
PolicyEnforcement
policyEnforcement;
36
public ExtendedProtectionPolicy(
PolicyEnforcement
policyEnforcement,
40
if (policyEnforcement ==
PolicyEnforcement
.Never)
54
public ExtendedProtectionPolicy(
PolicyEnforcement
policyEnforcement,
62
public ExtendedProtectionPolicy(
PolicyEnforcement
policyEnforcement,
65
if (policyEnforcement ==
PolicyEnforcement
.Never)
79
public ExtendedProtectionPolicy(
PolicyEnforcement
policyEnforcement)
88
policyEnforcement = (
PolicyEnforcement
)info.GetInt32(policyEnforcementName);
105
public
PolicyEnforcement
PolicyEnforcement
security\system\security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (4)
39
if (policy.PolicyEnforcement ==
PolicyEnforcement
.Never)
41
parameterTypes = new Type[] { typeof(
PolicyEnforcement
) };
42
parameterValues = new object[] {
PolicyEnforcement
.Never };
46
parameterTypes = new Type[] { typeof(
PolicyEnforcement
), typeof(ProtectionScenario), typeof(ICollection) };
System.IdentityModel (14)
System\IdentityModel\Diagnostics\SecurityTraceRecordHelper.cs (2)
134
if (this.channelBinding != null && this.policyHelper.PolicyEnforcement !=
PolicyEnforcement
.Never && this.channelBindingUsed == true)
149
ExtendedProtectionPolicy extendedProtection = new ExtendedProtectionPolicy(
PolicyEnforcement
.WhenSupported, channelBinding);
System\IdentityModel\SecurityUtils.cs (10)
836
static ExtendedProtectionPolicy disabledPolicy = new ExtendedProtectionPolicy(
PolicyEnforcement
.Never);
838
PolicyEnforcement
_policyEnforcement;
860
if (_policyEnforcement ==
PolicyEnforcement
.Never)
868
return (_channelBinding != null && _policyEnforcement !=
PolicyEnforcement
.Never && _protectionScenario != ProtectionScenario.TrustedProxy);
891
public
PolicyEnforcement
PolicyEnforcement
910
if (_policyEnforcement ==
PolicyEnforcement
.Never)
929
if (_policyEnforcement ==
PolicyEnforcement
.Always)
935
if (_policyEnforcement ==
PolicyEnforcement
.WhenSupported)
946
case
PolicyEnforcement
.WhenSupported:
952
case
PolicyEnforcement
.Always:
System\IdentityModel\Tokens\KerberosReceiverSecurityToken.cs (2)
187
if (policyHelper.PolicyEnforcement ==
PolicyEnforcement
.Always && policyHelper.ChannelBinding == null && policyHelper.ProtectionScenario != ProtectionScenario.TrustedProxy)
192
if (policyHelper.PolicyEnforcement ==
PolicyEnforcement
.WhenSupported)
System.ServiceModel (14)
System\ServiceModel\Channels\ChannelBindingUtility.cs (3)
21
static ExtendedProtectionPolicy disabledPolicy = new ExtendedProtectionPolicy(
PolicyEnforcement
.Never);
133
if (policy1.PolicyEnforcement ==
PolicyEnforcement
.Never && policy2.PolicyEnforcement ==
PolicyEnforcement
.Never)
System\ServiceModel\Channels\HttpChannelListener.cs (3)
94
bindingElement.ExtendedProtectionPolicy.PolicyEnforcement ==
PolicyEnforcement
.Always)
694
this.ExtendedProtectionPolicy.PolicyEnforcement ==
PolicyEnforcement
.Always &&
722
if (policy.PolicyEnforcement !=
PolicyEnforcement
.Never &&
System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
194
if (value.PolicyEnforcement ==
PolicyEnforcement
.Always &&
System\ServiceModel\Channels\SecurityChannelListener.cs (2)
375
if (extendedProtectionPolicy.PolicyEnforcement ==
PolicyEnforcement
.Never)
380
if (extendedProtectionPolicy.PolicyEnforcement ==
PolicyEnforcement
.Always)
System\ServiceModel\Channels\TcpTransportBindingElement.cs (1)
124
if (value.PolicyEnforcement ==
PolicyEnforcement
.Always &&
System\ServiceModel\HttpTransportSecurity.cs (1)
78
if (value.PolicyEnforcement ==
PolicyEnforcement
.Always &&
System\ServiceModel\Security\WindowsSspiNegotiation.cs (2)
353
if (policyHelper.PolicyEnforcement ==
PolicyEnforcement
.Always && policyHelper.ChannelBinding == null && policyHelper.ProtectionScenario != ProtectionScenario.TrustedProxy)
358
if (policyHelper.PolicyEnforcement ==
PolicyEnforcement
.WhenSupported)
System\ServiceModel\TcpTransportSecurity.cs (1)
74
if (value.PolicyEnforcement ==
PolicyEnforcement
.Always &&
System.ServiceModel.Activation (5)
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (1)
260
if (extendedProtectionPolicy.PolicyEnforcement ==
PolicyEnforcement
.Always)
System\ServiceModel\Activation\MetabaseSettings.cs (4)
75
PolicyEnforcement
enforce;
81
return new ExtendedProtectionPolicy(
PolicyEnforcement
.Never);
85
enforce =
PolicyEnforcement
.WhenSupported;
89
enforce =
PolicyEnforcement
.Always;