DataProtectionAdvancedExtensions.ToTimeLimitedDataProtector Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::ITimeLimitedDataProtector ^ ToTimeLimitedDataProtector(Microsoft::AspNetCore::DataProtection::IDataProtector ^ protector);
public static Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector ToTimeLimitedDataProtector (this Microsoft.AspNetCore.DataProtection.IDataProtector protector);
static member ToTimeLimitedDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtector -> Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector
<Extension()>
Public Function ToTimeLimitedDataProtector (protector As IDataProtector) As ITimeLimitedDataProtector

Parameters

protector
IDataProtector

The IDataProtector to convert to a time-limited protector.

Returns

An ITimeLimitedDataProtector.

Applies to