Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IDataProtector Interface

Definition

Namespace:
Microsoft.AspNetCore.DataProtection
Assembly:
Microsoft.AspNetCore.DataProtection.Abstractions.dll
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v1.0.0
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v1.1.0
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v10.0.0
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v2.0.0
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v2.1.0
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v2.2.0
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v3.0.3
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v3.1.18
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v5.0.9
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v6.0.6
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v7.0.5
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v8.0.19
Package:
Microsoft.AspNetCore.DataProtection.Abstractions v9.0.8
Source:
IDataProtector.cs
Source:
IDataProtector.cs
Source:
IDataProtector.cs
Source:
IDataProtector.cs
Source:
IDataProtector.cs
Source:
IDataProtector.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

An interface that can provide data protection services.

public interface class IDataProtector : Microsoft::AspNetCore::DataProtection::IDataProtectionProvider
public interface IDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
type IDataProtector = interface
 interface IDataProtectionProvider
Public Interface IDataProtector
Implements IDataProtectionProvider
Derived
Implements

Methods

Name Description
CreateProtector(String)

Creates an IDataProtector given a purpose.

(Inherited from IDataProtectionProvider)
Protect(Byte[])

Cryptographically protects a piece of plaintext data.

Unprotect(Byte[])

Cryptographically unprotects a piece of protected data.

Extension Methods

Name Description
CreateProtector(IDataProtectionProvider, IEnumerable<String>)

Creates an IDataProtector given a list of purposes.

CreateProtector(IDataProtectionProvider, String, String[])

Creates an IDataProtector given a list of purposes.

Protect(IDataProtector, String)

Cryptographically protects a piece of plaintext data.

ToTimeLimitedDataProtector(IDataProtector)

Converts an IDataProtector into an ITimeLimitedDataProtector so that payloads can be protected with a finite lifetime.

Unprotect(IDataProtector, String)

Cryptographically unprotects a piece of protected data.

Applies to


Feedback

Was this page helpful?