Part of twisted.words.protocols.jabber.xmlstream View Source View In Hierarchy
Known subclasses: twisted.words.protocols.jabber.client.BasicAuthenticator, twisted.words.protocols.jabber.client.XMPPAuthenticator, twisted.words.protocols.jabber.component.ConnectComponentAuthenticator
Method | __init__ | Undocumented |
Method | connectionMade | Called by the XmlStream when the underlying socket connection is in place. |
Method | initializeStream | Perform stream initialization procedures. |
Method | streamStarted | Called by the XmlStream when the stream has started. |
Inherited from Authenticator:
Method | associateWithStream | Called by the XmlStreamFactory when a connection has been made to the requested peer, and an XmlStream object has been instantiated. |
Called by the XmlStream when the underlying socket connection is in place.
This allows the Authenticator to send an initial root element, if it's connecting, or wait for an inbound root from the peer if it's accepting the connection.
Subclasses can use self.xmlstream.send() to send any initial data to the peer.Perform stream initialization procedures.
An XmlStream
holds a list of initializer objects in its initializers
attribute. This method calls these initializers in order and dispatches the
STREAM_AUTHD_EVENT
event when the list has been successfully
processed. Otherwise it dispatches the INIT_FAILED_EVENT
event
with the failure.
Reset
object to halt
the initialization processing. It signals that the current initializer was
successfully processed, but that the XML Stream has been reset. An example
is the TLSInitiatingInitializer.
Called by the XmlStream when the stream has started.
This extendsAuthenticator.streamStarted
to extract further stream headers from rootElement
, optionally
wait for stream features being received and then call
initializeStream
.