twisted.words.protocols.jabber.saslView Source (View In Hierarchy)
Stream initializer that performs SASL authentication.
The supported mechanisms by this initializer are
ANONYMOUS SASL mechanism is used when the JID, set on the
authenticator, does not have a localpart (username), requesting an
anonymous session where the username is generated by the server. Otherwise,
PLAIN are attempted, in that
|Method||setMechanism||Select and setup authentication mechanism.|
|Method||start||Start SASL authentication exchange.|
|Method||sendAuth||Initiate authentication protocol exchange.|
|Method||sendResponse||Send response to a challenge.|
|Method||onChallenge||Parse challenge and send response from the mechanism.|
|Method||onSuccess||Clean up observers, reset the XML stream and send a new header.|
|Method||onFailure||Clean up observers, parse the failure and errback the deferred.|
Inherited from BaseFeatureInitiatingInitializer:
|Class Variable||feature||tuple of (uri, name) of the stream feature root element. (type: tuple of (
|Instance Variable||required||whether the stream feature is required to be advertized by the receiving
|Method||initialize||Initiate the initialization.|
Select and setup authentication mechanism.
Uses the authenticator's
attribute for the authentication credentials. If no supported SASL
mechanisms are advertized by the receiving party, a failing deferred is
returned with a
Start SASL authentication exchange.
Initiate authentication protocol exchange.
If an initial client response is given in
data, it will be
|Parameters||data||initial client response. (type: |
Send response to a challenge.
|Parameters||data||client response. (type: |
Parse challenge and send response from the mechanism.
|Parameters||element||the challenge protocol element. (type: |
Clean up observers, reset the XML stream and send a new header.
|Parameters||success||the success protocol element. For now unused, but could hold additional
data. (type: |