Class CatalogueSignatureVerifier
- Namespace
- EncDotNet.S100.ExchangeSets
- Assembly
- EncDotNet.S100.ExchangeSets.dll
Checks an exchange catalogue against the CATALOG.SIGN file beside it.
public static class CatalogueSignatureVerifier
- Inheritance
-
CatalogueSignatureVerifier
- Inherited Members
Remarks
S-100 Edition 5.2.1 Part 15 §15-8.11.2. CATALOG.SIGN is a standalone
signature that names the file it signs; the signature is ECDSA P-384 over
the SHA-384 of that file's exact bytes (§15-8.7), checked against the
certificates the signature file carries.
Fields
SignatureFileName
The standalone catalogue signature file name.
public const string SignatureFileName = "CATALOG.SIGN"
Field Value
Methods
VerifyAsync(IAssetSource, TrustAnchorOptions, CancellationToken)
Checks the catalogue in source against its
CATALOG.SIGN. Never throws for a missing, malformed or invalid
signature; the result says what was found.
public static Task<CatalogueSignatureVerificationResult> VerifyAsync(IAssetSource source, TrustAnchorOptions trustAnchors, CancellationToken cancellationToken = default)
Parameters
sourceIAssetSourceThe exchange set, rooted at the folder that holds the catalogue.
trustAnchorsTrustAnchorOptionsThe Scheme Administrator trust configuration.
cancellationTokenCancellationTokenA cancellation token.
Returns
- Task<CatalogueSignatureVerificationResult>
The outcome of the check.