Class AltsTsiFrameProtector.Protector

  • Enclosing class:
    AltsTsiFrameProtector

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

      • maxUnprotectedBytesPerFrame

        private final int maxUnprotectedBytesPerFrame
      • suffixBytes

        private final int suffixBytes
    • Method Detail

      • destroy

        void destroy()
      • protectFlush

        void protectFlush​(java.util.List<io.netty.buffer.ByteBuf> unprotectedBufs,
                          TsiFrameProtector.Consumer<io.netty.buffer.ByteBuf> ctxWrite,
                          io.netty.buffer.ByteBufAllocator alloc)
                   throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • handleUnprotected

        private io.netty.buffer.ByteBuf handleUnprotected​(java.util.List<io.netty.buffer.ByteBuf> unprotectedBufs,
                                                          io.netty.buffer.ByteBufAllocator alloc)
                                                   throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException