Class BareSaslResponse

java.lang.Object
io.kroxylicious.proxy.frame.BareSaslResponse
All Implemented Interfaces:
Frame, ResponseFrame

public class BareSaslResponse extends Object implements ResponseFrame
Ancient versions of Kafka implemented SASL/GSSAPI by sending the response on the wire as length prefixed bytes (no Kafka protocol header). This frame represents those kinds of response.
  • Constructor Details

    • BareSaslResponse

      public BareSaslResponse(byte[] bytes)
  • Method Details

    • estimateEncodedSize

      public int estimateEncodedSize()
      Description copied from interface: Frame
      Estimate the expected encoded size in bytes of this Frame.
      In particular, written data by Frame.encode(ByteBufAccessor) should be the same as reported by this method.
      Specified by:
      estimateEncodedSize in interface Frame
    • encode

      public void encode(ByteBufAccessor out)
      Description copied from interface: Frame
      Write the frame, including the size prefix, to the given buffer
      Specified by:
      encode in interface Frame
      Parameters:
      out - The output buffer
    • correlationId

      public int correlationId()
      Description copied from interface: Frame
      The correlation id.
      Specified by:
      correlationId in interface Frame
      Returns:
      The correlation id.
    • apiKeyId

      public short apiKeyId()
      Description copied from interface: Frame
      Api key id of this frame.
      Specified by:
      apiKeyId in interface Frame
    • apiVersion

      public short apiVersion()
      Description copied from interface: Frame
      Api version of this frame.
      Specified by:
      apiVersion in interface Frame
    • isDecoded

      public boolean isDecoded()
      Description copied from interface: Frame
      true if this frame is decoded, false otherwise
      Specified by:
      isDecoded in interface Frame
    • bytes

      public byte[] bytes()