Interface ICryptoStore
Persistent storage of encryption state; pickles are encrypted, so the store itself need not be.
Namespace: Uniform.Matrix.Protocol.Crypto
Assembly: Uniform.Matrix.Protocol.Crypto.dll
public interface ICryptoStore
Methods
|
Edit this page
View Source
Remove the outbound Megolm session of a room, forcing a new one.
Declaration
Task DeleteOutboundGroupSessionAsync(string roomId, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Return the account, or null before the first run.
Declaration
Task<AccountRecord?> LoadAccountAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Return all stored device lists.
Declaration
Task<IReadOnlyList<DeviceListRecord>> LoadDeviceListsAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Return an inbound Megolm session, or null.
Declaration
Task<InboundGroupSessionRecord?> LoadInboundGroupSessionAsync(string roomId, string sessionId, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Return Olm sessions with the device of senderKey.
Declaration
Task<IReadOnlyList<OlmSessionRecord>> LoadOlmSessionsAsync(string senderKey, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Return the outbound Megolm session of a room, or null.
Declaration
Task<OutboundGroupSessionRecord?> LoadOutboundGroupSessionAsync(string roomId, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Return up to limit inbound sessions not yet in the key backup.
Declaration
Task<IReadOnlyList<InboundGroupSessionRecord>> LoadSessionsToBackUpAsync(int limit, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Return a named value, or null; secrets in it are encrypted by the caller.
Declaration
Task<string?> LoadValueAsync(string name, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Mark every inbound session as not backed up, e.g. for a new backup version.
Declaration
Task ResetBackedUpAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Declaration
Task SaveAccountAsync(AccountRecord account, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Add or replace a user's device list.
Declaration
Task SaveDeviceListAsync(DeviceListRecord deviceList, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Add or replace an inbound Megolm session.
Declaration
Task SaveInboundGroupSessionAsync(InboundGroupSessionRecord session, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Add or replace an Olm session.
Declaration
Task SaveOlmSessionAsync(OlmSessionRecord session, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Add or replace the outbound Megolm session of a room.
Declaration
Task SaveOutboundGroupSessionAsync(OutboundGroupSessionRecord session, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Set a named value, or remove it when value is null.
Declaration
Task SaveValueAsync(string name, string? value, CancellationToken cancellationToken)
Parameters
Returns