FileSystemXmlRepository Class
Definition
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.
An XML repository backed by a file system.
public ref class FileSystemXmlRepository : Microsoft::AspNetCore::DataProtection::Repositories::IXmlRepository
public class FileSystemXmlRepository : Microsoft.AspNetCore.DataProtection.Repositories.IXmlRepository
type FileSystemXmlRepository = class
interface IXmlRepository
Public Class FileSystemXmlRepository
Implements IXmlRepository
- Inheritance
-
FileSystemXmlRepository
- Implements
Constructors
FileSystemXmlRepository(DirectoryInfo) |
Creates a FileSystemXmlRepository with keys stored at the given directory. |
FileSystemXmlRepository(DirectoryInfo, ILoggerFactory) |
Creates a FileSystemXmlRepository with keys stored at the given directory. |
FileSystemXmlRepository(DirectoryInfo, IServiceProvider) |
Creates a FileSystemXmlRepository with keys stored at the given directory. |
Properties
DefaultKeyStorageDirectory |
The default key storage directory. On Windows, this currently corresponds to "Environment.SpecialFolder.LocalApplication/ASP.NET/DataProtection-Keys". On Linux and macOS, this currently corresponds to "$HOME/.aspnet/DataProtection-Keys". |
Directory |
The directory into which key material will be written. |
Services |
The IServiceProvider provided to the constructor. |
Methods
GetAllElements() |
Gets all top-level XML elements in the repository. |
StoreElement(XElement, String) |
Adds a top-level XML element to the repository. |