Package org.apache.thrift.transport.sasl
Class SaslNegotiationHeaderReader
java.lang.Object
org.apache.thrift.transport.sasl.FixedSizeHeaderReader
org.apache.thrift.transport.sasl.SaslNegotiationHeaderReader
- All Implemented Interfaces:
FrameHeaderReader
Header for sasl negotiation frames. It contains status byte of negotiation and a 4-byte integer
(payload size).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class org.apache.thrift.transport.sasl.FixedSizeHeaderReader
byteBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected voidActions (e.g.intAs the thrift sasl specification states, all sasl messages (both for negotiatiing and for sending data) should have a header to indicate the size of the payload.Methods inherited from class org.apache.thrift.transport.sasl.FixedSizeHeaderReader
clear, isComplete, read, toBytes
-
Field Details
-
STATUS_BYTES
public static final int STATUS_BYTES- See Also:
-
PAYLOAD_LENGTH_BYTES
public static final int PAYLOAD_LENGTH_BYTES- See Also:
-
-
Constructor Details
-
SaslNegotiationHeaderReader
public SaslNegotiationHeaderReader()
-
-
Method Details
-
headerSize
protected int headerSize()- Specified by:
headerSizein classFixedSizeHeaderReader- Returns:
- Size of the header.
-
onComplete
Description copied from class:FixedSizeHeaderReaderActions (e.g. validation) to carry out when the header is complete.- Specified by:
onCompletein classFixedSizeHeaderReader- Throws:
TSaslNegotiationException
-
payloadSize
public int payloadSize()Description copied from interface:FrameHeaderReaderAs the thrift sasl specification states, all sasl messages (both for negotiatiing and for sending data) should have a header to indicate the size of the payload.- Returns:
- size of the payload.
-
getStatus
-