SignalKeysRSocketController

@Controller
@MessageMapping(value = ["v1.keys.{client}"])
class SignalKeysRSocketController(signalKeysService: SignalKeysService, protobufSerializer: ProtoBuf, serverStore: ServerStore)

Constructors

Link copied to clipboard
constructor(signalKeysService: SignalKeysService, protobufSerializer: ProtoBuf, serverStore: ServerStore)

Functions

Link copied to clipboard
@MessageMapping(value = ["count.{uuid}.{id}"])
suspend fun countKeys(@DestinationVariable uuid: UUID, @DestinationVariable id: Int, @DestinationVariable client: String): RSocketResponse

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

Link copied to clipboard
@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.

@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.

Link copied to clipboard
@MessageMapping(value = ["set"])
suspend fun setKeys(@Payload deviceKeyBundle: ByteArray, @DestinationVariable client: String): RSocketResponse

Set Keys request/response RSocket API. Takes as argument a SetupDeviceKeyBundle encoded in ProtoBuf format in payload. In metadata takes the client path as String.