class Kafka::Protocol::SaslHandshakeRequest
def api_key
def api_key SASL_HANDSHAKE_API end
def encode(encoder)
def encode(encoder) encoder.write_string(@mechanism) end
def initialize(mechanism)
def initialize(mechanism) unless SUPPORTED_MECHANISMS.include?(mechanism) raise Kafka::Error, "Unsupported SASL mechanism #{mechanism}. Supported are #{SUPPORTED_MECHANISMS.join(', ')}" end @mechanism = mechanism end
def response_class
def response_class SaslHandshakeResponse end