XmlKeyManager Classe

Definizione

Un gestore chiave supportato da un IXmlRepositoryoggetto .

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
Ereditarietà
XmlKeyManager
Implementazioni
IKeyManager Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager

Costruttori

XmlKeyManager(IOptions<KeyManagementOptions>, IActivator)

Crea un oggetto XmlKeyManager.

XmlKeyManager(IOptions<KeyManagementOptions>, IActivator, ILoggerFactory)

Crea un oggetto XmlKeyManager.

XmlKeyManager(IXmlRepository, IAuthenticatedEncryptorConfiguration, IServiceProvider)

Crea un oggetto XmlKeyManager.

Metodi

CreateNewKey(DateTimeOffset, DateTimeOffset)

Crea una nuova chiave con le date di attivazione e scadenza specificate e mantiene la nuova chiave nel repository sottostante.

GetAllKeys()

Recupera tutte le chiavi dal repository sottostante.

GetCacheExpirationToken()

Recupera un token che segnala che i chiamanti che hanno memorizzato nella cache il valore restituito di GetAllKeys devono cancellare le cache. Ciò potrebbe essere in risposta a una chiamata a CreateNewKey o RevokeKey oppure potrebbe essere in risposta a alcune altre notifiche esterne. I chiamanti interessati a osservare questo token devono chiamare questo metodo prima della chiamata corrispondente a GetAllKeys.

RevokeAllKeys(DateTimeOffset, String)

Revoca tutte le chiavi create prima di una data specificata e mantiene la revoca nel repository sottostante.

RevokeKey(Guid, String)

Revoca una chiave specifica e mantiene la revoca nel repository sottostante.

Implementazioni dell'interfaccia esplicita

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

Un gestore chiave supportato da un IXmlRepositoryoggetto .

IInternalXmlKeyManager.DeserializeDescriptorFromKeyElement(XElement)

Un gestore chiave supportato da un IXmlRepositoryoggetto .

IInternalXmlKeyManager.RevokeSingleKey(Guid, DateTimeOffset, String)

Un gestore chiave supportato da un IXmlRepositoryoggetto .

Si applica a