Package xmpp :: Module auth :: Class NonSASL
[show private | hide private]
[frames | no frames]

Class NonSASL

PlugIn --+
         |
        NonSASL


Implements old Non-SASL (JEP-0078) authentication used in jabberd1.4 and transport authentication.
Method Summary
  __init__(self, user, password, resource)
Caches username, password and resource for auth.
  authComponent(self, owner)
Authenticate component.
  handshakeHandler(self, disp, stanza)
Handler for registering in dispatcher for accepting transport authentication.
  plugin(self, owner)
Determine the best auth method (digest/0k/plain) and use it for auth.
    Inherited from PlugIn
  DEBUG(self, text, severity)
Feed a provided debug line to main instance's debug facility along with our ID string.
  PlugIn(self, owner)
Attach to main instance and register ourself and all our staff in it.
  PlugOut(self)
Unregister all our staff from main instance and detach from it.

Method Details

__init__(self, user, password, resource)
(Constructor)

Caches username, password and resource for auth.
Overrides:
xmpp.client.PlugIn.__init__

authComponent(self, owner)

Authenticate component. Send handshake stanza and wait for result. Returns "ok" on success.

handshakeHandler(self, disp, stanza)

Handler for registering in dispatcher for accepting transport authentication.

plugin(self, owner)

Determine the best auth method (digest/0k/plain) and use it for auth. Returns used method name on success. Used internally.

Generated by Epydoc 2.1 on Mon Mar 6 14:11:54 2006 http://epydoc.sf.net