IKeyManager Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The basic interface for performing key management operations.
public interface class IKeyManager
public interface IKeyManager
type IKeyManager = interface
Public Interface IKeyManager
- Derived
Remarks
Instantiations of this interface are expected to be thread-safe.
Methods
CreateNewKey(DateTimeOffset, DateTimeOffset) |
Creates a new key with the specified activation and expiration dates and persists the new key to the underlying repository. |
GetAllKeys() |
Fetches all keys from the underlying repository. |
GetCacheExpirationToken() |
Retrieves a token that signals that callers who have cached the return value of GetAllKeys should clear their caches. This could be in response to a call to CreateNewKey or RevokeKey, or it could be in response to some other external notification. Callers who are interested in observing this token should call this method before the corresponding call to GetAllKeys. |
RevokeAllKeys(DateTimeOffset, String) |
Revokes all keys created before a specified date and persists the revocation to the underlying repository. |
RevokeKey(Guid, String) |
Revokes a specific key and persists the revocation to the underlying repository. |