Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ITimeLimitedDataProtector Interface
Definition
- Namespace:
- Microsoft.AspNetCore.DataProtection
- Assembly:
- Microsoft.AspNetCore.DataProtection.Extensions.dll
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v1.0.0
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v1.1.0
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v10.0.0
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v2.0.0
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v2.1.0
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v2.2.0
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v3.0.3
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v3.1.18
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v5.0.9
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v6.0.6
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v7.0.5
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v8.0.19
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v9.0.8
- Source:
- ITimeLimitedDataProtector.cs
- Source:
- ITimeLimitedDataProtector.cs
- Source:
- ITimeLimitedDataProtector.cs
- Source:
- ITimeLimitedDataProtector.cs
- Source:
- ITimeLimitedDataProtector.cs
- Source:
- ITimeLimitedDataProtector.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 where payloads have a finite lifetime.
public interface class ITimeLimitedDataProtector : Microsoft::AspNetCore::DataProtection::IDataProtector
public interface ITimeLimitedDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtector
type ITimeLimitedDataProtector = interface
interface IDataProtector
interface IDataProtectionProvider
type ITimeLimitedDataProtector = interface
interface IDataProtectionProvider
interface IDataProtector
Public Interface ITimeLimitedDataProtector
Implements IDataProtector
- Implements
Remarks
It is intended that payload lifetimes be somewhat short. Payloads protected via this mechanism are not intended for long-term persistence (e.g., longer than a few weeks).
Methods
| Name | Description |
|---|---|
| CreateProtector(String) |
Creates an ITimeLimitedDataProtector given a purpose. |
| Protect(Byte[], DateTimeOffset) |
Cryptographically protects a piece of plaintext data, expiring the data at the chosen time. |
| Protect(Byte[]) |
Cryptographically protects a piece of plaintext data. (Inherited from IDataProtector) |
| Unprotect(Byte[], DateTimeOffset) |
Cryptographically unprotects a piece of protected data. |
| Unprotect(Byte[]) |
Cryptographically unprotects a piece of protected data. (Inherited from IDataProtector) |
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. |
| Protect(ITimeLimitedDataProtector, Byte[], TimeSpan) |
Cryptographically protects a piece of plaintext data, expiring the data after the specified amount of time has elapsed. |
| Protect(ITimeLimitedDataProtector, String, DateTimeOffset) |
Cryptographically protects a piece of plaintext data, expiring the data at the chosen time. |
| Protect(ITimeLimitedDataProtector, String, TimeSpan) |
Cryptographically protects a piece of plaintext data, expiring the data after the specified amount of time has elapsed. |
| 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. |
| Unprotect(ITimeLimitedDataProtector, String, DateTimeOffset) |
Cryptographically unprotects a piece of protected data. |
Applies to
Feedback
Was this page helpful?
