Handles XMPP-IM client connection stream.
Both client and server side of the connection is supported. This class handles
client SASL authentication, authorisation and resource binding.
This class is not ready for handling of legacy Jabber servers, as it doesn't
provide legacy authentication.
    |  | 
        
          | __init__(self,
        jid,
        password=None,
        server=None,
        port=None,
        auth_methods= ('sasl:DIGEST-MD5'),
        tls_settings=None,
        keepalive=0,
        owner=None)Initialize the ClientStream object.
 | source code |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  | 
        
          | _try_auth(self) Try to authenticate using the first one of allowed authentication
methods left.
 | source code |  | 
    |  |  | 
    | bool |  | 
    | unicode |  | 
    |  | 
        
          | connect(self,
        server=None,
        port=None) Establish a client connection to a server.
 | source code |  | 
    |  | 
        
          | do_bind(self,
        stanza) Do the resource binding requested by a client connected.
 | source code |  | 
    |  |  | 
    |  |  | 
    | ( unicode,`str`) | 
        
          | get_password(self,
        username,
        realm=None,
        acceptable_formats= ('plain'))Get a user password for the SASL authentication.
 | source code |  | 
    | listofunicode |  | 
    |  |  | 
    |  |  | 
    |  |  | 
  
    | Inherited from streamtls.StreamTLSMixIn:get_tls_connection,tls_default_verify_callback,tls_is_certificate_valid     Inherited from streamtls.StreamTLSMixIn(private):_handle_tls_features,_make_stream_tls_features,_make_tls_connection,_process,_process_node_tls,_process_tls_node,_read,_read_tls,_request_tls,_reset_tls,_write_raw     Inherited from streamsasl.StreamSASLMixIn(private):_handle_sasl_features,_make_stream_sasl_features,_process_node_sasl,_process_sasl_abort,_process_sasl_auth,_process_sasl_challenge,_process_sasl_failure,_process_sasl_node,_process_sasl_response,_process_sasl_success,_reset_sasl,_sasl_authenticate Inherited from sasl.core.PasswordManager:check_password,generate_nonce Inherited from streambase.StreamBase:__del__,bind,check_to,close,connected,disconnect,error,fileno,generate_id,idle,loop,loop_iter,process,process_stream_error,send,stanza,stanza_start,state_change,stream_end,stream_start,write_raw     Inherited from streambase.StreamBase(private):_accept,_bind_error,_bind_success,_close,_connect_socket,_disconnect,_feed_reader,_idle,_loop_iter,_make_reader,_post_auth,_process_stream_node,_restart_stream,_send,_send_stream_end,_send_stream_error,_send_stream_features,_send_stream_start,_write_node Inherited from stanzaprocessor.StanzaProcessor:process_iq,process_message,process_presence,process_response,process_stanza,route_stanza,set_iq_get_handler,set_iq_set_handler,set_message_handler,set_presence_handler,set_response_handlers,unset_iq_get_handler,unset_iq_set_handler |