Class: SASL::Plain

Inherits:
Mechanism show all
Defined in:
lib/sasl/plain.rb

Overview

Instance Attribute Summary

Attributes inherited from Mechanism

#mechanism, #preferences

Instance Method Summary collapse

Methods inherited from Mechanism

#failure?, #initialize, #receive, #success?

Constructor Details

This class inherits a constructor from SASL::Mechanism

Instance Method Details

#startObject



6
7
8
9
10
11
12
# File 'lib/sasl/plain.rb', line 6

def start
  @state = nil
  message = [preferences.authzid.to_s,
             preferences.username,
             preferences.password].join("\000")
  ['auth', message]
end