setKeyProvider

Turns on end-to-end encryption with the keys provider holds. Call it before Room.join — a provider set later does not encrypt the session already running.

A shared key (BaseKeyProvider.setSharedKey) covers the whole room and wins outright. Per-participant keys, set with setParticipantKey, apply only when no shared key is set. This device does not decrypt a participant it holds no key for.

Parameters

provider

the keys to use.

See also