Interface IBreachNotificationService
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Provides GDPR Article 33/34 breach notification capabilities.
public interface IBreachNotificationService
Remarks
This service manages the lifecycle of data breach notifications including initial reporting, status tracking, and notification of affected data subjects. GDPR requires breach notification to supervisory authorities within 72 hours.
Methods
GetBreachStatusAsync(string, CancellationToken)
Gets the current status of a breach notification.
Task<BreachNotificationResult?> GetBreachStatusAsync(string breachId, CancellationToken cancellationToken)
Parameters
breachIdstringThe breach tracking identifier.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<BreachNotificationResult>
The breach notification result, or null if not found.
NotifyAffectedSubjectsAsync(string, CancellationToken)
Notifies affected data subjects about a breach per GDPR Article 34.
Task<BreachNotificationResult> NotifyAffectedSubjectsAsync(string breachId, CancellationToken cancellationToken)
Parameters
breachIdstringThe breach tracking identifier.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<BreachNotificationResult>
The updated breach notification result after subject notification.
Exceptions
- InvalidOperationException
Thrown when the breach has not been reported or subjects have already been notified.
ReportBreachAsync(BreachReport, CancellationToken)
Reports a data breach for investigation and notification.
Task<BreachNotificationResult> ReportBreachAsync(BreachReport report, CancellationToken cancellationToken)
Parameters
reportBreachReportThe breach report details.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<BreachNotificationResult>
The result containing the breach tracking identifier and status.
Exceptions
- ArgumentNullException
Thrown when
reportis null.