Package org.drasyl.node.handler.crypto
Class KeyExchangeMessage
java.lang.Object
org.drasyl.node.handler.crypto.KeyExchangeMessage
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.netty.buffer.ByteBuf
fromApplication
(io.netty.buffer.ByteBuf msg, io.netty.buffer.ByteBufAllocator alloc) abstract KeyAgreementPublicKey
static KeyExchangeMessage
of
(io.netty.buffer.ByteBuf byteBuf) static KeyExchangeMessage
of
(KeyAgreementPublicKey sessionKey) void
writeBody
(io.netty.buffer.ByteBuf byteBuf) void
writeTo
(io.netty.buffer.ByteBuf out)
-
Field Details
-
LENGTH
public static final int LENGTH- See Also:
-
-
Constructor Details
-
KeyExchangeMessage
public KeyExchangeMessage()
-
-
Method Details
-
getSessionKey
-
writeBody
public void writeBody(io.netty.buffer.ByteBuf byteBuf) -
of
-
of
public static KeyExchangeMessage of(io.netty.buffer.ByteBuf byteBuf) throws InvalidMessageFormatException - Throws:
InvalidMessageFormatException
-
writeTo
public void writeTo(io.netty.buffer.ByteBuf out) -
fromApplication
public static io.netty.buffer.ByteBuf fromApplication(io.netty.buffer.ByteBuf msg, io.netty.buffer.ByteBufAllocator alloc)
-