Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Microsoft.​AspNetCore.​DataProtection.​IDataProtectionProvider

Assembly: Microsoft.AspNetCore.DataProtection.Abstractions

An interface that can be used to create <see cref="T:Microsoft.AspNetCore.DataProtection.IDataProtector" /> instances.

Methods

CreateProtector​(string purpose)
Creates an <see cref="T:Microsoft.AspNetCore.DataProtection.IDataProtector" /> given a purpose.
Returns An IDataProtector tied to the provided purpose.
purpose The purpose to be assigned to the newly-created <see cref="T:Microsoft.AspNetCore.DataProtection.IDataProtector" /> .
Remarks The <paramref name="purpose" /> parameter must be unique for the intended use case; two different <see cref="T:Microsoft.AspNetCore.DataProtection.IDataProtector" /> instances created with two different <paramref name="purpose" /> values will not be able to decipher each other's payloads. The <paramref name="purpose" /> parameter value is not intended to be kept secret.