Helpers for SASL authentication (RFC2222)
You might not need to use them directly, they are invoked by Jabber::Client#auth
Factory function to obtain a SASL helper for the specified mechanism
# File lib/xmpp4r/sasl.rb, line 19 def SASL.new(stream, mechanism) case mechanism when 'DIGEST-MD5' DigestMD5.new(stream) when 'PLAIN' Plain.new(stream) when 'ANONYMOUS' Anonymous.new(stream) else raise "Unknown SASL mechanism: #{mechanism}" end end