Package org.apache.hadoop.hbase.security
Class SaslChallengeDecoder
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.handler.codec.ByteToMessageDecoder
org.apache.hadoop.hbase.security.SaslChallengeDecoder
- All Implemented Interfaces:
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
,org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
@Private
public class SaslChallengeDecoder
extends org.apache.hbase.thirdparty.io.netty.handler.codec.ByteToMessageDecoder
Decode the sasl challenge sent by RpcServer.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hbase.thirdparty.io.netty.handler.codec.ByteToMessageDecoder
org.apache.hbase.thirdparty.io.netty.handler.codec.ByteToMessageDecoder.Cumulator
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
Fields inherited from class org.apache.hbase.thirdparty.io.netty.handler.codec.ByteToMessageDecoder
COMPOSITE_CUMULATOR, MERGE_CUMULATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
decode
(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf in, List<Object> out) private org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf
tryDecodeChallenge
(org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf in, int offset, int readableBytes) private void
tryDecodeError
(org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf in, int offset, int readableBytes) Methods inherited from class org.apache.hbase.thirdparty.io.netty.handler.codec.ByteToMessageDecoder
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Methods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
Methods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, 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
handlerAdded
-
Field Details
-
MAX_CHALLENGE_SIZE
- See Also:
-
-
Constructor Details
-
SaslChallengeDecoder
public SaslChallengeDecoder()
-
-
Method Details
-
tryDecodeChallenge
private org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf tryDecodeChallenge(org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf in, int offset, int readableBytes) throws IOException - Throws:
IOException
-
tryDecodeError
private void tryDecodeError(org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf in, int offset, int readableBytes) throws IOException - Throws:
IOException
-
decode
protected void decode(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf in, List<Object> out) throws Exception - Specified by:
decode
in classorg.apache.hbase.thirdparty.io.netty.handler.codec.ByteToMessageDecoder
- Throws:
Exception
-