HttpListener.ExtendedProtectionPolicy Property

Definition

Gets or sets the ExtendedProtectionPolicy to use for extended protection for a session.

public System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy ExtendedProtectionPolicy { get; [System.Runtime.Versioning.UnsupportedOSPlatform("browser")] set; }
public System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy ExtendedProtectionPolicy { get; set; }

Property Value

A ExtendedProtectionPolicy that specifies the policy to use for extended protection.

Attributes

Exceptions

An attempt was made to set the ExtendedProtectionPolicy property, but the CustomChannelBinding property was not null.

An attempt was made to set the ExtendedProtectionPolicy property to null.

An attempt was made to set the ExtendedProtectionPolicy property after the Start() method was already called.

This object is closed.

The PolicyEnforcement property was set to Always on a platform that does not support extended protection.

Remarks

The ExtendedProtectionPolicy property is used with integrated Windows authentication to provide extended protection. The ExtendedProtectionPolicy property allows the configuration of the extended protection policy for the whole HttpListener session. The ExtendedProtectionSelectorDelegate property allows the configuration of the extended protection policy for each individual request.

The CustomChannelBinding property must be null. The HttpListener instance gets the Channel Binding Token (CBT) directly from its own TLS session if there is one.

Applies to

מוצר גירסאות
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also