Skip to content
Meshline
SDK 1.1.0 · TypeView source on GitHub

Developer guide · API index

Members on this page

Meshline.Sdk

Meshline.Models.Protocol

ChannelResolveResult Class

Contains a channel descriptor and its signer's device certificate.

public sealed record ChannelResolveResult : Meshline.Models.Protocol.ProtocolModel, System.IEquatable<Meshline.Models.Protocol.ChannelResolveResult>

Inheritance System.Object → ProtocolModel → ChannelResolveResult

Implements System.IEquatable<ChannelResolveResult>

Properties

ChannelResolveResult.Descriptor Property

The resolved signed channel descriptor.

public Meshline.Models.Protocol.ChannelDescriptor Descriptor { get; init; }

Property Value

ChannelDescriptor

ChannelResolveResult.SignerCertificate Property

The device certificate supplied as evidence for the associated payload's signature.

public Meshline.Models.Protocol.DeviceCertificate SignerCertificate { get; init; }

Property Value

DeviceCertificate

Methods

ChannelResolveResult.Validate(NetworkContext) Method

Validates the nested channel descriptor and signer certificate.

public override Meshline.Validation.ProtocolViolation? Validate(Meshline.Models.NetworkContext? context);

Parameters

context NetworkContext

The required network context for identity and signature validation.

Returns

ProtocolViolation
The first detected protocol violation, or null if the implemented checks pass.

Exceptions

System.ArgumentNullException
context is null.

System.Security.Cryptography.CryptographicException
The cryptographic provider cannot perform certificate signature verification.

Remarks

Resource and account matching, descriptor signature verification, and signer authorization must be checked separately.