39 references to PolicyEnforcement
System (16)
net\System\Net\HttpListener.cs (8)
461
if (!AuthenticationManager.OSSupportsExtendedProtection && value.
PolicyEnforcement
== PolicyEnforcement.Always)
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 (6)
100
if (policy.
PolicyEnforcement
== PolicyEnforcement.Always)
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\ExtendedProtectionPolicyTypeConverter.cs (2)
39
if (policy.
PolicyEnforcement
== PolicyEnforcement.Never)
55
parameterValues = new object[] { policy.
PolicyEnforcement
, policy.ProtectionScenario, customServiceNames };
System.IdentityModel (2)
System\IdentityModel\SecurityUtils.cs (2)
847
_policyEnforcement = DefaultPolicy.
PolicyEnforcement
;
855
_policyEnforcement = extendedProtectionPolicy.
PolicyEnforcement
;
System.ServiceModel (16)
System\ServiceModel\Administration\EndpointInstanceProvider.cs (1)
556
extendedProtectionPolicy.SetProperty(AdministrationStrings.PolicyEnforcement, policy.
PolicyEnforcement
.ToString());
System\ServiceModel\Channels\ChannelBindingUtility.cs (5)
62
destination.PolicyEnforcement = source.
PolicyEnforcement
;
133
if (policy1.
PolicyEnforcement
== PolicyEnforcement.Never && policy2.
PolicyEnforcement
== PolicyEnforcement.Never)
138
if (policy1.
PolicyEnforcement
!= policy2.
PolicyEnforcement
)
System\ServiceModel\Channels\HttpChannelListener.cs (4)
94
bindingElement.ExtendedProtectionPolicy.
PolicyEnforcement
== PolicyEnforcement.Always)
694
this.ExtendedProtectionPolicy.
PolicyEnforcement
== PolicyEnforcement.Always &&
722
if (policy.
PolicyEnforcement
!= PolicyEnforcement.Never &&
729
return new ExtendedProtectionPolicy(policy.
PolicyEnforcement
, policy.ProtectionScenario, GetDefaultSpnList(hostNameComparisonMode, listenUri));
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\TcpTransportSecurity.cs (1)
74
if (value.
PolicyEnforcement
== PolicyEnforcement.Always &&
System.ServiceModel.Activation (5)
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (5)
260
if (extendedProtectionPolicy.
PolicyEnforcement
== PolicyEnforcement.Always)
278
if (iisPolicy.
PolicyEnforcement
!= extendedProtectionPolicy.
PolicyEnforcement
)
280
mismatchErrorMessage = SR.ExtendedProtectionPolicyEnforcementMismatch(iisPolicy.
PolicyEnforcement
, extendedProtectionPolicy.
PolicyEnforcement
);