twisted.words.test.test_jabbersasl.DummySASLInitiatingInitializer(sasl.SASLInitiatingInitializer)
class documentationtwisted.words.test.test_jabbersasl
(View In Hierarchy)
Dummy SASL Initializer for initiating entities.
This hardwires the SASL mechanism to DummySASLMechanism
,
that is instantiated with the value of initialResponse
.
Instance Variable | initialResponse | The initial response to be returned by the dummy SASL mechanism or None . (type: unicode .) |
Method | setMechanism | Select and setup authentication mechanism. |
Inherited from SASLInitiatingInitializer:
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 (via SASLInitiatingInitializer):
Class Variable | feature | tuple of (uri, name) of the stream feature root element. (type: tuple of (str , str )) |
Instance Variable | required | whether the stream feature is required to be advertized by the receiving
entity. (type: bool ) |
Method | __init__ | Undocumented |
Method | initialize | Initiate the initialization. |
None
. (type: unicode
.)
Select and setup authentication mechanism.
Uses the authenticator's jid
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.