@InterfaceAudience.Private public class NettyHBaseSaslRpcClientHandler extends org.apache.hbase.thirdparty.io.netty.channel.SimpleChannelInboundHandler<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
| Modifier and Type | Field and Description | 
|---|---|
| private org.apache.hadoop.conf.Configuration | conf | 
| private static org.slf4j.Logger | LOG | 
| private boolean | needProcessConnectionHeader | 
| private org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Boolean> | saslPromise | 
| private NettyHBaseSaslRpcClient | saslRpcClient | 
| private org.apache.hadoop.security.UserGroupInformation | ugi | 
| Constructor and Description | 
|---|
| NettyHBaseSaslRpcClientHandler(org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Boolean> saslPromise,
                              org.apache.hadoop.security.UserGroupInformation ugi,
                              SaslClientAuthenticationProvider provider,
                              org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token,
                              InetAddress serverAddr,
                              SecurityInfo securityInfo,
                              boolean fallbackAllowed,
                              org.apache.hadoop.conf.Configuration conf) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | channelInactive(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) | 
| protected void | channelRead0(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx,
            org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg) | 
| void | exceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx,
               Throwable cause) | 
| void | handlerAdded(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) | 
| boolean | isNeedProcessConnectionHeader() | 
| private void | setCryptoAESOption() | 
| private void | tryComplete(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) | 
| private void | writeResponse(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx,
             byte[] response) | 
acceptInboundMessage, channelReadchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerRemoved, isSharableprivate static final org.slf4j.Logger LOG
private final org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Boolean> saslPromise
private final org.apache.hadoop.security.UserGroupInformation ugi
private final NettyHBaseSaslRpcClient saslRpcClient
private final org.apache.hadoop.conf.Configuration conf
private boolean needProcessConnectionHeader
public NettyHBaseSaslRpcClientHandler(org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Boolean> saslPromise, org.apache.hadoop.security.UserGroupInformation ugi, SaslClientAuthenticationProvider provider, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, InetAddress serverAddr, SecurityInfo securityInfo, boolean fallbackAllowed, org.apache.hadoop.conf.Configuration conf) throws IOException
saslPromise - true if success, false if server tells us to fallback to
          simple.IOExceptionprivate void writeResponse(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, byte[] response)
private void tryComplete(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx)
private void setCryptoAESOption()
public boolean isNeedProcessConnectionHeader()
public void handlerAdded(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx)
handlerAdded in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerhandlerAdded in class org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapterprotected void channelRead0(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg) throws Exception
channelRead0 in class org.apache.hbase.thirdparty.io.netty.channel.SimpleChannelInboundHandler<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>Exceptionpublic void channelInactive(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerchannelInactive in class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerexceptionCaught in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerexceptionCaught in class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.