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

AuthenticationChallenge Class

Contains a relay-issued authentication nonce and its validity window.

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

Inheritance System.Object → ProtocolModel → AuthenticationChallenge

Implements System.IEquatable<AuthenticationChallenge>

Properties

AuthenticationChallenge.CreatedAt Property

The creation time, in Unix seconds.

public long CreatedAt { get; init; }

Property Value

System.Int64

AuthenticationChallenge.ExpiresAt Property

The expiration time, in Unix seconds.

public long ExpiresAt { get; init; }

Property Value

System.Int64

AuthenticationChallenge.Nonce Property

The relay-issued authentication challenge string.

public string Nonce { get; init; }

Property Value

System.String

Methods

AuthenticationChallenge.Validate(NetworkContext) Method

Validates the authentication nonce and its bounded creation and expiration window.

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

Parameters

context NetworkContext

The optional network context passed to nested validation when needed; field-only validation may ignore it.

Returns

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