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
    Modifier and Type
    Field
    Description
    private static final int
     

    Fields inherited from class org.apache.hbase.thirdparty.io.netty.handler.codec.ByteToMessageDecoder

    COMPOSITE_CUMULATOR, MERGE_CUMULATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

  • Constructor Details

  • 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 class org.apache.hbase.thirdparty.io.netty.handler.codec.ByteToMessageDecoder
      Throws:
      Exception