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