Interface IFireflyDataProtectionProvider
An interface that can be used to create IFireflyDataProtector instances.
public interface IFireflyDataProtectionProvider
Methods
CreateProtector(string)
Creates an IFireflyDataProtector given a purpose.
IFireflyDataProtector CreateProtector(string purpose)
Parameters
purpose
stringThe purpose to be assigned to the newly-created IFireflyDataProtector.
Returns
- IFireflyDataProtector
An IDataProtector tied to the provided purpose.
Remarks
The purpose
parameter must be unique for the intended use case; two
different IFireflyDataProtector 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.