GrantVerdict

sealed interface GrantVerdict

What a host makes of a Grant a device presents: good here and now, or the first reason it is not.

Only Valid lets the device back in without being vetted. Every other verdict means the device is treated as a newcomer, and which one tells the host why.

Inheritors

Types

Link copied to clipboard

Names this host as issuer, but the signature is not this host's over these exact terms.

Link copied to clipboard
data object Expired : GrantVerdict

Past its Grant.notAfter.

Link copied to clipboard

Dated in the future: its Grant.issuedAt is more than GrantTrust.CLOCK_SKEW_ALLOWANCE_MILLIS past the time it was checked at. The host's clock ran ahead when it issued the pass and has since been set back. The pass is refused rather than trusted, and the device goes through ordinary admission, which the host's policy may refuse.

Link copied to clipboard
data object Revoked : GrantVerdict

Issued before the host revoked this device: see RevocationList.

Link copied to clipboard

Issued by some other key than this host's. A grant is good only with the host that issued it: after a host change, a returning device's old pass is this, and the device goes through ordinary admission.

Link copied to clipboard
data object Valid : GrantVerdict

Issued by this host, signed by it, to this device, for this room, not revoked, not dated ahead, not expired.

Link copied to clipboard
data object WrongScope : GrantVerdict

A good grant for another room this host runs: a GrantScope.Room whose id is not this room's.

Link copied to clipboard

A good grant, but for another device: its subject is not the key the presenter proved it holds.