File: //usr/local/CyberCP/lib/python3.10/site-packages/paramiko/__pycache__/auth_strategy.cpython-310.pyc
o
�h�, � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ G dd� d�Z G d d
� d
e �Z
G dd� de �ZG d
d� de �ZG dd� de�Z
G dd� de�Zedddg�ZG dd� de�ZG dd� de�ZG dd� d�ZdS )z�
Modern, adaptable authentication machinery.
Replaces certain parts of `.SSHClient`. For a concrete implementation, see the
``OpenSSHAuthStrategy`` class in `Fabric <https://fabfile.org>`_.
� )�
namedtuple� )�AgentKey)�
get_logger)�AuthenticationExceptionc @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
S )�
AuthSourcez�
Some SSH authentication source, such as a password, private key, or agent.
See subclasses in this module for concrete implementations.
All implementations must accept at least a ``username`` (``str``) kwarg.
c C �
|| _ d S �N��username)�selfr � r
�I/usr/local/CyberCP/lib/python3.10/site-packages/paramiko/auth_strategy.py�__init__ �
zAuthSource.__init__c K s0 dd� |� � D �}d�|�}| jj� d|� d�S )Nc S s g | ]\}}|� d |���qS )�=r
)�.0�k�vr
r
r �
<listcomp> s z$AuthSource._repr.<locals>.<listcomp>z, �(�))�items�join� __class__�__name__)r �kwargs�pairs�joinedr
r
r �_repr s
zAuthSource._reprc C s | � � S r )r �r r
r
r �__repr__"