XmlKeyManager.RevokeKey(Guid, String) Method

Definition

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

C#
public void RevokeKey (Guid keyId, string reason = default);
C#
public void RevokeKey (Guid keyId, string? reason = default);

Parameters

keyId
Guid

The id of the key to revoke.

reason
String

An optional human-readable reason for revocation.

Implements

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0