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 byte[]
private long
private long
private final byte[]
private final byte[]
private final byte[]
private byte[]
private final Curve
private final Errno
private final byte[]
private final byte[]
private final byte[]
private CurveClientMechanism.State
Fields inherited from class zmq.io.mechanism.Mechanism
options, session, statusCode, zapProperties, zmtpProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
nextHandshakeCommand
(Msg msg) private int
processError
(Msg msg) int
private int
processReady
(Msg msg) private int
processWelcome
(Msg msg) private int
produceHello
(Msg msg) private int
produceInitiate
(Msg msg) status()
int
Methods inherited from class zmq.io.mechanism.Mechanism
addProperty, addProperty, addProperty, addProperty, compare, compare, destroy, getUserId, 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 byte[] cnServer -
cnCookie
private 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:
nextHandshakeCommand
in classMechanism
-
processHandshakeCommand
- Specified by:
processHandshakeCommand
in classMechanism
-
encode
-
decode
-
status
-
zapMsgAvailable
public int zapMsgAvailable()- Specified by:
zapMsgAvailable
in classMechanism
-
produceHello
-
processWelcome
-
produceInitiate
-
processReady
-
processError
-