public class CurveServerMechanism extends Mechanism
Modifier and Type | Class and Description |
---|---|
private static class |
CurveServerMechanism.State |
Mechanism.Status
Modifier and Type | Field and Description |
---|---|
private byte[] |
cnClient |
private long |
cnNonce |
private long |
cnPeerNonce |
private byte[] |
cnPrecom |
private byte[] |
cnPublic |
private byte[] |
cnSecret |
private byte[] |
cookieKey |
private Curve |
cryptoBox |
private Errno |
errno |
private byte[] |
secretKey |
private CurveServerMechanism.State |
state |
options, session, statusCode, zapProperties, zmtpProperties
Constructor and Description |
---|
CurveServerMechanism(SessionBase session,
Address peerAddress,
Options options) |
Modifier and Type | Method and Description |
---|---|
Msg |
decode(Msg msg) |
Msg |
encode(Msg msg) |
int |
nextHandshakeCommand(Msg msg) |
int |
processHandshakeCommand(Msg msg) |
private int |
processHello(Msg msg) |
private int |
processInitiate(Msg msg) |
private int |
produceError(Msg msg) |
private int |
produceReady(Msg msg) |
private int |
produceWelcome(Msg msg) |
private void |
sendZapRequest(byte[] key) |
Mechanism.Status |
status() |
int |
zapMsgAvailable() |
addProperty, addProperty, addProperty, addProperty, compare, compare, destroy, getUserId, handleErrorReason, parseErrorMessage, parseMetadata, parseMetadata, peerIdentity, property, receiveAndProcessZapReply, sendZapRequest, socketType
private long cnNonce
private long cnPeerNonce
private final byte[] secretKey
private final byte[] cnPublic
private final byte[] cnSecret
private byte[] cnClient
private byte[] cookieKey
private final byte[] cnPrecom
private CurveServerMechanism.State state
private final Curve cryptoBox
private final Errno errno
public CurveServerMechanism(SessionBase session, Address peerAddress, Options options)
public int nextHandshakeCommand(Msg msg)
nextHandshakeCommand
in class Mechanism
public int processHandshakeCommand(Msg msg)
processHandshakeCommand
in class Mechanism
public int zapMsgAvailable()
zapMsgAvailable
in class Mechanism
public Mechanism.Status status()
private int processHello(Msg msg)
private int produceWelcome(Msg msg)
private int processInitiate(Msg msg)
private int produceReady(Msg msg)
private int produceError(Msg msg)
private void sendZapRequest(byte[] key)