Class Mechanism
java.lang.Object
zmq.io.mechanism.Mechanism
- Direct Known Subclasses:
CurveClientMechanism, CurveServerMechanism, GssapiClientMechanism, GssapiServerMechanism, NullMechanism, PlainClientMechanism, PlainServerMechanism
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMechanism(SessionBase session, Address peerAddress, Options options) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddProperty(ByteBuffer buf, String name, byte[] value) protected final voidaddProperty(ByteBuffer buf, String name, String value) protected final voidaddProperty(Msg msg, String name, byte[] value) protected final voidaddProperty(Msg msg, String name, String value) protected booleancompare(ByteBuffer a1, byte[] b, int offset, int length) protected booleanvoiddestroy()final Blobprotected inthandleErrorReason(String reason) abstract intnextHandshakeCommand(Msg msg) protected intparseErrorMessage(Msg msg) protected final intparseMetadata(ByteBuffer msg, int offset, boolean zapFlag) protected final intparseMetadata(Msg msg, int offset, boolean zapFlag) final Msgabstract intprotected intprotected final intprotected final voidsendZapRequest(Mechanisms mechanism, boolean more) private voidsetPeerIdentity(byte[] data) private voidsetUserId(byte[] data) protected final Stringabstract Mechanism.Statusstatus()abstract int
-
Field Details
-
options
-
identity
-
userId
-
zapProperties
-
zmtpProperties
-
session
-
peerAddress
-
statusCode
-
-
Constructor Details
-
Mechanism
-
-
Method Details
-
status
-
setPeerIdentity
private void setPeerIdentity(byte[] data) -
peerIdentity
-
setUserId
private void setUserId(byte[] data) -
getUserId
-
addProperty
-
addProperty
-
addProperty
-
addProperty
-
parseMetadata
-
parseMetadata
-
property
-
socketType
-
compare
-
compare
-
decode
-
encode
-
zapMsgAvailable
public abstract int zapMsgAvailable() -
processHandshakeCommand
-
nextHandshakeCommand
-
parseErrorMessage
-
handleErrorReason
-
sendZapRequest
-
receiveAndProcessZapReply
protected final int receiveAndProcessZapReply() -
destroy
public void destroy()
-