Package-level declarations

Types

Link copied to clipboard
sealed interface AdmissionDecision

An AdmissionPolicy's answer for one newcomer.

Link copied to clipboard
fun interface AdmissionPolicy

The host's say on who gets into its room, and on how long each newcomer may come back without being asked again.

Link copied to clipboard
class AdmissionRequest(val key: DidKey, val displayName: String, deviceId: String?)

A newcomer asking to be let in, as the host's AdmissionPolicy sees it.

Link copied to clipboard
@Serializable
sealed interface AdmitMessage

Wire messages that implement the admit/identify handshake.

Link copied to clipboard
enum class GrantReach : Enum<GrantReach>

Where a pass from GrantTerms is good.

Link copied to clipboard
data class GrantTerms(val readmitFor: Duration, val reach: GrantReach = GrantReach.ThisRoom)

What a host promises a newcomer it admits: how long the device may come back without being asked again (readmitFor), and where (reach).

Link copied to clipboard
class HostAdmission(val policy: AdmissionPolicy, val revocations: RevocationList)

Everything a host needs to decide who comes in: the app's policy for newcomers, and the host's revocations for devices whose passes it no longer honours.

Link copied to clipboard

The admit-handshake protocol version this build speaks, and the range of versions it can admit.

Link copied to clipboard
interface RejectCode

Why a host refused a joiner's AdmitMessage.Hello.

Link copied to clipboard
@Serializable
enum class ReturnKind : Enum<ReturnKind>

Why a direct AdmitMessage.Welcome let its member in, when it was not an ordinary admission (#3159).