Udostępnij za pośrednictwem


XmlKeyManager Klasa

Definicja

Menedżer kluczy wspierany przez element IXmlRepository.

public ref class XmlKeyManager sealed : Microsoft::AspNetCore::DataProtection::KeyManagement::IKeyManager, Microsoft::AspNetCore::DataProtection::KeyManagement::Internal::IInternalXmlKeyManager
public sealed class XmlKeyManager : Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyManager, Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager
type XmlKeyManager = class
    interface IKeyManager
    interface IInternalXmlKeyManager
Public NotInheritable Class XmlKeyManager
Implements IInternalXmlKeyManager, IKeyManager
Dziedziczenie
XmlKeyManager
Implementuje
IKeyManager Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager

Konstruktory

XmlKeyManager(IOptions<KeyManagementOptions>, IActivator)

Tworzy element XmlKeyManager.

XmlKeyManager(IOptions<KeyManagementOptions>, IActivator, ILoggerFactory)

Tworzy element XmlKeyManager.

XmlKeyManager(IXmlRepository, IAuthenticatedEncryptorConfiguration, IServiceProvider)

Tworzy element XmlKeyManager.

Metody

CreateNewKey(DateTimeOffset, DateTimeOffset)

Tworzy nowy klucz z określonymi datami aktywacji i wygaśnięcia oraz utrwala nowy klucz w bazowym repozytorium.

GetAllKeys()

Pobiera wszystkie klucze z bazowego repozytorium.

GetCacheExpirationToken()

Pobiera token, który sygnalizuje, że osoby wywołujące, które buforowały wartość zwracaną funkcji GetAllKeys, powinny wyczyścić ich pamięci podręczne. Może to być w odpowiedzi na wywołanie metody CreateNewKey lub RevokeKey lub może być w odpowiedzi na inne powiadomienia zewnętrzne. Wywołujący, którzy są zainteresowani obserwowaniem tego tokenu, powinni wywołać tę metodę przed odpowiednim wywołaniem metody GetAllKeys.

RevokeAllKeys(DateTimeOffset, String)

Odwołuje wszystkie klucze utworzone przed określoną datą i utrwala odwołanie do bazowego repozytorium.

RevokeKey(Guid, String)

Odwołuje określony klucz i utrwala odwołanie do bazowego repozytorium.

Jawne implementacje interfejsu

IInternalXmlKeyManager.CreateNewKey(Guid, DateTimeOffset, DateTimeOffset, DateTimeOffset)

Menedżer kluczy wspierany przez element IXmlRepository.

IInternalXmlKeyManager.DeserializeDescriptorFromKeyElement(XElement)

Menedżer kluczy wspierany przez element IXmlRepository.

IInternalXmlKeyManager.RevokeSingleKey(Guid, DateTimeOffset, String)

Menedżer kluczy wspierany przez element IXmlRepository.

Dotyczy