Class AltsTsiFrameProtector.Unprotector

  • Enclosing class:
    AltsTsiFrameProtector

    static final class AltsTsiFrameProtector.Unprotector
    extends java.lang.Object
    • Field Detail

      • suffixBytes

        private final int suffixBytes
      • requiredProtectedBytes

        private int requiredProtectedBytes
      • header

        private io.netty.buffer.ByteBuf header
      • firstFrameTag

        private io.netty.buffer.ByteBuf firstFrameTag
      • unhandledIdx

        private int unhandledIdx
      • unhandledBytes

        private long unhandledBytes
      • unhandledBufs

        private java.util.List<io.netty.buffer.ByteBuf> unhandledBufs
    • Constructor Detail

      • Unprotector

        Unprotector​(ChannelCrypterNetty crypter,
                    io.netty.buffer.ByteBufAllocator alloc)
    • Method Detail

      • addUnhandled

        private void addUnhandled​(io.netty.buffer.ByteBuf in)
      • unprotect

        void unprotect​(io.netty.buffer.ByteBuf in,
                       java.util.List<java.lang.Object> out,
                       io.netty.buffer.ByteBufAllocator alloc)
                throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • decodeFrame

        private void decodeFrame​(io.netty.buffer.ByteBufAllocator alloc,
                                 java.util.List<java.lang.Object> out)
                          throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • handleHeader

        private void handleHeader()
      • handlePayload

        private io.netty.buffer.ByteBuf handlePayload​(io.netty.buffer.ByteBufAllocator alloc)
                                               throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • clearState

        private void clearState()
      • destroy

        void destroy()