Class RoomKeyStore
Holds room content keys for end-to-end encrypted channels: in-memory for the active session, persisted per-server in the client config (like saved sessions) so users don't retype the passphrase every launch. Keys never leave this machine.
public sealed class RoomKeyStore
- Inheritance
-
RoomKeyStore
- Inherited Members
Constructors
RoomKeyStore()
public RoomKeyStore()
Methods
Clear()
public void Clear()
HasKey(string)
public bool HasKey(string channelName)
Parameters
channelNamestring
Returns
LoadForServer(string)
Binds the store to a server and loads that server's cached keys from config.
public void LoadForServer(string serverUrl)
Parameters
serverUrlstring
RemoveKey(string)
public void RemoveKey(string channelName)
Parameters
channelNamestring
StoreKey(string, byte[])
Stores a key for the session and persists it to the server's config entry.
public void StoreKey(string channelName, byte[] key)
Parameters
TryGetKey(string, out byte[])
public bool TryGetKey(string channelName, out byte[] key)