Table of Contents

Interface ISoc2AuditExporter

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Provides audit export operations for SOC 2 compliance data.

public interface ISoc2AuditExporter

Remarks

This sub-interface contains the export operation that goes beyond core compliance management. Access via GetService(Type) with typeof(ISoc2AuditExporter).

ISP Split: Extracted from ISoc2ComplianceService to keep the core interface at or below 5 methods per the Microsoft-First Design Standard.

Methods

ExportForAuditorAsync(ExportFormat, DateTimeOffset, DateTimeOffset, CancellationToken)

Exports compliance data for external auditors.

Task<byte[]> ExportForAuditorAsync(ExportFormat format, DateTimeOffset periodStart, DateTimeOffset periodEnd, CancellationToken cancellationToken)

Parameters

format ExportFormat

The export format.

periodStart DateTimeOffset

The start of the export period.

periodEnd DateTimeOffset

The end of the export period.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<byte[]>

The exported data as a byte array.

Exceptions

NotSupportedException

The implementation has no evidence to export. An empty array must not be returned in that case: it is indistinguishable from a successful export of a period with no activity, and the result of this call is handed to an auditor.