Class: XMPPSimple::PlainAuth
- Inherits:
-
AuthMechanism
- Object
- BaseStanza
- AuthMechanism
- XMPPSimple::PlainAuth
- Defined in:
- lib/xmpp_simple/stanzas/plain_auth.rb
Constant Summary collapse
- MECHANISM =
'PLAIN'.freeze
Constants inherited from AuthMechanism
Class Method Summary collapse
Class Method Details
.create(jid, password) ⇒ Object
5 6 7 8 9 |
# File 'lib/xmpp_simple/stanzas/plain_auth.rb', line 5 def self.create(jid, password) super() @node.content = ["\x00#{jid}\x00#{password}"].pack('m').tr("\n", '') @node end |