Share via


IKeyManager.RevokeKey(Guid, String) Method

Definition

Revokes a specific key and persists the revocation to the underlying repository.

public void RevokeKey (Guid keyId, string reason = default);
public void RevokeKey (Guid keyId, string? reason = default);
abstract member RevokeKey : Guid * string -> unit
Public Sub RevokeKey (keyId As Guid, Optional reason As String = Nothing)

Parameters

keyId
Guid

The id of the key to revoke.

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