GrantScope

sealed interface GrantScope

Where a Grant is good: in one room, or in any room its issuer hosts.

The scope says only where; whether the room checking it is the right one is the checker's question, since only it knows its own room id and key.

Inheritors

Types

Link copied to clipboard

Good in any room hosted under the issuer's key, including rooms that do not exist yet.

Link copied to clipboard
data class Room(val roomId: String) : GrantScope

Good in the room named roomId and no other. A host that restarts and wants this kind of grant to keep working must host under the same, stable room id.