ExtendedProtectionPolicy 构造函数

定义

初始化 ExtendedProtectionPolicy 类的新实例。Initializes a new instance of the ExtendedProtectionPolicy class.

重载

ExtendedProtectionPolicy(PolicyEnforcement)

初始化 ExtendedProtectionPolicy 类的新实例,该类指定应何时强制实施扩展保护策略。Initializes a new instance of the ExtendedProtectionPolicy class that specifies when the extended protection policy should be enforced.

ExtendedProtectionPolicy(SerializationInfo, StreamingContext)

ExtendedProtectionPolicy 对象初始化 SerializationInfo 类的新实例,该对象包含用于填充 ExtendedProtectionPolicy 的必需数据。Initializes a new instance of the ExtendedProtectionPolicy class from a SerializationInfo object that contains the required data to populate the ExtendedProtectionPolicy.

ExtendedProtectionPolicy(PolicyEnforcement, ChannelBinding)

初始化 ExtendedProtectionPolicy 类的新实例,该类指定应何时强制实施扩展保护策略以及指定要使用的通道绑定令牌 (CBT)。Initializes a new instance of the ExtendedProtectionPolicy class that specifies when the extended protection policy should be enforced and the channel binding token (CBT) to be used.

ExtendedProtectionPolicy(PolicyEnforcement, ProtectionScenario, ICollection)

初始化 ExtendedProtectionPolicy 类的新实例,该类指定强制实施扩展保护策略的时间、策略强制实施的保护类型以及用于与客户端的 SPN 进行匹配的自定义服务提供程序名称 (SPN) 列表。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.

ExtendedProtectionPolicy(PolicyEnforcement, ProtectionScenario, ServiceNameCollection)

初始化 ExtendedProtectionPolicy 类的新实例,该类指定强制实施扩展保护策略的时间、策略强制实施的保护类型以及用于与客户端的 SPN 进行匹配的自定义服务提供程序名称 (SPN) 列表。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.

ExtendedProtectionPolicy(PolicyEnforcement)

初始化 ExtendedProtectionPolicy 类的新实例,该类指定应何时强制实施扩展保护策略。Initializes a new instance of the ExtendedProtectionPolicy class that specifies when the extended protection policy should be enforced.

public:
 ExtendedProtectionPolicy(System::Security::Authentication::ExtendedProtection::PolicyEnforcement policyEnforcement);
public ExtendedProtectionPolicy (System.Security.Authentication.ExtendedProtection.PolicyEnforcement policyEnforcement);
new System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy : System.Security.Authentication.ExtendedProtection.PolicyEnforcement -> System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy
Public Sub New (policyEnforcement As PolicyEnforcement)

参数

policyEnforcement
PolicyEnforcement

PolicyEnforcement 值,该值指示应何时强制实施扩展保护策略。A PolicyEnforcement value that indicates when the extended protection policy should be enforced.

注解

当使用此构造函数初始化类的新实例时 ExtendedProtectionPolicyPolicyEnforcement 属性将设置为 policyEnforcement 参数,并将 ProtectionScenario 属性设置为 TransportSelectedWhen this constructor is used to initialize a new instance of the ExtendedProtectionPolicy class, the PolicyEnforcement property is set to the policyEnforcement parameter and the ProtectionScenario property is set to TransportSelected.

适用于

ExtendedProtectionPolicy(SerializationInfo, StreamingContext)

ExtendedProtectionPolicy 对象初始化 SerializationInfo 类的新实例,该对象包含用于填充 ExtendedProtectionPolicy 的必需数据。Initializes a new instance of the ExtendedProtectionPolicy class from a SerializationInfo object that contains the required data to populate the ExtendedProtectionPolicy.

