Package zmq.io.mechanism.curve
Class CurveServerMechanism
- java.lang.Object
-
- zmq.io.mechanism.Mechanism
-
- zmq.io.mechanism.curve.CurveServerMechanism
-
public class CurveServerMechanism extends Mechanism
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classCurveServerMechanism.State-
Nested classes/interfaces inherited from class zmq.io.mechanism.Mechanism
Mechanism.Status
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]cnClientprivate longcnNonceprivate longcnPeerNonceprivate byte[]cnPrecomprivate byte[]cnPublicprivate byte[]cnSecretprivate byte[]cookieKeyprivate CurvecryptoBoxprivate Errnoerrnoprivate byte[]secretKeyprivate CurveServerMechanism.Statestate-
Fields inherited from class zmq.io.mechanism.Mechanism
options, session, statusCode, zapProperties, zmtpProperties
-
-
Constructor Summary
Constructors Constructor Description CurveServerMechanism(SessionBase session, Address peerAddress, Options options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Msgdecode(Msg msg)Msgencode(Msg msg)intnextHandshakeCommand(Msg msg)intprocessHandshakeCommand(Msg msg)private intprocessHello(Msg msg)private intprocessInitiate(Msg msg)private intproduceError(Msg msg)private intproduceReady(Msg msg)private intproduceWelcome(Msg msg)private voidsendZapRequest(byte[] key)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
-
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
private CurveServerMechanism.State state
-
cryptoBox
private final Curve cryptoBox
-
errno
private final Errno errno
-
-
Constructor Detail
-
CurveServerMechanism
public CurveServerMechanism(SessionBase session, Address peerAddress, Options options)
-
-
Method Detail
-
nextHandshakeCommand
public int nextHandshakeCommand(Msg msg)
- Specified by:
nextHandshakeCommandin classMechanism
-
processHandshakeCommand
public int processHandshakeCommand(Msg msg)
- Specified by:
processHandshakeCommandin classMechanism
-
zapMsgAvailable
public int zapMsgAvailable()
- Specified by:
zapMsgAvailablein classMechanism
-
status
public Mechanism.Status status()
-
processHello
private int processHello(Msg msg)
-
produceWelcome
private int produceWelcome(Msg msg)
-
processInitiate
private int processInitiate(Msg msg)
-
produceReady
private int produceReady(Msg msg)
-
produceError
private int produceError(Msg msg)
-
sendZapRequest
private void sendZapRequest(byte[] key)
-
-