getKeys

@MessageMapping(value = ["get.{uuid}"])
suspend fun getKeys(@DestinationVariable uuid: UUID, @DestinationVariable client: String): RSocketResponse

Get keys request/response RSocket API. Takes as arguments UUID and the client path as String in metadata.

Retrieves the signal-keys bundle, which is required to initiate a session (double-ratchet), corresponding to the matched account of the given uuid for all the account's devices and deletes the received one-time keys for each device.

Returns a HubPayload encoded in ProtoBuf format, which contains data with the resulted AccountKeyBundle. Else it contains error with the corresponding code. If there is not any matching devices or an account associated with the target uuid it returns code 404.


@MessageMapping(value = ["get.{uuid}.{id}"])
suspend fun getKeys(@DestinationVariable uuid: UUID, @DestinationVariable id: Int, @DestinationVariable client: String): RSocketResponse

Get keys request/response RSocket API. Takes as arguments UUID,id as Int and the client path as String in metadata.

Retrieves the signal-keys bundle, which is required to initiate a session (double-ratchet) corresponding to the matched account-device of the given uuid and device id and deletes the received one-time key.

Returns a HubPayload encoded in ProtoBuf format, which contains data with the resulted AccountKeyBundle. Else it contains error with the corresponding code. If there is not any matching devices or an account associated with the target uuid it returns code 404.