Part of twisted.words.protocols.jabber.sasl View Source View In Hierarchy
Stream initializer that performs SASL authentication.
The supported mechanisms by this initializer areDIGEST-MD5
and PLAIN
which are attemped in that order.
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:
Method | __init__ | Undocumented |
Method | initialize | Initiate the initialization. |
Select and setup authentication mechanism.
Uses the authenticator'sjid
and password
attribute for the authentication credentials. If no supported SASL
mechanisms are advertized by the receiving party, a failing deferred is
returned with a SASLNoAcceptableMechanism
exception.
Initiate authentication protocol exchange.
If an initial client response is given indata
, it will be
sent along.
Parameters | data | initial client response.
(type: str or None .
) |
Parameters | data | client response.
(type: str .
) |
Parameters | element | the challenge protocol element.
(type: domish.Element .
) |
Parameters | success | the success protocol element. For now unused, but could hold additional
data.
(type: domish.Element
) |
Parameters | failure | the failure protocol element. Holds details on the error condition.
(type: domish.Element
) |