XmlKeyManager 类

定义

由 提供支持的 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
继承
XmlKeyManager
实现
IKeyManager Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager

构造函数

XmlKeyManager(IOptions<KeyManagementOptions>, IActivator)

创建 XmlKeyManager

XmlKeyManager(IOptions<KeyManagementOptions>, IActivator, ILoggerFactory)

创建 XmlKeyManager

XmlKeyManager(IXmlRepository, IAuthenticatedEncryptorConfiguration, IServiceProvider)

创建 XmlKeyManager

方法

CreateNewKey(DateTimeOffset, DateTimeOffset)

创建具有指定激活和到期日期的新密钥,并将新密钥保存到基础存储库。

GetAllKeys()

从基础存储库中提取所有密钥。

GetCacheExpirationToken()

检索一个标记,该令牌指示缓存 GetAllKeys 返回值的调用方应清除其缓存。 这可能是为了响应对 CreateNewKey 或 RevokeKey 的调用,也可能是在响应某些其他外部通知。 有兴趣观察此令牌的调用方应在对 GetAllKeys 的相应调用之前调用此方法。

RevokeAllKeys(DateTimeOffset, String)

撤销在指定日期之前创建的所有密钥,并将吊销保存到基础存储库。

RevokeKey(Guid, String)

撤销特定密钥,并将吊销内容保存到基础存储库。

显式接口实现

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

由 提供支持的 IXmlRepository密钥管理器。

IInternalXmlKeyManager.DeserializeDescriptorFromKeyElement(XElement)

由 提供支持的 IXmlRepository密钥管理器。

IInternalXmlKeyManager.RevokeSingleKey(Guid, DateTimeOffset, String)

由 提供支持的 IXmlRepository密钥管理器。

适用于