t.w.p.j.sasl : module documentation

Part of twisted.words.protocols.jabber View Source

XMPP-specific SASL profile.
Function b64encode Undocumented
Function get_mechanisms Parse the SASL feature to extract the available mechanism names.
Class SASLError SASL base exception.
Class SASLNoAcceptableMechanism The server did not present an acceptable SASL mechanism.
Class SASLAuthError SASL Authentication failed.
Class SASLIncorrectEncodingError SASL base64 encoding was incorrect.
Function fromBase64 Decode base64 encoded string.
Class SASLInitiatingInitializer Stream initializer that performs SASL authentication.
def b64encode(s): (source)
Undocumented
def get_mechanisms(xs): (source)
Parse the SASL feature to extract the available mechanism names.
def fromBase64(s): (source)
Decode base64 encoded string.

This helper performs regular decoding of a base64 encoded string, but also rejects any characters that are not in the base64 alphabet and padding occurring elsewhere from the last or last two characters, as specified in section 14.9 of RFC 3920. This safeguards against various attack vectors among which the creation of a covert channel that "leaks" information.

API Documentation for Twisted, generated by pydoctor at 2012-06-04 17:20:01.