Package org.apache.hadoop.hbase.security
Class NettyHBaseRpcConnectionHeaderHandler
java.lang.Object
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter
org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
org.apache.hbase.thirdparty.io.netty.channel.SimpleChannelInboundHandler<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
org.apache.hadoop.hbase.security.NettyHBaseRpcConnectionHeaderHandler
- All Implemented Interfaces:
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler,org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
@Private
public class NettyHBaseRpcConnectionHeaderHandler
extends org.apache.hbase.thirdparty.io.netty.channel.SimpleChannelInboundHandler<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
Implement logic to deal with the rpc connection header.
- Since:
- 2.0.0
-
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
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configurationprivate final org.apache.hbase.thirdparty.io.netty.buffer.ByteBufprivate final org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Boolean> -
Constructor Summary
ConstructorsConstructorDescriptionNettyHBaseRpcConnectionHeaderHandler(org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Boolean> saslPromise, org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf connectionHeaderWithLength) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchannelRead0(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg) voidexceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Throwable cause) voidhandlerAdded(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) private voidsetupCryptoAESHandler(org.apache.hbase.thirdparty.io.netty.channel.ChannelPipeline p, CryptoAES cryptoAES) Remove handlers for sasl encryption and add handlers for Crypto AES encryptionMethods inherited from class org.apache.hbase.thirdparty.io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
handlerRemoved
-
Field Details
-
saslPromise
-
conf
-
connectionHeaderWithLength
-
-
Constructor Details
-
NettyHBaseRpcConnectionHeaderHandler
public NettyHBaseRpcConnectionHeaderHandler(org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Boolean> saslPromise, org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf connectionHeaderWithLength)
-
-
Method Details
-
channelRead0
protected void channelRead0(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg) throws Exception - Specified by:
channelRead0in classorg.apache.hbase.thirdparty.io.netty.channel.SimpleChannelInboundHandler<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>- Throws:
Exception
-
handlerAdded
- Specified by:
handlerAddedin interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelHandler- Overrides:
handlerAddedin classorg.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter
-
exceptionCaught
public void exceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Throwable cause) - Specified by:
exceptionCaughtin interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
-
setupCryptoAESHandler
private void setupCryptoAESHandler(org.apache.hbase.thirdparty.io.netty.channel.ChannelPipeline p, CryptoAES cryptoAES) Remove handlers for sasl encryption and add handlers for Crypto AES encryption
-