ExtendedProtectionPolicy 构造函数

定义

初始化 ExtendedProtectionPolicy 类的新实例。

重载

ExtendedProtectionPolicy(PolicyEnforcement)

初始化 ExtendedProtectionPolicy 类的新实例,该类指定应何时强制实施扩展保护策略。

ExtendedProtectionPolicy(SerializationInfo, StreamingContext)
已过时.

ExtendedProtectionPolicy 对象初始化 SerializationInfo 类的新实例,该对象包含用于填充 ExtendedProtectionPolicy 的必需数据。

ExtendedProtectionPolicy(PolicyEnforcement, ChannelBinding)

初始化 ExtendedProtectionPolicy 类的新实例,该类指定应何时强制实施扩展保护策略以及指定要使用的通道绑定令牌 (CBT)。

ExtendedProtectionPolicy(PolicyEnforcement, ProtectionScenario, ICollection)

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

ExtendedProtectionPolicy(PolicyEnforcement, ProtectionScenario, ServiceNameCollection)

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

ExtendedProtectionPolicy(PolicyEnforcement)

Source:
ExtendedProtectionPolicy.cs
Source:
ExtendedProtectionPolicy.cs
Source:
ExtendedProtectionPolicy.cs

初始化 ExtendedProtectionPolicy 类的新实例,该类指定应何时强制实施扩展保护策略。

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 值,该值指示应何时强制实施扩展保护策略。

注解

当此构造函数用于初始化 类的新实例 ExtendedProtectionPolicy 时,属性 PolicyEnforcement 设置为 policyEnforcement 参数, ProtectionScenario 并将 属性设置为 TransportSelected

另请参阅

适用于

ExtendedProtectionPolicy(SerializationInfo, StreamingContext)

Source:
ExtendedProtectionPolicy.cs
Source:
ExtendedProtectionPolicy.cs
Source:
ExtendedProtectionPolicy.cs

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

ExtendedProtectionPolicy 对象初始化 SerializationInfo 类的新实例,该对象包含用于填充 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);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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 实例所需的信息。

context
StreamingContext

StreamingContext,包含与新的 ExtendedProtectionPolicy 实例关联的序列化流的源。

属性

注解

此构造函数实现 System.Runtime.Serialization.ISerializable 类的 ExtendedProtectionPolicy 接口。

方法 ISerializable.GetObjectData 可用于序列化 ExtendedProtectionPolicy 对象。 然后,可以将此序列化对象与 一起使用 ExtendedProtectionPolicy(SerializationInfo, StreamingContext) 来构造新 ExtendedProtectionPolicy 对象。

另请参阅

适用于

ExtendedProtectionPolicy(PolicyEnforcement, ChannelBinding)

Source:
ExtendedProtectionPolicy.cs
Source:
ExtendedProtectionPolicy.cs
Source:
ExtendedProtectionPolicy.cs

初始化 ExtendedProtectionPolicy 类的新实例,该类指定应何时强制实施扩展保护策略以及指定要使用的通道绑定令牌 (CBT)。

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 值,该值指示应何时强制实施扩展保护策略。

customChannelBinding
ChannelBinding

ChannelBinding,它包含用于验证的自定义通道绑定。

例外

policyEnforcement 指定为 Never

customChannelBindingnull

注解

使用此构造函数初始化 类的新实例 ExtendedProtectionPolicy 时,属性 PolicyEnforcement 设置为 policyEnforcement 参数, CustomChannelBinding 将 属性设置为 customChannelBinding 参数,并将 ProtectionScenario 属性设置为 TransportSelected

另请参阅

适用于

ExtendedProtectionPolicy(PolicyEnforcement, ProtectionScenario, ICollection)

Source:
ExtendedProtectionPolicy.cs
Source:
ExtendedProtectionPolicy.cs
Source:
ExtendedProtectionPolicy.cs

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

protectionScenario
ProtectionScenario

ProtectionScenario 值,该值指示策略强制实施的保护类型。

customServiceNames
ICollection

ICollection 包含用于与客户端的 SPN 相匹配的自定义 SPN 列表。

例外

policyEnforcement 指定为 Never

customServiceNamesnull 或空列表。

注解

使用此构造函数初始化 类的新实例 ExtendedProtectionPolicy 时,属性 PolicyEnforcement 设置为 policyEnforcement 参数, ProtectionScenario 属性设置为 protectionScenario 参数,并将 CustomServiceNames 属性设置为 customServiceNames 参数。

另请参阅

适用于

ExtendedProtectionPolicy(PolicyEnforcement, ProtectionScenario, ServiceNameCollection)

Source:
ExtendedProtectionPolicy.cs
Source:
ExtendedProtectionPolicy.cs
Source:
ExtendedProtectionPolicy.cs

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

protectionScenario
ProtectionScenario

ProtectionScenario 值,该值指示策略强制实施的保护类型。

customServiceNames
ServiceNameCollection

ServiceNameCollection 包含用于与客户端的 SPN 相匹配的自定义 SPN 列表。

例外

policyEnforcement 指定为 Never

customServiceNamesnull 或空列表。

注解

使用此构造函数初始化 类的新实例 ExtendedProtectionPolicy 时,属性 PolicyEnforcement 设置为 policyEnforcement 参数, ProtectionScenario 属性设置为 protectionScenario 参数,并将 CustomServiceNames 属性设置为 customServiceNames 参数。

另请参阅

适用于