Class FanOutOneBlockAsyncDFSOutputSaslHelper.EncryptHandler
java.lang.Object
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter
org.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandlerAdapter
org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
org.apache.hadoop.hbase.io.asyncfs.FanOutOneBlockAsyncDFSOutputSaslHelper.EncryptHandler
- All Implemented Interfaces:
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
,org.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandler
- Enclosing class:
- FanOutOneBlockAsyncDFSOutputSaslHelper
private static final class FanOutOneBlockAsyncDFSOutputSaslHelper.EncryptHandler
extends org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler.Sharable
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEncryptHandler
(org.apache.hadoop.crypto.CryptoCodec codec, byte[] key, byte[] iv) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf
allocateBuffer
(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg, boolean preferDirect) protected void
encode
(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf out) Methods inherited from class org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, isPreferDirect, write
Methods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
Methods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Field Details
-
encryptor
-
-
Constructor Details
-
EncryptHandler
public EncryptHandler(org.apache.hadoop.crypto.CryptoCodec codec, byte[] key, byte[] iv) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityException
IOException
-
-
Method Details
-
allocateBuffer
protected org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf allocateBuffer(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg, boolean preferDirect) throws Exception - Overrides:
allocateBuffer
in classorg.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
- Throws:
Exception
-
encode
protected void encode(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf out) throws Exception - Specified by:
encode
in classorg.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
- Throws:
Exception
-