@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,
AuthMethod method,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token,
String serverPrincipal,
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, channelRead
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerRemoved, isSharable
private 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, AuthMethod method, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, String serverPrincipal, boolean fallbackAllowed, org.apache.hadoop.conf.Configuration conf) throws IOException
saslPromise
- true
if success, false
if server tells us to fallback to
simple.IOException
private 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.ChannelHandler
handlerAdded
in class org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter
protected 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>
Exception
public void channelInactive(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive
in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
channelInactive
in class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void exceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
exceptionCaught
in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
exceptionCaught
in class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.