Muokkaa

Jaa


ExtendedProtectionPolicy Constructors

Definition

Initializes a new instance of the ExtendedProtectionPolicy class.

Overloads

ExtendedProtectionPolicy(PolicyEnforcement)

Initializes a new instance of the ExtendedProtectionPolicy class that specifies when the extended protection policy should be enforced.

ExtendedProtectionPolicy(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the ExtendedProtectionPolicy class from a SerializationInfo object that contains the required data to populate the ExtendedProtectionPolicy.

ExtendedProtectionPolicy(PolicyEnforcement, ChannelBinding)

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)

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)

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)

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

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)

Parameters

policyEnforcement
PolicyEnforcement

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

Remarks

When 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.

See also

Applies to

ExtendedProtectionPolicy(SerializationInfo, StreamingContext)

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

Caution

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

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);
[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)

Parameters

info
SerializationInfo

A SerializationInfo instance that contains the information that is required to serialize the new ExtendedProtectionPolicy instance.

context
StreamingContext

A StreamingContext that contains the source of the serialized stream that is associated with the new ExtendedProtectionPolicy instance.

Attributes

Remarks

This constructor implements the System.Runtime.Serialization.ISerializable interface for the ExtendedProtectionPolicy class.

The ISerializable.GetObjectData method can be used to serialize an ExtendedProtectionPolicy object. This serialized object can then be used with ExtendedProtectionPolicy(SerializationInfo, StreamingContext) to construct a new ExtendedProtectionPolicy object.

See also

Applies to

ExtendedProtectionPolicy(PolicyEnforcement, ChannelBinding)

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

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)

Parameters

policyEnforcement
PolicyEnforcement

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

customChannelBinding
ChannelBinding

A ChannelBinding that contains a custom channel binding to use for validation.

Exceptions

policyEnforcement is specified as Never.

customChannelBinding is null.

Remarks

When 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.

See also

Applies to

ExtendedProtectionPolicy(PolicyEnforcement, ProtectionScenario, ICollection)

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

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)

Parameters

policyEnforcement
PolicyEnforcement

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

protectionScenario
ProtectionScenario

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

customServiceNames
ICollection

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

Exceptions

policyEnforcement is specified as Never.

customServiceNames is null or an empty list.

Remarks

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.

See also

Applies to

ExtendedProtectionPolicy(PolicyEnforcement, ProtectionScenario, ServiceNameCollection)

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

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)

Parameters

policyEnforcement
PolicyEnforcement

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

protectionScenario
ProtectionScenario

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

customServiceNames
ServiceNameCollection

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

Exceptions

policyEnforcement is specified as Never.

customServiceNames is null or an empty list.

Remarks

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.

See also

Applies to