| Server IP : 195.114.193.97 / Your IP : 216.73.217.93 Web Server : LiteSpeed System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64 User : sembi4241 ( 1126) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/cred/__pycache__/ |
Upload File : |
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 '