ITimeLimitedDataProtector ITimeLimitedDataProtector ITimeLimitedDataProtector Interface

Definition

An interface that can provide data protection services where payloads have a finite lifetime.

public interface ITimeLimitedDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtector
type ITimeLimitedDataProtector = interface
    interface IDataProtector
    interface IDataProtectionProvider
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

CreateProtector(String) CreateProtector(String) CreateProtector(String)

Creates an ITimeLimitedDataProtector given a purpose.

Protect(Byte[], DateTimeOffset) Protect(Byte[], DateTimeOffset) Protect(Byte[], DateTimeOffset)

Cryptographically protects a piece of plaintext data, expiring the data at the chosen time.

Unprotect(Byte[], DateTimeOffset) Unprotect(Byte[], DateTimeOffset) Unprotect(Byte[], DateTimeOffset)

Cryptographically unprotects a piece of protected data.

Extension Methods

Protect(ITimeLimitedDataProtector, Byte[], TimeSpan) Protect(ITimeLimitedDataProtector, Byte[], TimeSpan) 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) Protect(ITimeLimitedDataProtector, String, DateTimeOffset) Protect(ITimeLimitedDataProtector, String, DateTimeOffset)

Cryptographically protects a piece of plaintext data, expiring the data at the chosen time.

Protect(ITimeLimitedDataProtector, String, TimeSpan) Protect(ITimeLimitedDataProtector, String, TimeSpan) Protect(ITimeLimitedDataProtector, String, TimeSpan)

Cryptographically protects a piece of plaintext data, expiring the data after the specified amount of time has elapsed.

ToTimeLimitedDataProtector(IDataProtector) ToTimeLimitedDataProtector(IDataProtector) ToTimeLimitedDataProtector(IDataProtector)

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

Unprotect(ITimeLimitedDataProtector, String, DateTimeOffset) Unprotect(ITimeLimitedDataProtector, String, DateTimeOffset) Unprotect(ITimeLimitedDataProtector, String, DateTimeOffset)

Cryptographically unprotects a piece of protected data.

CreateProtector(IDataProtectionProvider, IEnumerable<String>) CreateProtector(IDataProtectionProvider, IEnumerable<String>) CreateProtector(IDataProtectionProvider, IEnumerable<String>)

Creates an IDataProtector given a list of purposes.

CreateProtector(IDataProtectionProvider, String, String[]) CreateProtector(IDataProtectionProvider, String, String[]) CreateProtector(IDataProtectionProvider, String, String[])

Creates an IDataProtector given a list of purposes.

Protect(IDataProtector, String) Protect(IDataProtector, String) Protect(IDataProtector, String)

Cryptographically protects a piece of plaintext data.

Unprotect(IDataProtector, String) Unprotect(IDataProtector, String) Unprotect(IDataProtector, String)

Cryptographically unprotects a piece of protected data.

Applies to