Package zmq.io.mechanism.curve
Class CurveClientMechanism
java.lang.Object
zmq.io.mechanism.Mechanism
zmq.io.mechanism.curve.CurveClientMechanism
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class zmq.io.mechanism.Mechanism
Mechanism.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private longprivate longprivate final byte[]private final byte[]private final byte[]private final byte[]private final Curveprivate final Errnoprivate final byte[]private final byte[]private final byte[]private CurveClientMechanism.StateFields inherited from class zmq.io.mechanism.Mechanism
options, session, statusCode, zapProperties, zmtpProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintnextHandshakeCommand(Msg msg) private intprocessError(Msg msg) intprivate intprocessReady(Msg msg) private intprocessWelcome(Msg msg) private intproduceHello(Msg msg) private intproduceInitiate(Msg msg) status()intMethods 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 Details
-
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 final byte[] cnServer -
cnCookie
private final byte[] cnCookie -
cnPrecom
private final byte[] cnPrecom -
cnNonce
private long cnNonce -
cnPeerNonce
private long cnPeerNonce -
cryptoBox
-
errno
-
-
Constructor Details
-
CurveClientMechanism
-
-
Method Details
-
nextHandshakeCommand
- Specified by:
nextHandshakeCommandin classMechanism
-
processHandshakeCommand
- Specified by:
processHandshakeCommandin classMechanism
-
encode
-
decode
-
status
-
zapMsgAvailable
public int zapMsgAvailable()- Specified by:
zapMsgAvailablein classMechanism
-
produceHello
-
processWelcome
-
produceInitiate
-
processReady
-
processError
-