private static final class FanOutOneBlockAsyncDFSOutputSaslHelper.EncryptHandler extends org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.crypto.Encryptor |
encryptor |
Constructor and Description |
---|
EncryptHandler(org.apache.hadoop.crypto.CryptoCodec codec,
byte[] key,
byte[] iv) |
Modifier and Type | Method and Description |
---|---|
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) |
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) |
acceptOutboundMessage, isPreferDirect, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
private final org.apache.hadoop.crypto.Encryptor encryptor
public EncryptHandler(org.apache.hadoop.crypto.CryptoCodec codec, byte[] key, byte[] iv) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
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
allocateBuffer
in class org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
Exception
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
encode
in class org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.