setKey

fun setKey(participantId: String, key: String)

Sets an encryption key for a specific participant.

This allows per-participant key management where each participant can have a unique encryption key.

Sets an encryption key for a specific participant.

Parameters

participantId

the ID of the participant

key

the encryption key string (must not be null or empty)

Throws

if the key is null or empty