![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/twisted/cred/__pycache__/ |
o �bC@ � @ 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 @ � 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 �:/usr/lib/python3/dist-packages/twisted/cred/credentials.pyr � r c @ � 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 � 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- � zIUsernameDigestHash.checkHashN)r r r r r r r r r r '