Package io.grpc.alts.internal
Class AltsTsiFrameProtector.Protector
java.lang.Object
io.grpc.alts.internal.AltsTsiFrameProtector.Protector
- Enclosing class:
AltsTsiFrameProtector
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
destroy()
private io.netty.buffer.ByteBuf
handleUnprotected
(List<io.netty.buffer.ByteBuf> unprotectedBufs, io.netty.buffer.ByteBufAllocator alloc) (package private) void
protectFlush
(List<io.netty.buffer.ByteBuf> unprotectedBufs, TsiFrameProtector.Consumer<io.netty.buffer.ByteBuf> ctxWrite, io.netty.buffer.ByteBufAllocator alloc)
-
Field Details
-
maxUnprotectedBytesPerFrame
private final int maxUnprotectedBytesPerFrame -
suffixBytes
private final int suffixBytes -
crypter
-
-
Constructor Details
-
Protector
Protector(int maxProtectedFrameBytes, ChannelCrypterNetty crypter)
-
-
Method Details
-
destroy
void destroy() -
protectFlush
void protectFlush(List<io.netty.buffer.ByteBuf> unprotectedBufs, TsiFrameProtector.Consumer<io.netty.buffer.ByteBuf> ctxWrite, io.netty.buffer.ByteBufAllocator alloc) throws GeneralSecurityException - Throws:
GeneralSecurityException
-
handleUnprotected
private io.netty.buffer.ByteBuf handleUnprotected(List<io.netty.buffer.ByteBuf> unprotectedBufs, io.netty.buffer.ByteBufAllocator alloc) throws GeneralSecurityException - Throws:
GeneralSecurityException
-