IKeyManager.RevokeAllKeys(DateTimeOffset, String) Method
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.
Revokes all keys created before a specified date and persists the revocation to the underlying repository.
public void RevokeAllKeys (DateTimeOffset revocationDate, string reason = default);
public void RevokeAllKeys (DateTimeOffset revocationDate, string? reason = default);
abstract member RevokeAllKeys : DateTimeOffset * string -> unit
Public Sub RevokeAllKeys (revocationDate As DateTimeOffset, Optional reason As String = Nothing)
Parameters
- revocationDate
- DateTimeOffset
The revocation date. All keys with a creation date before this value will be revoked.
- reason
- String
An optional human-readable reason for revocation.
Remarks
This method will not mutate existing IKey instances. After calling this method, all existing IKey instances should be discarded, and GetAllKeys should be called again.