Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/cred/__pycache__/credentials.cpython-39.pyc
Ðазад
a k�hC@ � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl mZmZ ddl mZ ddlmZmZmZ ddlmZmZ dd lmZ dd lmZ ddlmZ G dd � d e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Z eee�G dd� d��Z!G dd� d�Z"ee�G dd� d��Z#ee�G dd� d��Z$ee�G dd� d��Z%ee �G d d!� d!��Z&G d"d#� d#e�Z'ee'�G d$d%� d%��Z(dS )&z� This module defines L{ICredentials}, an interface for objects that represent authentication credentials to provide, and also includes a number of useful implementations of that interface. � N)�hexlify)�md5)� Interface�implementer)�error)�calcHA1�calcHA2�calcResponse)�nativeString� networkString)�deprecatedModuleAttribute)�secureRandom)�Versionc @ s e Zd ZdZdS )�ICredentialsz� I check credentials. Implementors I{must} specify the sub-interfaces of ICredentials to which it conforms, using L{zope.interface.implementer}. N��__name__� __module__�__qualname__�__doc__� r r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/cred/credentials.pyr s r c @ s e Zd ZdZdd� ZdS )�IUsernameDigestHashz� This credential is used when a CredentialChecker has access to the hash of the username:realm:password as in an Apache .htdigest file. c C s dS )a- @param digestHash: The hashed username:realm:password to check against. @return: C{True} if the credentials represented by this object match the given hash, C{False} if they do not, or a L{Deferred} which will be called back with one of these values. Nr )� digestHashr r r � checkHash- s zIUsernameDigestHash.checkHashN)r r r r r r r r r r '