Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/cred/__pycache__/strcred.cpython-39.pyc
Ðазад
a k�h� � @ s� d Z ddlZddlmZmZmZ ddlmZmZ ddl m Z ddlmZ G dd� de�Z G d d � d e�ZG dd� de�ZG d d� de�ZG dd� de�ZdZdd� Zdd� Zdd� ZG dd� d�ZdS )z� Support for resolving command-line strings that represent different checkers available to cred. Examples: - passwd:/etc/passwd - memory:admin:asdf:user:lkj - unix � N)�Optional�Sequence�Type)� Attribute� Interface)� getPlugins)�usagec @ s8 e Zd ZdZed�Zed�Zed�Zed�Zdd� Z dS ) �ICheckerFactoryz� A factory for objects which provide L{twisted.cred.checkers.ICredentialsChecker}. It's implemented by twistd plugins creating checkers. z0A tag that identifies the authentication method.zmA detailed (potentially multi-line) description of precisely what functionality this CheckerFactory provides.z=A short (one-line) description of the argument string format.z@A list of credentials interfaces that this factory will support.c C s dS )z} Return an L{twisted.cred.checkers.ICredentialsChecker} provider using the supplied argument string. N� )� argstringr r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/cred/strcred.py�generateChecker2 s zICheckerFactory.generateCheckerN) �__name__� __module__�__qualname__�__doc__r �authType�authHelp�argStringFormat�credentialInterfacesr r r r r r s ���r c @ s e Zd ZdZdS )�StrcredExceptionz+ Base exception class for strcred. N�r r r r r r r r r 9 s r c @ s e Zd ZdZdS )�InvalidAuthTypezv Raised when a user provides an invalid identifier for the authentication plugin (known as the authType). Nr r r r r r ? s r c @ s e Zd ZdZdS )�InvalidAuthArgumentStringzl Raised by an authentication plugin when the argument string provided is formatted incorrectly. Nr r r r r r F s r c @ s e Zd ZdZdS )�UnsupportedInterfacesz� Raised when an application is given a checker to use that does not provide any of the application's supported credentials interfaces. Nr r r r r r M s r z<WARNING: This authType is not supported by this application.c C s t t�S )z= Find all objects that implement L{ICheckerFactory}. )r r r r r r �findCheckerFactoriesY s r c C s* t � D ]}|j| kr| S qt| ��dS )zJ Find the first checker factory that supports the given authType. N)r r r )r �factoryr r r �findCheckerFactory` s r c C s0 d| v r| � dd�\}}n| }d}t|��|�S )z� Returns an L{twisted.cred.checkers.ICredentialsChecker} based on the contents of a descriptive string. Similar to L{twisted.application.strports}. �:� � )�splitr r )�descriptionr r r r r �makeCheckerj s r# c @ sh e Zd ZU dZdZeeee e d<