File: //usr/lib/python3/dist-packages/twisted/words/protocols/jabber/__pycache__/client.cpython-38.pyc
U
s�@g.8 � @ s d dl mZmZ d dlmZmZ d dlmZmZm Z d dl
mZ d dlm
Z
mZmZ dZdZdZd Ze�d
�Ze�d�Zdd
� ZG dd� de
j�ZG dd� de�ZG dd� dej�ZG dd� de�ZG dd� dej�Z G dd� dej�Z!ddd�Z"G dd� dej�Z#dS ) � )�absolute_import�division)�_coercedUnicode�unicode)� xmlstream�sasl�error)�JID)�domish�xpath�utilityz#urn:ietf:params:xml:ns:xmpp-streamsz urn:ietf:params:xml:ns:xmpp-bindz#urn:ietf:params:xml:ns:xmpp-sessionz"http://jabber.org/features/iq-authz/iq/query/digestz/iq/query/passwordc C s t | |�}t�|�S �N)�BasicAuthenticatorr �XmlStreamFactory)�jidZsecret�a� r �G/usr/lib/python3/dist-packages/twisted/words/protocols/jabber/client.py�basicClientFactory s
r c @ s4 e Zd ZdZddd�Zdd� Zd
dd �Zd
d� ZdS )�IQa�
Wrapper for a Info/Query packet.
This provides the necessary functionality to send IQs and get notified when
a result comes back. It's a subclass from L{domish.Element}, so you can use
the standard DOM manipulation calls to add data to the outbound request.
@type callbacks: L{utility.CallbackList}
@cvar callbacks: Callback list to be notified when response comes back
�setc C s2 t j�| d� | �� || d<