Share via


EphemeralDataProtectionProvider Class

Definition

An IDataProtectionProvider that is transient.

public ref class EphemeralDataProtectionProvider sealed : Microsoft::AspNetCore::DataProtection::IDataProtectionProvider
public sealed class EphemeralDataProtectionProvider : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
type EphemeralDataProtectionProvider = class
    interface IDataProtectionProvider
Public NotInheritable Class EphemeralDataProtectionProvider
Implements IDataProtectionProvider
Inheritance
EphemeralDataProtectionProvider
Implements

Remarks

Payloads generated by a given EphemeralDataProtectionProvider instance can only be deciphered by that same instance. Once the instance is lost, all ciphertexts generated by that instance are permanently undecipherable.

Constructors

EphemeralDataProtectionProvider()

Creates an ephemeral IDataProtectionProvider.

EphemeralDataProtectionProvider(ILoggerFactory)

Creates an ephemeral IDataProtectionProvider with logging.

EphemeralDataProtectionProvider(IServiceProvider)

Creates an ephemeral IDataProtectionProvider, optionally providing services (such as logging) for consumption by the provider.

Methods

CreateProtector(String)

Creates an IDataProtector given a purpose.

Extension Methods

CreateProtector(IDataProtectionProvider, IEnumerable<String>)

Creates an IDataProtector given a list of purposes.

CreateProtector(IDataProtectionProvider, String, String[])

Creates an IDataProtector given a list of purposes.

Applies to