Members on this page
Meshline.Sdk
Meshline.Models.Protocol
SessionCredentials Class
Contains a relay session bearer token, authentication mode, and expiration time.
public sealed record SessionCredentials : Meshline.Models.Protocol.ProtocolModel, System.IEquatable<Meshline.Models.Protocol.SessionCredentials>
Inheritance System.Object → ProtocolModel → SessionCredentials
Implements System.IEquatable<SessionCredentials>
Properties
SessionCredentials.ExpiresAt Property
The expiration time, in Unix seconds.
public long ExpiresAt { get; init; }
Property Value
SessionCredentials.Mode Property
The authorization mode to which the session is bound.
public Meshline.Models.Protocol.SessionMode Mode { get; init; }
Property Value
SessionCredentials.Token Property
The session bearer token; treat it as a credential and avoid logging it.
public string Token { get; init; }
Property Value
Methods
SessionCredentials.Validate(NetworkContext) Method
Validates the bearer token format, session mode, and expiry.
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.