Package zmq.io.mechanism.curve
Class CurveClientMechanism
- java.lang.Object
-
- zmq.io.mechanism.Mechanism
-
- zmq.io.mechanism.curve.CurveClientMechanism
-
public class CurveClientMechanism extends Mechanism
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
CurveClientMechanism.State
-
Nested classes/interfaces inherited from class zmq.io.mechanism.Mechanism
Mechanism.Status
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class zmq.io.mechanism.Mechanism
options, session, statusCode, zapProperties, zmtpProperties
-
-
Constructor Summary
Constructors Constructor Description CurveClientMechanism(Options options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class zmq.io.mechanism.Mechanism
addProperty, addProperty, addProperty, addProperty, compare, compare, destroy, getUserId, parseMetadata, parseMetadata, peerIdentity, property, receiveAndProcessZapReply, sendZapRequest, socketType
-
-
-
-
Field Detail
-
state
private CurveClientMechanism.State state
-
publicKey
private final byte[] publicKey
-
secretKey
private final byte[] secretKey
-
cnPublic
private final byte[] cnPublic
-
cnSecret
private final byte[] cnSecret
-
serverKey
private final byte[] serverKey
-
cnServer
private byte[] cnServer
-
cnCookie
private byte[] cnCookie
-
cnPrecom
private final byte[] cnPrecom
-
cnNonce
private long cnNonce
-
cnPeerNonce
private long cnPeerNonce
-
cryptoBox
private final Curve cryptoBox
-
errno
private final Errno errno
-
-
Constructor Detail
-
CurveClientMechanism
public CurveClientMechanism(Options options)
-
-
Method Detail
-
nextHandshakeCommand
public int nextHandshakeCommand(Msg msg)
- Specified by:
nextHandshakeCommand
in classMechanism
-
processHandshakeCommand
public int processHandshakeCommand(Msg msg)
- Specified by:
processHandshakeCommand
in classMechanism
-
status
public Mechanism.Status status()
-
zapMsgAvailable
public int zapMsgAvailable()
- Specified by:
zapMsgAvailable
in classMechanism
-
produceHello
private int produceHello(Msg msg)
-
processWelcome
private int processWelcome(Msg msg)
-
produceInitiate
private int produceInitiate(Msg msg)
-
processReady
private int processReady(Msg msg)
-
processError
private int processError(Msg msg)
-
-