Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`words`.`protocols`.`jabber`.`sasl``

module documentation
(source)

XMPP-specific SASL profile.

Class | `SASLInitiatingInitializer` | Stream initializer that performs SASL authentication.
Exception | `SASLAuthError` | SASL Authentication failed.
Exception | `SASLError` | SASL base exception.
Exception | `SASLIncorrectEncodingError` | SASL base64 encoding was incorrect.
Exception | `SASLNoAcceptableMechanism` | The server did not present an acceptable SASL mechanism.
Function | `fromBase64` | Decode base64 encoded string.
Function | `get_mechanisms` | Parse the SASL feature to extract the available mechanism names.
Constant | `NS_XMPP_SASL` | Undocumented
Variable | `base64Pattern` | Undocumented

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.

def get_mechanisms(xs): (source)

Parse the SASL feature to extract the available mechanism names.

NS_XMPP_SASL: `str` = (source)

Undocumented

Value

    'urn:ietf:params:xml:ns:xmpp-sasl'

base64Pattern = (source)

Undocumented