Table of Contents

Interface IS57ExchangeSetVerifier

Namespace
EncDotNet.S57.ExchangeSets
Assembly
EncDotNet.S57.dll

Verifies the integrity of the files referenced by an S-57 exchange set catalogue.

public interface IS57ExchangeSetVerifier

Remarks

Verification covers the per-file CRC checksums declared in the CATD CRCS subfield of CATALOG.031 (S-57 Edition 3.1 Part 3, clause 3.4) and, in future, S-63 digital signatures. The two dimensions are reported independently on each S57FileVerificationResult.

Implementations are non-throwing: per-file failures are surfaced as S57VerificationOutcome values rather than exceptions.

Methods

VerifyAsync(string, S57Catalog, S63TrustAnchorOptions?, ILogger?, CancellationToken)

Verifies the integrity metadata in catalog against the files located under rootPath.

Task<S57ExchangeSetVerificationResult> VerifyAsync(string rootPath, S57Catalog catalog, S63TrustAnchorOptions? trustAnchors = null, ILogger? logger = null, CancellationToken cancellationToken = default)

Parameters

rootPath string

The absolute path to the root directory of the exchange set.

catalog S57Catalog

The parsed CATALOG.031 whose entries to verify.

trustAnchors S63TrustAnchorOptions

Optional S-63 trust anchor options. Currently unused because signature verification is a seam; supply when S-63 support is available.

logger ILogger

An optional logger for reporting verification warnings.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<S57ExchangeSetVerificationResult>

A result enumerating per-file verification outcomes without throwing.