DataProtectionAdvancedExtensions Class

Definition

Helpful extension methods for data protection APIs.

public ref class DataProtectionAdvancedExtensions abstract sealed
public static class DataProtectionAdvancedExtensions
type DataProtectionAdvancedExtensions = class
Public Module DataProtectionAdvancedExtensions
Inheritance
DataProtectionAdvancedExtensions

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.

Applies to