public class NettyEncryptionTranslator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private javax.crypto.Cipher |
cipher |
private byte[] |
inputBuffer |
private byte[] |
outputBuffer |
Modifier | Constructor and Description |
---|---|
protected |
NettyEncryptionTranslator(javax.crypto.Cipher cipherIn) |
Modifier and Type | Method and Description |
---|---|
private byte[] |
bufToBytes(io.netty.buffer.ByteBuf buf) |
protected void |
cipher(io.netty.buffer.ByteBuf in,
io.netty.buffer.ByteBuf out) |
protected io.netty.buffer.ByteBuf |
decipher(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer) |
private final javax.crypto.Cipher cipher
private byte[] inputBuffer
private byte[] outputBuffer
protected NettyEncryptionTranslator(javax.crypto.Cipher cipherIn)
private byte[] bufToBytes(io.netty.buffer.ByteBuf buf)
protected io.netty.buffer.ByteBuf decipher(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer) throws javax.crypto.ShortBufferException
javax.crypto.ShortBufferException
protected void cipher(io.netty.buffer.ByteBuf in, io.netty.buffer.ByteBuf out) throws javax.crypto.ShortBufferException
javax.crypto.ShortBufferException