protected:
 ExtendedProtectionPolicy(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ExtendedProtectionPolicy (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

SerializationInfo 实例,包含序列化新的 ExtendedProtectionPolicy 实例所需的信息。A SerializationInfo instance that contains the information that is required to serialize the new ExtendedProtectionPolicy instance.

context
StreamingContext

StreamingContext,包含与新的 ExtendedProtectionPolicy 实例关联的序列化流的源。A StreamingContext that contains the source of the serialized stream that is associated with the new ExtendedProtectionPolicy instance.

注解

此构造函数实现 System.Runtime.Serialization.ISerializable 类的接口 ExtendedProtectionPolicyThis constructor implements the System.Runtime.Serialization.ISerializable interface for the ExtendedProtectionPolicy class.

ISerializable.GetObjectData方法可用于对对象进行序列化 ExtendedProtectionPolicyThe ISerializable.GetObjectData method can be used to serialize an ExtendedProtectionPolicy object. 然后,可以将此序列化对象与结合使用 ExtendedProtectionPolicy(SerializationInfo, StreamingContext) 来构造新的 ExtendedProtectionPolicy 对象。This serialized object can then be used with ExtendedProtectionPolicy(SerializationInfo, StreamingContext) to construct a new ExtendedProtectionPolicy object.

另请参阅

适用于

ExtendedProtectionPolicy(PolicyEnforcement, ChannelBinding)

初始化 ExtendedProtectionPolicy 类的新实例,该类指定应何时强制实施扩展保护策略以及指定要使用的通道绑定令牌 (CBT)。Initializes a new instance of the ExtendedProtectionPolicy class that specifies when the extended protection policy should be enforced and the channel binding token (CBT) to be used.

public:
 ExtendedProtectionPolicy(System::Security::Authentication::ExtendedProtection::PolicyEnforcement policyEnforcement, System::Security::Authentication::ExtendedProtection::ChannelBinding ^ customChannelBinding);
public ExtendedProtectionPolicy (System.Security.Authentication.ExtendedProtection.PolicyEnforcement policyEnforcement, System.Security.Authentication.ExtendedProtection.ChannelBinding customChannelBinding);
new System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy : System.Security.Authentication.ExtendedProtection.PolicyEnforcement * System.Security.Authentication.ExtendedProtection.ChannelBinding -> System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy
Public Sub New (policyEnforcement As PolicyEnforcement, customChannelBinding As ChannelBinding)

参数

policyEnforcement
PolicyEnforcement

PolicyEnforcement 值,该值指示应何时强制实施扩展保护策略。A PolicyEnforcement value that indicates when the extended protection policy should be enforced.

customChannelBinding
ChannelBinding

ChannelBinding,它包含用于验证的自定义通道绑定。A ChannelBinding that contains a custom channel binding to use for validation.

例外

policyEnforcement 指定为 NeverpolicyEnforcement is specified as Never.

customChannelBindingnullcustomChannelBinding is null.

注解

当使用此构造函数初始化类的新实例时 ExtendedProtectionPolicyPolicyEnforcement 属性将设置为 policyEnforcement 参数,将 CustomChannelBinding 属性设置为 customChannelBinding 参数,并将 ProtectionScenario 属性设置为 TransportSelectedWhen this constructor is used to initialize a new instance of the ExtendedProtectionPolicy class, the PolicyEnforcement property is set to the policyEnforcement parameter, the CustomChannelBinding property is set to the customChannelBinding parameter, and the ProtectionScenario property is set to TransportSelected.

适用于

ExtendedProtectionPolicy(PolicyEnforcement, ProtectionScenario, ICollection)

初始化 ExtendedProtectionPolicy 类的新实例,该类指定强制实施扩展保护策略的时间、策略强制实施的保护类型以及用于与客户端的 SPN 进行匹配的自定义服务提供程序名称 (SPN) 列表。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.

public:
 ExtendedProtectionPolicy(System::Security::Authentication::ExtendedProtection::PolicyEnforcement policyEnforcement, System::Security::Authentication::ExtendedProtection::ProtectionScenario protectionScenario, System::Collections::ICollection ^ customServiceNames);
public ExtendedProtectionPolicy (System.Security.Authentication.ExtendedProtection.PolicyEnforcement policyEnforcement, System.Security.Authentication.ExtendedProtection.ProtectionScenario protectionScenario, System.Collections.ICollection? customServiceNames);
public ExtendedProtectionPolicy (System.Security.Authentication.ExtendedProtection.PolicyEnforcement policyEnforcement, System.Security.Authentication.ExtendedProtection.ProtectionScenario protectionScenario, System.Collections.ICollection customServiceNames);
new System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy : System.Security.Authentication.ExtendedProtection.PolicyEnforcement * System.Security.Authentication.ExtendedProtection.ProtectionScenario * System.Collections.ICollection -> System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy
Public Sub New (policyEnforcement As PolicyEnforcement, protectionScenario As ProtectionScenario, customServiceNames As ICollection)

参数

policyEnforcement
PolicyEnforcement

PolicyEnforcement 值,该值指示应何时强制实施扩展保护策略。A PolicyEnforcement value that indicates when the extended protection policy should be enforced.

protectionScenario
ProtectionScenario

ProtectionScenario 值,该值指示策略强制实施的保护类型。A ProtectionScenario value that indicates the kind of protection enforced by the policy.

customServiceNames
ICollection

ICollection 包含用于与客户端的 SPN 相匹配的自定义 SPN 列表。A ICollection that contains the custom SPN list that is used to match against a client's SPN.

例外

policyEnforcement 指定为 NeverpolicyEnforcement is specified as Never.

customServiceNamesnull 或空列表。customServiceNames is null or an empty list.

注解

当使用此构造函数初始化类的新实例时 ExtendedProtectionPolicyPolicyEnforcement 属性将设置为 policyEnforcement 参数,将 ProtectionScenario 属性设置为 protectionScenario 参数,并将 CustomServiceNames 属性设置为 customServiceNames 参数。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 CustomServiceNames property is set to the customServiceNames parameter.

适用于

ExtendedProtectionPolicy(PolicyEnforcement, ProtectionScenario, ServiceNameCollection)

初始化 ExtendedProtectionPolicy 类的新实例,该类指定强制实施扩展保护策略的时间、策略强制实施的保护类型以及用于与客户端的 SPN 进行匹配的自定义服务提供程序名称 (SPN) 列表。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.

public:
 ExtendedProtectionPolicy(System::Security::Authentication::ExtendedProtection::PolicyEnforcement policyEnforcement, System::Security::Authentication::ExtendedProtection::ProtectionScenario protectionScenario, System::Security::Authentication::ExtendedProtection::ServiceNameCollection ^ customServiceNames);
public ExtendedProtectionPolicy (System.Security.Authentication.ExtendedProtection.PolicyEnforcement policyEnforcement, System.Security.Authentication.ExtendedProtection.ProtectionScenario protectionScenario, System.Security.Authentication.ExtendedProtection.ServiceNameCollection? customServiceNames);
public ExtendedProtectionPolicy (System.Security.Authentication.ExtendedProtection.PolicyEnforcement policyEnforcement, System.Security.Authentication.ExtendedProtection.ProtectionScenario protectionScenario, System.Security.Authentication.ExtendedProtection.ServiceNameCollection customServiceNames);
new System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy : System.Security.Authentication.ExtendedProtection.PolicyEnforcement * System.Security.Authentication.ExtendedProtection.ProtectionScenario * System.Security.Authentication.ExtendedProtection.ServiceNameCollection -> System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy
Public Sub New (policyEnforcement As PolicyEnforcement, protectionScenario As ProtectionScenario, customServiceNames As ServiceNameCollection)

参数

policyEnforcement
PolicyEnforcement

PolicyEnforcement 值,该值指示应何时强制实施扩展保护策略。A PolicyEnforcement value that indicates when the extended protection policy should be enforced.

protectionScenario
ProtectionScenario

ProtectionScenario 值,该值指示策略强制实施的保护类型。A ProtectionScenario value that indicates the kind of protection enforced by the policy.

customServiceNames
ServiceNameCollection

ServiceNameCollection 包含用于与客户端的 SPN 相匹配的自定义 SPN 列表。A ServiceNameCollection that contains the custom SPN list that is used to match against a client's SPN.

例外

policyEnforcement 指定为 NeverpolicyEnforcement is specified as Never.

customServiceNamesnull 或空列表。customServiceNames is null or an empty list.

注解

当使用此构造函数初始化类的新实例时 ExtendedProtectionPolicyPolicyEnforcement 属性将设置为 policyEnforcement 参数,将 ProtectionScenario 属性设置为 protectionScenario 参数,并将 CustomServiceNames 属性设置为 customServiceNames 参数。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 CustomServiceNames property is set to the customServiceNames parameter.

适用于