Module | Jabber::SASL |
In: |
lib/xmpp4r/sasl.rb
|
Helpers for SASL authentication (RFC2222)
You might not need to use them directly, they are invoked by Jabber::Client#auth
NS_SASL | = | 'urn:ietf:params:xml:ns:xmpp-sasl' |
Factory function to obtain a SASL helper for the specified mechanism
# File lib/xmpp4r/sasl.rb, line 15 15: def SASL::new(stream, mechanism) 16: case mechanism 17: when 'DIGEST-MD5' 18: DigestMD5.new(stream) 19: when 'PLAIN' 20: Plain.new(stream) 21: else 22: raise "Unknown SASL mechanism: #{mechanism}" 23: end 24: end