xmpp.auth.SASL

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

# Class SASL

source code

    client.PlugIn --+
                    |
                   SASL

Implements SASL authentication.

Instance Methods | [hide private]
__init__(self, username, password) | source code
plugin(self, owner) | source code
auth(self) Start authentication. | source code
plugout(self) Remove SASL handlers from owner's dispatcher. | source code
FeaturesHandler(self, conn, feats) Used to determine if server supports SASL auth. | source code
SASLHandler(self, conn, challenge) Perform next SASL auth step. | source code
Inherited from `client.PlugIn`: `DEBUG`, `PlugIn`, `PlugOut`

Method Details | [hide private]

### __init__(self, username, password) (Constructor) | source code
Overrides: client.PlugIn.__init__

### auth(self) | source code
Start authentication. Result can be obtained via "SASL.startsasl" attribute and will be either "success" or "failure". Note that successfull auth will take at least two Dispatcher.Process() calls.

### plugout(self) | source code
Remove SASL handlers from owner's dispatcher. Used internally.

### FeaturesHandler(self, conn, feats) | source code
Used to determine if server supports SASL auth. Used internally.

### SASLHandler(self, conn, challenge) | source code
Perform next SASL auth step. Used internally.