using System; using System.Threading; using System.Threading.Tasks; using static StellaOps.Localization.T; namespace StellaOps.Cryptography.Kms; public sealed partial class Pkcs11KmsClient { public Task RotateAsync(string keyId, CancellationToken cancellationToken = default) => throw new NotSupportedException(_t("crypto.pkcs11.rotation_hsm")); public Task RevokeAsync(string keyId, CancellationToken cancellationToken = default) => throw new NotSupportedException(_t("crypto.pkcs11.revocation_hsm")); public void Dispose() { if (_disposed) { return; } _disposed = true; _facade.Dispose(); } }