Class CurveServerMechanism

java.lang.Object
zmq.io.mechanism.Mechanism
zmq.io.mechanism.curve.CurveServerMechanism

public class CurveServerMechanism extends Mechanism
  • 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

      private final Curve cryptoBox
    • errno

      private final Errno errno
  • Constructor Details

  • Method Details

    • nextHandshakeCommand

      public int nextHandshakeCommand(Msg msg)
      Specified by:
      nextHandshakeCommand in class Mechanism
    • processHandshakeCommand

      public int processHandshakeCommand(Msg msg)
      Specified by:
      processHandshakeCommand in class Mechanism
    • encode

      public Msg encode(Msg msg)
      Overrides:
      encode in class Mechanism
    • decode

      public Msg decode(Msg msg)
      Overrides:
      decode in class Mechanism
    • zapMsgAvailable

      public int zapMsgAvailable()
      Specified by:
      zapMsgAvailable in class Mechanism
    • status

      public Mechanism.Status status()
      Specified by:
      status in class Mechanism
    • 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)