Class MatrixKeyTransport
Inheritance
MatrixKeyTransport
Namespace: Uniform.Matrix.Client
Assembly: Uniform.Matrix.Client.dll
public sealed class MatrixKeyTransport : IKeyTransport
Constructors
|
Edit this page
View Source
Declaration
public MatrixKeyTransport(MatrixClient client)
Parameters
Methods
|
Edit this page
View Source
Declaration
public Task<KeysClaimResponse> ClaimKeysAsync(IReadOnlyDictionary<string, IReadOnlyList<string>> devices, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
CreateKeyBackupVersionAsync(string, JsonObject, CancellationToken)
Create a key backup version.
Declaration
public Task<string> CreateKeyBackupVersionAsync(string algorithm, JsonObject authData, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Declaration
public Task<JsonObject?> GetAccountDataAsync(string type, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Return the current key backup.
Declaration
public Task<KeyBackupVersion?> GetKeyBackupVersionAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Declaration
public Task<KeysBackup> GetRoomKeysAsync(string version, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Declaration
public Task<KeysQueryResponse> QueryKeysAsync(IReadOnlyCollection<string> userIds, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Declaration
public Task SendToDeviceAsync(string eventType, IReadOnlyDictionary<string, Dictionary<string, object>> messages, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
SetAccountDataAsync(string, JsonObject, CancellationToken)
Declaration
public Task SetAccountDataAsync(string type, JsonObject content, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
UploadCrossSigningKeysAsync(JsonObject, JsonObject, JsonObject, string?, CancellationToken)
Upload cross-signing keys.
Declaration
public Task UploadCrossSigningKeysAsync(JsonObject masterKey, JsonObject selfSigningKey, JsonObject userSigningKey, string? password, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
UploadKeysAsync(JsonObject?, JsonObject?, JsonObject?, CancellationToken)
Declaration
public Task<KeysUploadResponse> UploadKeysAsync(JsonObject? deviceKeys, JsonObject? oneTimeKeys, JsonObject? fallbackKeys, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Declaration
public Task UploadRoomKeysAsync(string version, KeysBackup keys, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
UploadSignaturesAsync(IReadOnlyDictionary<string, Dictionary<string, JsonObject>>, CancellationToken)
Declaration
public Task UploadSignaturesAsync(IReadOnlyDictionary<string, Dictionary<string, JsonObject>> signatures, CancellationToken cancellationToken)
Parameters
Returns
Implements