Package org.drasyl.node.handler.crypto
Class ArmMessage
java.lang.Object
org.drasyl.node.handler.crypto.ArmMessage
- Direct Known Subclasses:
AcknowledgementMessage
,KeyExchangeMessage
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.netty.buffer.ByteBuf
fromApplication
(io.netty.buffer.ByteBuf msg) abstract org.drasyl.node.handler.crypto.ArmMessage.MessageType
getType()
static Object
of
(io.netty.buffer.ByteBuf byteBuf) io.netty.buffer.ByteBuf
abstract void
writeBody
(io.netty.buffer.ByteBuf byteBuf)
-
Field Details
-
LENGTH
public static final int LENGTH- See Also:
-
-
Constructor Details
-
ArmMessage
public ArmMessage()
-
-
Method Details
-
getType
public abstract org.drasyl.node.handler.crypto.ArmMessage.MessageType getType() -
writeBody
public abstract void writeBody(io.netty.buffer.ByteBuf byteBuf) -
toByteBuf
public io.netty.buffer.ByteBuf toByteBuf() -
fromApplication
public static io.netty.buffer.ByteBuf fromApplication(io.netty.buffer.ByteBuf msg) -
of
- Throws:
InvalidMessageFormatException
-