Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
DataProtectionProvider Class
Definition
- Namespace:
- Microsoft.AspNetCore.DataProtection
- Assembly:
- Microsoft.AspNetCore.DataProtection.Extensions.dll
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v1.0.0
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v1.1.0
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v10.0.0
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v2.0.0
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v2.1.0
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v2.2.0
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v3.0.3
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v3.1.18
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v5.0.9
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v6.0.6
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v7.0.5
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v8.0.19
- Package:
- Microsoft.AspNetCore.DataProtection.Extensions v9.0.8
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
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.
Contains factory methods for creating an IDataProtectionProvider where keys are stored at a particular location on the file system.
public ref class DataProtectionProvider abstract sealed
public static class DataProtectionProvider
type DataProtectionProvider = class
Public Class DataProtectionProvider
- Inheritance
-
DataProtectionProvider
Remarks
Use these methods when not using dependency injection to provide the service to the application.
Methods
| Name | Description |
|---|---|
| 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. |
| Create(DirectoryInfo, Action<IDataProtectionBuilder>) |
Creates an DataProtectionProvider given a location at which to store keys and an optional configuration callback. |
| Create(DirectoryInfo, X509Certificate2) |
Creates an DataProtectionProvider given a location at which to store keys and a X509Certificate2 used to encrypt the keys. |
| Create(DirectoryInfo) |
Creates an DataProtectionProvider given a location at which to store keys. |
| 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(String) |
Creates a DataProtectionProvider that store keys in a location based on the platform and operating system. |
Applies to
Feedback
Was this page helpful?
