IKeyManager.RevokeAllKeys(DateTimeOffset, String) Method

Definition

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.

Applies to