Package io.grpc.alts.internal
Class AltsTsiFrameProtector.Unprotector
java.lang.Object
io.grpc.alts.internal.AltsTsiFrameProtector.Unprotector
- Enclosing class:
AltsTsiFrameProtector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChannelCrypterNettyprivate io.netty.buffer.ByteBufprivate io.netty.buffer.ByteBufprivate intprivate final intprivate List<io.netty.buffer.ByteBuf> private longprivate int -
Constructor Summary
ConstructorsConstructorDescriptionUnprotector(ChannelCrypterNetty crypter, io.netty.buffer.ByteBufAllocator alloc) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddUnhandled(io.netty.buffer.ByteBuf in) private voidprivate voiddecodeFrame(io.netty.buffer.ByteBufAllocator alloc, List<Object> out) (package private) voiddestroy()private voidprivate io.netty.buffer.ByteBufhandlePayload(io.netty.buffer.ByteBufAllocator alloc) (package private) void
-
Field Details
-
suffixBytes
private final int suffixBytes -
crypter
-
state
-
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
-
-
Constructor Details
-
Unprotector
Unprotector(ChannelCrypterNetty crypter, io.netty.buffer.ByteBufAllocator alloc)
-
-
Method Details
-
addUnhandled
private void addUnhandled(io.netty.buffer.ByteBuf in) -
unprotect
void unprotect(io.netty.buffer.ByteBuf in, List<Object> out, io.netty.buffer.ByteBufAllocator alloc) throws GeneralSecurityException - Throws:
GeneralSecurityException
-
decodeFrame
private void decodeFrame(io.netty.buffer.ByteBufAllocator alloc, List<Object> out) throws GeneralSecurityException - Throws:
GeneralSecurityException
-
handleHeader
private void handleHeader() -
handlePayload
private io.netty.buffer.ByteBuf handlePayload(io.netty.buffer.ByteBufAllocator alloc) throws GeneralSecurityException - Throws:
GeneralSecurityException
-
clearState
private void clearState() -
destroy
void destroy()
-