ITimeLimitedDataProtector.CreateProtector(String) Method
Definition
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.
Creates an ITimeLimitedDataProtector given a purpose.
public:
Microsoft::AspNetCore::DataProtection::ITimeLimitedDataProtector ^ CreateProtector(System::String ^ purpose);
public Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector CreateProtector (string purpose);
abstract member CreateProtector : string -> Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector
Public Function CreateProtector (purpose As String) As ITimeLimitedDataProtector
Parameters
- purpose
- String
The purpose to be assigned to the newly-created ITimeLimitedDataProtector.
Returns
An ITimeLimitedDataProtector tied to the provided purpose.
Remarks
The purpose
parameter must be unique for the intended use case; two different ITimeLimitedDataProtector instances created with two different purpose
values will not be able to decipher each other's payloads. The purpose
parameter value is not intended to be kept secret.