class Crabbit::PlainSaslAuthenticator

Overview

SASL PLAIN authenticator using a username and password.

Defined in:

crabbit/configuration.cr

Constructors

Instance Method Summary

Instance methods inherited from class Crabbit::SaslAuthenticator

challenge(data : Bytes) : Bytes challenge, initial_response : Bytes initial_response, mechanism : String mechanism

Constructor Detail

def self.new(username : String, password : String) #

Creates a PLAIN authenticator.


[View source]

Instance Method Detail

def initial_response : Bytes #

Returns the PLAIN initial response containing the configured credentials.


[View source]
def mechanism : String #

Returns "PLAIN".


[View source]