Class CurveServerMechanism
java.lang.Object
zmq.io.mechanism.Mechanism
zmq.io.mechanism.curve.CurveServerMechanism
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Mechanism
Mechanism.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private longprivate longprivate final byte[]private final byte[]private final byte[]private byte[]private final Curveprivate final Errnoprivate final byte[]private CurveServerMechanism.StateFields inherited from class Mechanism
options, session, statusCode, zapProperties, zmtpProperties -
Constructor Summary
ConstructorsConstructorDescriptionCurveServerMechanism(SessionBase session, Address peerAddress, Options options) -
Method Summary
Modifier and TypeMethodDescriptionintnextHandshakeCommand(Msg msg) intprivate intprocessHello(Msg msg) private intprocessInitiate(Msg msg) private intproduceError(Msg msg) private intproduceReady(Msg msg) private intproduceWelcome(Msg msg) private voidsendZapRequest(byte[] key) status()intMethods inherited from class Mechanism
addProperty, addProperty, addProperty, addProperty, compare, compare, destroy, getUserId, handleErrorReason, parseErrorMessage, 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:
nextHandshakeCommandin classMechanism
-
processHandshakeCommand
- Specified by:
processHandshakeCommandin classMechanism
-
encode
-
decode
-
zapMsgAvailable
public int zapMsgAvailable()- Specified by:
zapMsgAvailablein classMechanism
-
status
-
processHello
-
produceWelcome
-
processInitiate
-
produceReady
-
produceError
-
sendZapRequest
private void sendZapRequest(byte[] key)
-