Table of Contents

Class Part15SignatureContentResolver

Namespace
EncDotNet.S100.ExchangeSets.Protection
Assembly
EncDotNet.S100.ExchangeSets.dll

Resolves raw, compressed, and unencrypted resource representations for S-100 Part 15 signature verification.

public sealed class Part15SignatureContentResolver : ISignatureContentResolver
Inheritance
Part15SignatureContentResolver
Implements
Inherited Members

Remarks

S-100 Edition 5.2.1 Part 15 §15-5, §15-6, §15-8.8, and §15-8.11.6. Encrypted signatures cover stored ciphertext and therefore require no permit. Other representations use the supplied dataset key provider when the discovery metadata declares data protection.

Constructors

Part15SignatureContentResolver()

Creates a resolver for unprotected resources.

public Part15SignatureContentResolver()

Part15SignatureContentResolver(IDatasetKeyProvider)

Creates a resolver that can also decrypt protected resources.

public Part15SignatureContentResolver(IDatasetKeyProvider keyProvider)

Parameters

keyProvider IDatasetKeyProvider

The authenticated Part 15 dataset key provider.

Methods

OpenAsync(IAssetSource, SignatureContentRequest, CancellationToken)

Opens the requested raw, compressed, or unencrypted resource bytes.

public Task<Stream> OpenAsync(IAssetSource source, SignatureContentRequest request, CancellationToken cancellationToken = default)

Parameters

source IAssetSource

The asset source containing the stored resource.

request SignatureContentRequest

The requested representation and discovery flags.

cancellationToken CancellationToken

A cancellation token.

Returns

Task<Stream>

A readable stream containing the requested representation.