Table of Contents

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

alert KeyExpirationAlert

The alert details.

cancellationToken CancellationToken

A 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

alert KeyRotationFailureAlert

The alert details.

cancellationToken CancellationToken

A 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

notification KeyRotationSuccessNotification

The notification details.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task

A task representing the asynchronous operation.