Package io.grpc.alts.internal
Class AltsTsiFrameProtector.Protector
- java.lang.Object
-
- io.grpc.alts.internal.AltsTsiFrameProtector.Protector
-
- Enclosing class:
- AltsTsiFrameProtector
static final class AltsTsiFrameProtector.Protector extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelCrypterNetty
crypter
private int
maxUnprotectedBytesPerFrame
private int
suffixBytes
-
Constructor Summary
Constructors Constructor Description Protector(int maxProtectedFrameBytes, ChannelCrypterNetty crypter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
destroy()
private io.netty.buffer.ByteBuf
handleUnprotected(java.util.List<io.netty.buffer.ByteBuf> unprotectedBufs, io.netty.buffer.ByteBufAllocator alloc)
(package private) void
protectFlush(java.util.List<io.netty.buffer.ByteBuf> unprotectedBufs, TsiFrameProtector.Consumer<io.netty.buffer.ByteBuf> ctxWrite, io.netty.buffer.ByteBufAllocator alloc)
-
-
-
Field Detail
-
maxUnprotectedBytesPerFrame
private final int maxUnprotectedBytesPerFrame
-
suffixBytes
private final int suffixBytes
-
crypter
private ChannelCrypterNetty crypter
-
-
Constructor Detail
-
Protector
Protector(int maxProtectedFrameBytes, ChannelCrypterNetty crypter)
-
-
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
-
-