Package io.kroxylicious.proxy.frame
Class BareSaslResponse
java.lang.Object
io.kroxylicious.proxy.frame.BareSaslResponse
- All Implemented Interfaces:
Frame,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.
-
Field Summary
Fields inherited from interface io.kroxylicious.proxy.frame.Frame
FRAME_SIZE_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortapiKeyId()Api key id of this frame.shortApi version of this frame.byte[]bytes()intThe correlation id.voidencode(ByteBufAccessor out) Write the frame, including the size prefix, to the given bufferintEstimate the expected encoded size in bytes of thisFrame.
In particular, written data byFrame.encode(ByteBufAccessor)should be the same as reported by this method.booleantrue if this frame is decoded, false otherwise
-
Constructor Details
-
BareSaslResponse
public BareSaslResponse(byte[] bytes)
-
-
Method Details
-
estimateEncodedSize
public int estimateEncodedSize()Description copied from interface:FrameEstimate the expected encoded size in bytes of thisFrame.
In particular, written data byFrame.encode(ByteBufAccessor)should be the same as reported by this method.- Specified by:
estimateEncodedSizein interfaceFrame
-
encode
Description copied from interface:FrameWrite the frame, including the size prefix, to the given buffer -
correlationId
public int correlationId()Description copied from interface:FrameThe correlation id.- Specified by:
correlationIdin interfaceFrame- Returns:
- The correlation id.
-
apiKeyId
public short apiKeyId()Description copied from interface:FrameApi key id of this frame. -
apiVersion
public short apiVersion()Description copied from interface:FrameApi version of this frame.- Specified by:
apiVersionin interfaceFrame
-
isDecoded
public boolean isDecoded()Description copied from interface:Frametrue if this frame is decoded, false otherwise -
bytes
public byte[] bytes()
-