Module Expr Str ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Str attr body If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str If CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad body Raise Call NameLoad TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Call NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore TupleLoad NameLoad Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad orelse If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad orelse If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Str Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BoolOpOr Call NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TryExcept body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list decorator_list
N/A N/A 
XMPP-specific SASL profile.
 base64 b64decode b64encode N/A re twisted.internet defer twisted.words.protocols.jabber sasl_mechanisms xmlstream twisted.words.xish domish N/A NS_XMPP_SASL urn:ietf:params:xml:ns:xmpp-sasl get_mechanisms N/A N/A xs N/A N/A N/A 
    Parse the SASL feature to extract the available mechanism names.
     N/A mechanisms N/A N/A element N/A N/A N/A N/A xs features N/A N/A NS_XMPP_SASL mechanisms elements N/A N/A N/A N/A element name mechanism N/A N/A N/A N/A mechanisms append N/A str element N/A mechanisms N/A SASLError N/A Exception N/A N/A 
    SASL base exception.
     N/A SASLNoAcceptableMechanism N/A SASLError N/A N/A 
    The server did not present an acceptable SASL mechanism.
     N/A SASLAuthError N/A SASLError N/A N/A 
    SASL Authentication failed.
     __init__ N/A N/A self condition N/A None N/A N/A N/A self condition condition N/A __str__ N/A N/A self N/A N/A N/A N/A SASLAuthError with condition %r N/A self condition N/A N/A SASLIncorrectEncodingError N/A SASLError N/A N/A 
    SASL base64 encoding was incorrect.

    RFC 3920 specifies that any characters not in the base64 alphabet
    and padding characters present elsewhere than at the end of the string
    MUST be rejected. See also L{fromBase64}.

    This exception is raised whenever the encoded string does not adhere
    to these additional restrictions or when the decoding itself fails.

    The recommended behaviour for so-called receiving entities (like servers in
    client-to-server connections, see RFC 3920 for terminology) is to fail the
    SASL negotiation with a C{'incorrect-encoding'} condition. For initiating
    entities, one should assume the receiving entity to be either buggy or
    malevolent. The stream should be terminated and reconnecting is not
    advised.
     N/A N/A base64Pattern N/A N/A re compile ^[0-9A-Za-z+/]*[0-9A-Za-z+/=]{,2}$ fromBase64 N/A N/A s N/A N/A N/A 
    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.
     N/A N/A N/A N/A base64Pattern match s None N/A N/A N/A SASLIncorrectEncodingError N/A N/A N/A N/A b64decode s N/A N/A N/A Exception N/A e N/A N/A N/A SASLIncorrectEncodingError N/A str e N/A SASLInitiatingInitializer N/A N/A xmlstream BaseFeatureInitiatingInitializer N/A N/A 
    Stream initializer that performs SASL authentication.

    The supported mechanisms by this initializer are C{DIGEST-MD5}, C{PLAIN}
    and C{ANONYMOUS}. The C{ANONYMOUS} SASL mechanism is used when the JID, set
    on the authenticator, does not have a localpart (username), requesting an
    anonymous session where the username is generated by the server.
    Otherwise, C{DIGEST-MD5} and C{PLAIN} are attempted, in that order.
     N/A feature N/A NS_XMPP_SASL mechanisms N/A _deferred None setMechanism N/A N/A self N/A N/A N/A 
        Select and setup authentication mechanism.

        Uses the authenticator's C{jid} and C{password} attribute for the
        authentication credentials. If no supported SASL mechanisms are
        advertized by the receiving party, a failing deferred is returned with
        a L{SASLNoAcceptableMechanism} exception.
         N/A jid N/A N/A N/A self xmlstream authenticator jid N/A password N/A N/A N/A self xmlstream authenticator password N/A mechanisms N/A get_mechanisms N/A self xmlstream N/A N/A N/A jid user None N/A N/A N/A DIGEST-MD5 mechanisms N/A N/A N/A self mechanism N/A N/A sasl_mechanisms DigestMD5 xmpp N/A jid host None N/A jid user password N/A N/A N/A PLAIN mechanisms N/A N/A N/A self mechanism N/A N/A sasl_mechanisms Plain None N/A jid user password N/A N/A N/A SASLNoAcceptableMechanism N/A N/A N/A ANONYMOUS mechanisms N/A N/A N/A self mechanism N/A N/A sasl_mechanisms Anonymous N/A N/A N/A SASLNoAcceptableMechanism N/A start N/A N/A self N/A N/A N/A 
        Start SASL authentication exchange.
         N/A N/A N/A self setMechanism N/A N/A self _deferred N/A N/A defer Deferred N/A N/A N/A N/A self xmlstream addObserver /challenge N/A self onChallenge N/A N/A N/A N/A self xmlstream addOnetimeObserver /success N/A self onSuccess N/A N/A N/A N/A self xmlstream addOnetimeObserver /failure N/A self onFailure N/A N/A N/A self sendAuth N/A N/A N/A self mechanism getInitialResponse N/A N/A self _deferred N/A sendAuth N/A N/A self data N/A None N/A N/A 
        Initiate authentication protocol exchange.

        If an initial client response is given in C{data}, it will be
        sent along.

        @param data: initial client response.
        @type data: C{str} or C{None}.
         N/A auth N/A N/A domish Element N/A NS_XMPP_SASL auth N/A N/A auth N/A mechanism N/A N/A self mechanism name N/A N/A data None N/A N/A N/A N/A auth addContent N/A N/A b64encode data = N/A N/A N/A N/A self xmlstream send auth N/A sendResponse N/A N/A self data N/A N/A N/A 
        Send response to a challenge.

        @param data: client response.
        @type data: C{str}.
         N/A response N/A N/A domish Element N/A NS_XMPP_SASL response N/A data N/A N/A N/A N/A response addContent N/A b64encode data N/A N/A N/A N/A self xmlstream send response N/A onChallenge N/A N/A self element N/A N/A N/A 
        Parse challenge and send response from the mechanism.

        @param element: the challenge protocol element.
        @type element: L{domish.Element}.
         N/A N/A N/A challenge N/A fromBase64 N/A str element N/A N/A N/A SASLIncorrectEncodingError N/A N/A N/A N/A N/A self _deferred errback N/A N/A N/A N/A self sendResponse N/A N/A N/A self mechanism getResponse challenge N/A onSuccess N/A N/A self success N/A N/A N/A 
        Clean up observers, reset the XML stream and send a new header.

        @param success: the success protocol element. For now unused, but
                        could hold additional data.
        @type success: L{domish.Element}
         N/A N/A N/A N/A self xmlstream removeObserver /challenge N/A self onChallenge N/A N/A N/A N/A self xmlstream removeObserver /failure N/A self onFailure N/A N/A N/A N/A self xmlstream reset N/A N/A N/A N/A self xmlstream sendHeader N/A N/A N/A N/A self _deferred callback N/A xmlstream Reset N/A onFailure N/A N/A self failure N/A N/A N/A 
        Clean up observers, parse the failure and errback the deferred.

        @param failure: the failure protocol element. Holds details on
                        the error condition.
        @type failure: L{domish.Element}
         N/A N/A N/A N/A self xmlstream removeObserver /challenge N/A self onChallenge N/A N/A N/A N/A self xmlstream removeObserver /success N/A self onSuccess N/A N/A N/A condition N/A N/A N/A failure firstChildElement name N/A N/A N/A AttributeError N/A N/A condition None N/A N/A N/A N/A self _deferred errback N/A SASLAuthError condition N/A N/A