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 class
CurveServerMechanism.State
-
Nested classes/interfaces inherited from class zmq.io.mechanism.Mechanism
Mechanism.Status
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
cnClient
private long
cnNonce
private long
cnPeerNonce
private byte[]
cnPrecom
private byte[]
cnPublic
private byte[]
cnSecret
private byte[]
cookieKey
private Curve
cryptoBox
private Errno
errno
private byte[]
secretKey
private CurveServerMechanism.State
state
-
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 Msg
decode(Msg msg)
Msg
encode(Msg msg)
int
nextHandshakeCommand(Msg msg)
int
processHandshakeCommand(Msg msg)
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)
Mechanism.Status
status()
int
zapMsgAvailable()
-
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:
nextHandshakeCommand
in classMechanism
-
processHandshakeCommand
public int processHandshakeCommand(Msg msg)
- Specified by:
processHandshakeCommand
in classMechanism
-
zapMsgAvailable
public int zapMsgAvailable()
- Specified by:
zapMsgAvailable
in 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)
-
-