public class CurveClientMechanism extends Mechanism
Modifier and Type | Class and Description |
---|---|
private static class |
CurveClientMechanism.State |
Mechanism.Status
Modifier and Type | Field and Description |
---|---|
private byte[] |
cnCookie |
private long |
cnNonce |
private long |
cnPeerNonce |
private byte[] |
cnPrecom |
private byte[] |
cnPublic |
private byte[] |
cnSecret |
private byte[] |
cnServer |
private Curve |
cryptoBox |
private Errno |
errno |
private byte[] |
publicKey |
private byte[] |
secretKey |
private byte[] |
serverKey |
private CurveClientMechanism.State |
state |
options, session, statusCode, zapProperties, zmtpProperties
Constructor and Description |
---|
CurveClientMechanism(SessionBase session,
Options options) |
Modifier and Type | Method and Description |
---|---|
Msg |
decode(Msg msg) |
Msg |
encode(Msg msg) |
int |
nextHandshakeCommand(Msg msg) |
private int |
processError(Msg msg) |
int |
processHandshakeCommand(Msg msg) |
private int |
processReady(Msg msg) |
private int |
processWelcome(Msg msg) |
private int |
produceHello(Msg msg) |
private int |
produceInitiate(Msg msg) |
Mechanism.Status |
status() |
int |
zapMsgAvailable() |
addProperty, addProperty, addProperty, addProperty, compare, compare, destroy, getUserId, handleErrorReason, parseErrorMessage, parseMetadata, parseMetadata, peerIdentity, property, receiveAndProcessZapReply, sendZapRequest, socketType
private CurveClientMechanism.State state
private final byte[] publicKey
private final byte[] secretKey
private final byte[] cnPublic
private final byte[] cnSecret
private final byte[] serverKey
private byte[] cnServer
private byte[] cnCookie
private final byte[] cnPrecom
private long cnNonce
private long cnPeerNonce
private final Curve cryptoBox
private final Errno errno
public CurveClientMechanism(SessionBase session, Options options)
public int nextHandshakeCommand(Msg msg)
nextHandshakeCommand
in class Mechanism
public int processHandshakeCommand(Msg msg)
processHandshakeCommand
in class Mechanism
public Mechanism.Status status()
public int zapMsgAvailable()
zapMsgAvailable
in class Mechanism
private int produceHello(Msg msg)
private int processWelcome(Msg msg)
private int produceInitiate(Msg msg)
private int processReady(Msg msg)
private int processError(Msg msg)