DataProtectionProvider DataProtectionProvider DataProtectionProvider Class

Definition

Contains factory methods for creating an IDataProtectionProvider where keys are stored at a particular location on the file system.

public static class DataProtectionProvider
type DataProtectionProvider = class
Public Class DataProtectionProvider
Inheritance
DataProtectionProviderDataProtectionProviderDataProtectionProvider

Remarks

Use these methods when not using dependency injection to provide the service to the application.

Methods

Create(DirectoryInfo) Create(DirectoryInfo) Create(DirectoryInfo)

Creates an DataProtectionProvider given a location at which to store keys.

Create(String) Create(String) Create(String)

Creates a DataProtectionProvider that store keys in a location based on the platform and operating system.

Create(DirectoryInfo, Action<IDataProtectionBuilder>) Create(DirectoryInfo, Action<IDataProtectionBuilder>) Create(DirectoryInfo, Action<IDataProtectionBuilder>)

Creates an DataProtectionProvider given a location at which to store keys and an optional configuration callback.

Create(DirectoryInfo, X509Certificate2) Create(DirectoryInfo, X509Certificate2) Create(DirectoryInfo, X509Certificate2)

Creates an DataProtectionProvider given a location at which to store keys and a X509Certificate2 used to encrypt the keys.

Create(String, X509Certificate2) Create(String, X509Certificate2) Create(String, X509Certificate2)

Creates a DataProtectionProvider that store keys in a location based on the platform and operating system and uses the given X509Certificate2 to encrypt the keys.

Create(DirectoryInfo, Action<IDataProtectionBuilder>, X509Certificate2) Create(DirectoryInfo, Action<IDataProtectionBuilder>, X509Certificate2) Create(DirectoryInfo, Action<IDataProtectionBuilder>, X509Certificate2)

Creates an DataProtectionProvider given a location at which to store keys, an optional configuration callback and a X509Certificate2 used to encrypt the keys.

Applies to