tuweni / org.apache.tuweni.scuttlebutt.handshake / SecureScuttlebuttStreamServer

SecureScuttlebuttStreamServer

interface SecureScuttlebuttStreamServer (source)

Interface used to encrypt and decrypt messages to and from a client.

Functions

isGoodbye

Checks if a message is a goodbye message, indicating the end of the connection

open static fun isGoodbye(message: Bytes!): Boolean

readFromClient

Adds message bytes to the reader stream, returning the bytes that could be decrypted.

abstract fun readFromClient(message: Bytes!): Bytes!

sendGoodbyeToClient

Prepares a goodbye message to be sent to the client

abstract fun sendGoodbyeToClient(): Bytes!

sendToClient

Prepares a message to be sent to the client

abstract fun sendToClient(message: Bytes!): Bytes!