CompatibilityDataProtector Class

Definition

A DataProtector that can be used by ASP.NET 4.x to interact with ASP.NET Core's DataProtection stack. This type is for internal use only and shouldn't be directly used by developers.

public ref class CompatibilityDataProtector sealed : System::Security::Cryptography::DataProtector
public sealed class CompatibilityDataProtector : System.Security.Cryptography.DataProtector
type CompatibilityDataProtector = class
    inherit DataProtector
Public NotInheritable Class CompatibilityDataProtector
Inherits DataProtector
Inheritance
CompatibilityDataProtector

Constructors

CompatibilityDataProtector(String, String, String[])

Methods

IsReprotectRequired(Byte[])
RunWithSuppressedPrimaryPurpose(Func<Object,Byte[],Byte[]>, Object, Byte[])

Invokes a delegate where calls to Microsoft.AspNetCore.DataProtection.SystemWeb.CompatibilityDataProtector.ProviderProtect(System.Byte[]) and Microsoft.AspNetCore.DataProtection.SystemWeb.CompatibilityDataProtector.ProviderUnprotect(System.Byte[]) will ignore the primary purpose and instead use only the sub-purposes.

Applies to