GrantRenewal

@Serializable
@SerialName(value = "grant-renewal")
class GrantRenewal(val grant: ByteArray) : AdmitMessage

Sent by the host to a connected member: a fresh pass back in, renewing the one its direct Welcome carried (v8, #3221).

A pass is good for a fixed time after it was issued, and the host issues a new one every third of that time while the member stays connected, so a member that drops off holds a pass good for at most that time after its last contact and, provided the last renewal reached it, at least two thirds of it, its term, however long ago it joined. A renewal that fails to sign or to send is tried again, more often as the member's pass nears its end (#3711). One the link took and then lost is never resent, and need not be: the host lets the device back in on the last pass it signed it while it remembers the departure (#3745). A member the host holds as partitioned is sent nothing, and a pass that never expires is never renewed. Nor is the pass of a member whose device the host revoked after admitting it (Decided 14).

grant is the wire form of a signed us.tractat.kuilt.identity.Grant, opaque as on the Welcome. A joiner keeps it only from its identified host, and only when it decodes, names that host's proven key as issuer and this device's as subject, and carries the issuer's signature. Compared by content.

Constructors

Link copied to clipboard
constructor(grant: ByteArray)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String