scuttlebutt-handshake
Module Contents
alltypes
Module Contents
interface
ClientHandler
Module Contents
abstract
fun
receivedMessage
(
message
:
Bytes
)
:
Unit
abstract
fun
streamClosed
(
)
:
Unit
interface
ClientHandlerFactory
<
T
:
ClientHandler
>
Module Contents
abstract
fun
createHandler
(
sender
:
Consumer
<
Bytes
>
,
terminationFunction
:
Runnable
)
:
T
class
HandshakeException
:
RuntimeException
class
SecureScuttlebuttHandshakeClient
Module Contents
static
fun
create
(
ourKeyPair
:
KeyPair
,
networkIdentifier
:
Bytes32
,
serverLongTermPublicKey
:
PublicKey
)
:
SecureScuttlebuttHandshakeClient
fun
createHello
(
)
:
Bytes
fun
createIdentityMessage
(
)
:
Bytes
fun
createStream
(
)
:
SecureScuttlebuttStreamClient
static
fun
fromInvite
(
networkIdentifier
:
Bytes32
,
invite
:
Invite
)
:
SecureScuttlebuttHandshakeClient
fun
readAcceptMessage
(
message
:
Bytes
)
:
Unit
fun
readHello
(
message
:
Bytes
)
:
Unit
class
SecureScuttlebuttHandshakeServer
Module Contents
static
fun
create
(
ourKeyPair
:
KeyPair
,
networkIdentifier
:
Bytes32
)
:
SecureScuttlebuttHandshakeServer
fun
createAcceptMessage
(
)
:
Bytes
fun
createHello
(
)
:
Bytes
fun
createStream
(
)
:
SecureScuttlebuttStreamServer
fun
readHello
(
message
:
Bytes
)
:
Unit
fun
readIdentityMessage
(
message
:
Bytes
)
:
Unit
interface
SecureScuttlebuttStreamClient
Module Contents
abstract
fun
readFromServer
(
message
:
Bytes
)
:
Bytes
abstract
fun
sendGoodbyeToServer
(
)
:
Bytes
abstract
fun
sendToServer
(
message
:
Bytes
)
:
Bytes
interface
SecureScuttlebuttStreamServer
Module Contents
open
static
fun
isGoodbye
(
message
:
Bytes
)
:
Boolean
abstract
fun
readFromClient
(
message
:
Bytes
)
:
Bytes
abstract
fun
sendGoodbyeToClient
(
)
:
Bytes
abstract
fun
sendToClient
(
message
:
Bytes
)
:
Bytes
class
SecureScuttlebuttVertxClient
Module Contents
SecureScuttlebuttVertxClient
(
loggerProvider
:
LoggerProvider
,
vertx
:
Vertx
,
keyPair
:
KeyPair
,
networkIdentifier
:
Bytes32
)
fun
<
T
:
ClientHandler
>
connectTo
(
port
:
Int
,
host
:
String
,
remotePublicKey
:
PublicKey
,
handlerFactory
:
ClientHandlerFactory
<
T
>
)
:
AsyncResult
<
T
>
fun
stop
(
)
:
AsyncCompletion
class
SecureScuttlebuttVertxServer
Module Contents
SecureScuttlebuttVertxServer
(
vertx
:
Vertx
,
addr
:
InetSocketAddress
,
keyPair
:
KeyPair
,
networkIdentifier
:
Bytes32
,
handlerFactory
:
ServerHandlerFactory
)
fun
start
(
)
:
AsyncCompletion
fun
stop
(
)
:
AsyncCompletion
interface
ServerHandler
Module Contents
abstract
fun
receivedMessage
(
message
:
Bytes
)
:
Unit
abstract
fun
streamClosed
(
)
:
Unit
interface
ServerHandlerFactory
Module Contents
abstract
fun
createHandler
(
sender
:
Consumer
<
Bytes
>
,
terminationFunction
:
Runnable
)
:
ServerHandler
class
StreamException
:
RuntimeException
package
org.apache.tuweni.scuttlebutt.handshake
Module Contents
class
HandshakeException
:
RuntimeException
class
SecureScuttlebuttHandshakeClient
Module Contents
static
fun
create
(
ourKeyPair
:
KeyPair
,
networkIdentifier
:
Bytes32
,
serverLongTermPublicKey
:
PublicKey
)
:
SecureScuttlebuttHandshakeClient
fun
createHello
(
)
:
Bytes
fun
createIdentityMessage
(
)
:
Bytes
fun
createStream
(
)
:
SecureScuttlebuttStreamClient
static
fun
fromInvite
(
networkIdentifier
:
Bytes32
,
invite
:
Invite
)
:
SecureScuttlebuttHandshakeClient
fun
readAcceptMessage
(
message
:
Bytes
)
:
Unit
fun
readHello
(
message
:
Bytes
)
:
Unit
class
SecureScuttlebuttHandshakeServer
Module Contents
static
fun
create
(
ourKeyPair
:
KeyPair
,
networkIdentifier
:
Bytes32
)
:
SecureScuttlebuttHandshakeServer
fun
createAcceptMessage
(
)
:
Bytes
fun
createHello
(
)
:
Bytes
fun
createStream
(
)
:
SecureScuttlebuttStreamServer
fun
readHello
(
message
:
Bytes
)
:
Unit
fun
readIdentityMessage
(
message
:
Bytes
)
:
Unit
interface
SecureScuttlebuttStreamClient
Module Contents
abstract
fun
readFromServer
(
message
:
Bytes
)
:
Bytes
abstract
fun
sendGoodbyeToServer
(
)
:
Bytes
abstract
fun
sendToServer
(
message
:
Bytes
)
:
Bytes
interface
SecureScuttlebuttStreamServer
Module Contents
open
static
fun
isGoodbye
(
message
:
Bytes
)
:
Boolean
abstract
fun
readFromClient
(
message
:
Bytes
)
:
Bytes
abstract
fun
sendGoodbyeToClient
(
)
:
Bytes
abstract
fun
sendToClient
(
message
:
Bytes
)
:
Bytes
class
StreamException
:
RuntimeException
package
org.apache.tuweni.scuttlebutt.handshake.vertx
Module Contents
interface
ClientHandler
Module Contents
abstract
fun
receivedMessage
(
message
:
Bytes
)
:
Unit
abstract
fun
streamClosed
(
)
:
Unit
interface
ClientHandlerFactory
<
T
:
ClientHandler
>
Module Contents
abstract
fun
createHandler
(
sender
:
Consumer
<
Bytes
>
,
terminationFunction
:
Runnable
)
:
T
class
SecureScuttlebuttVertxClient
Module Contents
SecureScuttlebuttVertxClient
(
loggerProvider
:
LoggerProvider
,
vertx
:
Vertx
,
keyPair
:
KeyPair
,
networkIdentifier
:
Bytes32
)
fun
<
T
:
ClientHandler
>
connectTo
(
port
:
Int
,
host
:
String
,
remotePublicKey
:
PublicKey
,
handlerFactory
:
ClientHandlerFactory
<
T
>
)
:
AsyncResult
<
T
>
fun
stop
(
)
:
AsyncCompletion
class
SecureScuttlebuttVertxServer
Module Contents
SecureScuttlebuttVertxServer
(
vertx
:
Vertx
,
addr
:
InetSocketAddress
,
keyPair
:
KeyPair
,
networkIdentifier
:
Bytes32
,
handlerFactory
:
ServerHandlerFactory
)
fun
start
(
)
:
AsyncCompletion
fun
stop
(
)
:
AsyncCompletion
interface
ServerHandler
Module Contents
abstract
fun
receivedMessage
(
message
:
Bytes
)
:
Unit
abstract
fun
streamClosed
(
)
:
Unit
interface
ServerHandlerFactory
Module Contents
abstract
fun
createHandler
(
sender
:
Consumer
<
Bytes
>
,
terminationFunction
:
Runnable
)
:
ServerHandler