File: //home/arjun/projects/env/lib/python3.10/site-packages/amqp/__pycache__/sasl.cpython-310.pyc
o
%web � @ s� d Z ddlZddlZddlmZ ddlmZ G dd� d�ZG dd� de�ZG d d
� d
e�Z dd� Z
e
� ZG d
d� de�ZG dd� de�Z
dS )z(SASL mechanisms for AMQP authentication.� N)�BytesIO)�_write_tablec @ s$ e Zd ZdZedd� �Zdd� ZdS )�SASLz�The base class for all amqp SASL authentication mechanisms.
You should sub-class this if you're implementing your own authentication.
c C � t �)z2Return a bytes containing the SASL mechanism name.��NotImplementedError��self� r
�B/home/arjun/projects/env/lib/python3.10/site-packages/amqp/sasl.py� mechanism s zSASL.mechanismc C r )z@Return the first response to a SASL challenge as a bytes object.r �r �
connectionr
r
r �start s z
SASL.startN)�__name__�
__module__�__qualname__�__doc__�propertyr r r
r
r
r r
s
r c @ �( e Zd ZdZdZdd� ZdZdd� ZdS ) �PLAINzbPLAIN SASL authentication mechanism.
See https://tools.ietf.org/html/rfc4616 for details
s PLAINc C � ||| _ | _d S �N��username�password�r r r r
r
r �__init__"