Package org.drasyl.node.handler.crypto
Class KeyExchangeMessage
java.lang.Object
org.drasyl.node.handler.crypto.KeyExchangeMessage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.netty.buffer.ByteBuffromApplication(io.netty.buffer.ByteBuf msg, io.netty.buffer.ByteBufAllocator alloc) abstract KeyAgreementPublicKeystatic KeyExchangeMessageof(io.netty.buffer.ByteBuf byteBuf) static KeyExchangeMessageof(KeyAgreementPublicKey sessionKey) voidwriteBody(io.netty.buffer.ByteBuf byteBuf) voidwriteTo(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)
-