FileSystemXmlRepository FileSystemXmlRepository FileSystemXmlRepository Class

Definition

An XML repository backed by a file system.

public class FileSystemXmlRepository : Microsoft.AspNetCore.DataProtection.Repositories.IXmlRepository
type FileSystemXmlRepository = class
    interface IXmlRepository
Public Class FileSystemXmlRepository
Implements IXmlRepository
Inheritance
FileSystemXmlRepositoryFileSystemXmlRepositoryFileSystemXmlRepository
Implements

Constructors

FileSystemXmlRepository(DirectoryInfo) FileSystemXmlRepository(DirectoryInfo) FileSystemXmlRepository(DirectoryInfo)

Creates a FileSystemXmlRepository with keys stored at the given directory.

FileSystemXmlRepository(DirectoryInfo, ILoggerFactory) FileSystemXmlRepository(DirectoryInfo, ILoggerFactory) FileSystemXmlRepository(DirectoryInfo, ILoggerFactory)

Creates a FileSystemXmlRepository with keys stored at the given directory.

FileSystemXmlRepository(DirectoryInfo, IServiceProvider) FileSystemXmlRepository(DirectoryInfo, IServiceProvider) FileSystemXmlRepository(DirectoryInfo, IServiceProvider)

Creates a FileSystemXmlRepository with keys stored at the given directory.

Properties

DefaultKeyStorageDirectory DefaultKeyStorageDirectory 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 Directory Directory

The directory into which key material will be written.

Services Services Services

The IServiceProvider provided to the constructor.

Methods

GetAllElements() GetAllElements() GetAllElements()
StoreElement(XElement, String) StoreElement(XElement, String) StoreElement(XElement, String)

Applies to