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
rootPathstringThe absolute path to the root directory of the exchange set.
catalogS57CatalogThe parsed
CATALOG.031whose entries to verify.trustAnchorsS63TrustAnchorOptionsOptional S-63 trust anchor options. Currently unused because signature verification is a seam; supply when S-63 support is available.
loggerILoggerAn optional logger for reporting verification warnings.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task<S57ExchangeSetVerificationResult>
A result enumerating per-file verification outcomes without throwing.