Module t.w.p.j.xmlstream

Part of twisted.words.protocols.jabber View Source

XMPP XML Streams

Building blocks for setting up XML Streams, including helping classes for doing authentication on either client or server side, and working with XML Stanzas.
Function hashPassword Create a SHA1-digest string of a session identifier and password.
Class Authenticator Base class for business logic of initializing an XmlStream
Class ConnectAuthenticator Authenticator for initiating entities.
Class FeatureNotAdvertized Exception indicating a stream feature was not advertized, while required by
Class BaseFeatureInitiatingInitializer Base class for initializers with a stream feature.
Class TLSError TLS base exception.
Class TLSFailed Exception indicating failed TLS negotiation
Class TLSRequired Exception indicating required TLS negotiation.
Class TLSNotSupported Exception indicating missing TLS support.
Class TLSInitiatingInitializer TLS stream initializer for the initiating entity.
Class XmlStream XMPP XML Stream protocol handler.
Class XmlStreamFactory No class docstring; 1/2 methods documented
Class TimeoutError Exception raised when no IQ response has been received before the
Function upgradeWithIQResponseTracker Enhances an XmlStream for iq response tracking.
Class IQ Wrapper for an iq stanza.
def hashPassword(sid, password): (source)
Create a SHA1-digest string of a session identifier and password.
def upgradeWithIQResponseTracker(xs): (source)

Enhances an XmlStream for iq response tracking.

This makes an XmlStream object provide IIQResponseTracker. When a response is an error iq stanza, the deferred has its errback invoked with a failure that holds a StanzaException that is easier to examine.
API Documentation for twisted, generated by pydoctor.