Package zmq.io.mechanism.curve
Class CurveServerMechanism
java.lang.Object
zmq.io.mechanism.Mechanism
zmq.io.mechanism.curve.CurveServerMechanism
-
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 CurveServerMechanism.State
Fields inherited from class zmq.io.mechanism.Mechanism
options, session, statusCode, zapProperties, zmtpProperties
-
Constructor Summary
ConstructorsConstructorDescriptionCurveServerMechanism
(SessionBase session, Address peerAddress, Options options) -
Method Summary
Modifier and TypeMethodDescriptionint
nextHandshakeCommand
(Msg msg) int
private int
processHello
(Msg msg) private int
processInitiate
(Msg msg) private int
produceError
(Msg msg) private int
produceReady
(Msg msg) private int
produceWelcome
(Msg msg) private void
sendZapRequest
(byte[] key) 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
-
cnNonce
private long cnNonce -
cnPeerNonce
private long cnPeerNonce -
secretKey
private final byte[] secretKey -
cnPublic
private final byte[] cnPublic -
cnSecret
private final byte[] cnSecret -
cnClient
private byte[] cnClient -
cookieKey
private byte[] cookieKey -
cnPrecom
private final byte[] cnPrecom -
state
-
cryptoBox
-
errno
-
-
Constructor Details
-
CurveServerMechanism
-
-
Method Details
-
nextHandshakeCommand
- Specified by:
nextHandshakeCommand
in classMechanism
-
processHandshakeCommand
- Specified by:
processHandshakeCommand
in classMechanism
-
encode
-
decode
-
zapMsgAvailable
public int zapMsgAvailable()- Specified by:
zapMsgAvailable
in classMechanism
-
status
-
processHello
-
produceWelcome
-
processInitiate
-
produceReady
-
produceError
-
sendZapRequest
private void sendZapRequest(byte[] key)
-