Class NettyEncryptionTranslator


  • public class NettyEncryptionTranslator
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.crypto.Cipher cipher  
      private byte[] heapIn  
      private byte[] heapOut  
    • 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_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cipher

        private final javax.crypto.Cipher cipher
      • heapIn

        private byte[] heapIn
      • heapOut

        private byte[] heapOut
    • Constructor Detail

      • NettyEncryptionTranslator

        protected NettyEncryptionTranslator​(javax.crypto.Cipher p_i45140_1_)
    • 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