module Jabber::SASL
**************************************************************************** Helpers for SASL
authentication (RFC2222)
You might not need to use them directly, they are invoked by Jabber::Client#auth
****************************************************************************
Public Class Methods
new(stream, mechanism)
click to toggle source
Factory function to obtain a SASL
helper for the specified mechanism
# File lib/kinokero/sasl_xoauth2.rb, line 68 def SASL.new(stream, mechanism) case mechanism when MECHANISM_XOAUTH2 # added for the override Xoauth2.new(stream) when 'DIGEST-MD5' DigestMD5.new(stream) when 'PLAIN' Plain.new(stream) when 'ANONYMOUS' Anonymous.new(stream) else raise "Unknown SASL mechanism: #{mechanism}" end # case end