Table of Contents

Class RoomKeyStore

Namespace
EchoHub.Client.Services
Assembly
EchoHub.Client.dll

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

channelName string

Returns

bool

LoadForServer(string)

Binds the store to a server and loads that server's cached keys from config.

public void LoadForServer(string serverUrl)

Parameters

serverUrl string

RemoveKey(string)

public void RemoveKey(string channelName)

Parameters

channelName string

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

channelName string
key byte[]

TryGetKey(string, out byte[])

public bool TryGetKey(string channelName, out byte[] key)

Parameters

channelName string
key byte[]

Returns

bool