ITimeLimitedDataProtector Interface

Definition

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

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

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(ITimeLimitedDataProtector, String, DateTimeOffset)

Cryptographically unprotects a piece of protected data.

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.

Unprotect(IDataProtector, String)

Cryptographically unprotects a piece of protected data.

Applies to