Package xmpp :: Module auth :: Class NonSASL

[hide private]
[frames] | no frames]

# Class NonSASL

source code

    client.PlugIn --+
                    |
                   NonSASL

Implements old Non-SASL (JEP-0078) authentication used in jabberd1.4 and transport authentication.

Instance Methods | [hide private]

__init__(self, user, password, resource) Caches username, password and resource for auth. | source code

plugin(self, owner) Determine the best auth method (digest/0k/plain) and use it for auth. | source code

authComponent(self, owner) Authenticate component. | source code

handshakeHandler(self, disp, stanza) Handler for registering in dispatcher for accepting transport authentication. | source code

Inherited from `client.PlugIn`: `DEBUG`, `PlugIn`, `PlugOut`

Method Details | [hide private]

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

source code

Caches username, password and resource for auth.

Overrides: client.PlugIn.__init__

### plugin(self, owner)

source code

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

### authComponent(self, owner)

source code

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