IKeyManager 接口

定义

用于执行密钥管理操作的基本接口。

public interface class IKeyManager
public interface IKeyManager
type IKeyManager = interface
Public Interface IKeyManager
派生

注解

此接口的实例化应是线程安全的。

方法

CreateNewKey(DateTimeOffset, DateTimeOffset)

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

GetAllKeys()

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

GetCacheExpirationToken()

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

RevokeAllKeys(DateTimeOffset, String)

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

RevokeKey(Guid, String)

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

适用于