Handles Jabber (both XMPP and legacy protocol) client connection stream.
Both client and server side of the connection is supported. This class handles
client SASL and legacy authentication, authorisation and XMPP resource binding.
|
__init__(self,
jid,
password=None,
server=None,
port=5222,
auth_methods=( ' sasl:DIGEST-MD5 ' , ' digest ' ) ,
tls_settings=None,
keepalive=0,
owner=None)
Initialize a LegacyClientStream object. |
source code
|
|
|
|
|
|
|
|
|
_try_auth(self)
Try to authenticate using the first one of allowed authentication
methods left. |
source code
|
|
|
auth_in_stage1(self,
stanza)
Handle the first stage (<iq type='get'/>) of legacy ("plain" or
"digest") authentication. |
source code
|
|
|
auth_in_stage2(self,
stanza)
Handle the second stage (<iq type='set'/>) of legacy ("plain" or
"digest") authentication. |
source code
|
|
|
_auth_stage1(self)
Do the first stage (<iq type='get'/>) of legacy ("plain" or
"digest") authentication. |
source code
|
|
|
|
|
|
|
auth_stage2(self,
stanza)
Handle the first stage authentication response (result of the <iq
type="get"/>). |
source code
|
|
|
|
|
|
|
|
|
|
|
auth_finish(self,
_unused)
Handle success of the legacy authentication. |
source code
|
|
|
|
|
|
|
|
|
|
Inherited from clientstream.ClientStream :
accept ,
check_authzid ,
choose_realm ,
connect ,
do_bind ,
fix_in_stanza ,
fix_out_stanza ,
get_password ,
get_realms ,
get_serv_host ,
get_serv_name ,
get_serv_type
Inherited from streamtls.StreamTLSMixIn :
get_tls_connection ,
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 ,
_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
Inherited from xmlextra.StreamHandler :
warning
|