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 classCurveClientMechanism.State-
Nested classes/interfaces inherited from class zmq.io.mechanism.Mechanism
Mechanism.Status
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]cnCookieprivate longcnNonceprivate longcnPeerNonceprivate byte[]cnPrecomprivate byte[]cnPublicprivate byte[]cnSecretprivate byte[]cnServerprivate CurvecryptoBoxprivate Errnoerrnoprivate byte[]publicKeyprivate byte[]secretKeyprivate byte[]serverKeyprivate CurveClientMechanism.Statestate-
Fields inherited from class zmq.io.mechanism.Mechanism
options, session, statusCode, zapProperties, zmtpProperties
-
-
Constructor Summary
Constructors Constructor Description CurveClientMechanism(SessionBase session, Options options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Msgdecode(Msg msg)Msgencode(Msg msg)intnextHandshakeCommand(Msg msg)private intprocessError(Msg msg)intprocessHandshakeCommand(Msg msg)private intprocessReady(Msg msg)private intprocessWelcome(Msg msg)private intproduceHello(Msg msg)private intproduceInitiate(Msg msg)Mechanism.Statusstatus()intzapMsgAvailable()-
Methods inherited from class zmq.io.mechanism.Mechanism
addProperty, addProperty, addProperty, addProperty, compare, compare, destroy, getUserId, handleErrorReason, parseErrorMessage, 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(SessionBase session, Options options)
-
-
Method Detail
-
nextHandshakeCommand
public int nextHandshakeCommand(Msg msg)
- Specified by:
nextHandshakeCommandin classMechanism
-
processHandshakeCommand
public int processHandshakeCommand(Msg msg)
- Specified by:
processHandshakeCommandin classMechanism
-
status
public Mechanism.Status status()
-
zapMsgAvailable
public int zapMsgAvailable()
- Specified by:
zapMsgAvailablein 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)
-
-