Package org.drasyl.node.handler.crypto
Class KeyExchangeMessage
- java.lang.Object
-
- org.drasyl.node.handler.crypto.KeyExchangeMessage
-
@UnstableApi public abstract class KeyExchangeMessage extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
LENGTH
-
Constructor Summary
Constructors Constructor Description KeyExchangeMessage()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static io.netty.buffer.ByteBuf
fromApplication(io.netty.buffer.ByteBuf msg, io.netty.buffer.ByteBufAllocator alloc)
abstract KeyAgreementPublicKey
getSessionKey()
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 Detail
-
LENGTH
public static final int LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSessionKey
public abstract KeyAgreementPublicKey getSessionKey()
-
writeBody
public void writeBody(io.netty.buffer.ByteBuf byteBuf)
-
of
public static KeyExchangeMessage of(KeyAgreementPublicKey sessionKey)
-
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)
-
-