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 ChannelCrypterNetty
private io.netty.buffer.ByteBuf
private io.netty.buffer.ByteBuf
private int
private final int
private List
<io.netty.buffer.ByteBuf> private long
private int
-
Constructor Summary
ConstructorsConstructorDescriptionUnprotector
(ChannelCrypterNetty crypter, io.netty.buffer.ByteBufAllocator alloc) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addUnhandled
(io.netty.buffer.ByteBuf in) private void
private void
decodeFrame
(io.netty.buffer.ByteBufAllocator alloc, List<Object> out) (package private) void
destroy()
private void
private io.netty.buffer.ByteBuf
handlePayload
(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()
-