Package net.minecraft.network
Class NettyEncryptionTranslator
- java.lang.Object
-
- net.minecraft.network.NettyEncryptionTranslator
-
public class NettyEncryptionTranslator extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NettyEncryptionTranslator(javax.crypto.Cipher p_i45140_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private byte[]
bufToByte(io.netty.buffer.ByteBuf p_150502_1_)
protected io.netty.buffer.ByteBuf
decipher(io.netty.channel.ChannelHandlerContext p_150503_1_, io.netty.buffer.ByteBuf p_150503_2_)
protected void
encipher(io.netty.buffer.ByteBuf p_150504_1_, io.netty.buffer.ByteBuf p_150504_2_)
-
-
-
Method Detail
-
bufToByte
private byte[] bufToByte(io.netty.buffer.ByteBuf p_150502_1_)
-
decipher
protected io.netty.buffer.ByteBuf decipher(io.netty.channel.ChannelHandlerContext p_150503_1_, io.netty.buffer.ByteBuf p_150503_2_) throws javax.crypto.ShortBufferException
- Throws:
javax.crypto.ShortBufferException
-
encipher
protected void encipher(io.netty.buffer.ByteBuf p_150504_1_, io.netty.buffer.ByteBuf p_150504_2_) throws javax.crypto.ShortBufferException
- Throws:
javax.crypto.ShortBufferException
-
-