Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ExtendedProtectionPolicy Constructor (PolicyEnforcement, ProtectionScenario, ServiceNameCollection)

Initializes a new instance of the ExtendedProtectionPolicy class that specifies when the extended protection policy should be enforced, the kind of protection enforced by the policy, and a custom Service Provider Name (SPN) list that is used to match against a client's SPN.

Namespace:  System.Security.Authentication.ExtendedProtection
Assembly:  System (in System.dll)
public ExtendedProtectionPolicy(
	PolicyEnforcement policyEnforcement,
	ProtectionScenario protectionScenario,
	ServiceNameCollection customServiceNames
)

Parameters

policyEnforcement
Type: System.Security.Authentication.ExtendedProtection.PolicyEnforcement

A PolicyEnforcement value that indicates when the extended protection policy should be enforced.

protectionScenario
Type: System.Security.Authentication.ExtendedProtection.ProtectionScenario

A ProtectionScenario value that indicates the kind of protection enforced by the policy.

customServiceNames
Type: System.Security.Authentication.ExtendedProtection.ServiceNameCollection

A ServiceNameCollection that contains the custom SPN list that is used to match against a client's SPN.

ExceptionCondition
ArgumentException

policyEnforcement is specified as Never.

ArgumentNullException

customServiceNames is nullor an empty list.

When this constructor is used to initialize a new instance of the ExtendedProtectionPolicy class, the PolicyEnforcement property is set to the policyEnforcement parameter, the ProtectionScenario property is set to the protectionScenario parameter, and the CustomChannelBinding property is set to the customChannelBinding parameter.

Windows 7, Windows Server 2008 R2

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.