AdmissionRequest
A newcomer asking to be let in, as the host's AdmissionPolicy sees it.
Only the room builds one in production, after the joiner has proved it holds key; that is why the constructor is gated by SessionInternalApi. To test your own policy without a room, build one with admissionRequest from :kuilt-session-test. The three fields are not equally trustworthy:
key is proved: the joiner signed the host's fresh challenge with it. Key a decision on this.
deviceId is bound to the key, since the joiner signed over it too, but it is still whatever the device chose to say. It tells you which id this key goes with, not that the id is unique.
displayName is the joiner's say-so and nothing more. Show it; never decide on it. A joiner that gave no name is shown, and asked about, under its peer id.
No device id is always null, never "". The proof signs a missing device id as the empty string, so a joiner that sends "" and one that sends nothing sign the same bytes and cannot be told apart. The constructor therefore reads "" as null, which is what a policy branching on deviceId == null sees whoever built the request: the room, or a test.