public final class EncryptionHandler
extends io.netty.handler.codec.MessageToMessageCodec<io.netty.buffer.ByteBuf,io.netty.buffer.ByteBuf>
Constructor and Description |
---|
EncryptionHandler(SecretKey sharedSecret)
Creates an instance that applies symmetrical AES encryption.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg,
List<Object> out) |
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg,
List<Object> out) |
acceptInboundMessage, acceptOutboundMessage, channelRead, write
bind, close, connect, deregister, disconnect, flush, read
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public EncryptionHandler(SecretKey sharedSecret)
sharedSecret
- an AES keyCopyright © 2021. All rights reserved.