public class HandshakeAuthenticated<Node extends RemoteNode<Node>> extends java.lang.Object implements Protocol<Node>
https://apl.cs.cornell.edu/wiki/Fabric:Fabric_Communication_Layer
Constructor and Description |
---|
HandshakeAuthenticated(KeyMaterial... endpoints) |
Modifier and Type | Method and Description |
---|---|
ShakenSocket<Node> |
initiate(Node remoteNode,
java.net.Socket s)
Initiates a handshake with a remote host at the given address.
|
ShakenSocket<RemoteWorker> |
receive(java.net.Socket s)
Receives a handshake via the given socket.
|
public HandshakeAuthenticated(KeyMaterial... endpoints) throws java.security.GeneralSecurityException
java.security.GeneralSecurityException
public ShakenSocket<Node> initiate(Node remoteNode, java.net.Socket s) throws java.io.IOException
Protocol
initiate
in interface Protocol<Node extends RemoteNode<Node>>
remoteNode
- the remote node to connect to.s
- the socket on which to initiate a handshake.java.io.IOException
public ShakenSocket<RemoteWorker> receive(java.net.Socket s) throws java.io.IOException
Protocol
receive
in interface Protocol<Node extends RemoteNode<Node>>
s
- the socket on which to receive a handshake.java.io.IOException