Members on this page
Meshline.Sdk
Meshline.Models.Protocol
ContactConsent Class
Carries device authorization evidence and a contact grant, with an optional request note.
public sealed record ContactConsent : Meshline.Models.Protocol.TypedProtocolModel, System.IEquatable<Meshline.Models.Protocol.ContactConsent>
Inheritance System.Object → ProtocolModel → TypedProtocolModel → ContactConsent
Implements System.IEquatable<ContactConsent>
Constructors
ContactConsent() Constructor
Carries device authorization evidence and a contact grant, with an optional request note.
public ContactConsent();
Properties
ContactConsent.DeviceState Property
The grantor's signed device state supplied as evidence for validating the contact grant.
public Meshline.Models.Protocol.AccountDeviceState DeviceState { get; init; }
Property Value
ContactConsent.Grant Property
The contact grant issued to the recipient of the consent document.
public Meshline.Models.Protocol.ContactGrant Grant { get; init; }
Property Value
ContactConsent.Note Property
The optional note accompanying the contact request.
public string? Note { get; init; }
Property Value
Methods
ContactConsent.Validate(NetworkContext) Method
Validates the enclosed device state and grant, checks the optional note, and verifies a grant signature from a currently authorized device.
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 account or relay signature verification; ordinary invalid signatures are returned as protocol violations.