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.
initialResponse =
The initial response to be returned by the dummy SASL mechanism or None. (type: unicode.)
def setMechanism(self):

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.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.