Interface IKeyRotationAlertHandler
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Defines a handler for key rotation alerts.
public interface IKeyRotationAlertHandler
Remarks
Implement this interface to receive alerts about key rotation events, such as rotation failures or keys nearing expiration.
Methods
HandleExpirationWarningAsync(KeyExpirationAlert, CancellationToken)
Handles a key expiration warning alert.
Task HandleExpirationWarningAsync(KeyExpirationAlert alert, CancellationToken cancellationToken)
Parameters
alertKeyExpirationAlertThe alert details.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task
A task representing the asynchronous operation.
HandleRotationFailureAsync(KeyRotationFailureAlert, CancellationToken)
Handles a key rotation failure alert.
Task HandleRotationFailureAsync(KeyRotationFailureAlert alert, CancellationToken cancellationToken)
Parameters
alertKeyRotationFailureAlertThe alert details.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task
A task representing the asynchronous operation.
HandleRotationSuccessAsync(KeyRotationSuccessNotification, CancellationToken)
Handles a key rotation success notification.
Task HandleRotationSuccessAsync(KeyRotationSuccessNotification notification, CancellationToken cancellationToken)
Parameters
notificationKeyRotationSuccessNotificationThe notification details.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task
A task representing the asynchronous operation.