| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/cred/__pycache__/ |
Upload File : |
U
W[$ � @ s� d dl mZmZ d dlZd dlmZmZmZ d dlm Z d dl
mZ d dlm
Z
d dlmZmZ G dd � d e�Zd
Zee�G dd� d��Zee�G d
d� de��Zee�G dd� d��ZeZdS )� )�division�absolute_importN)�implementer� Interface� Attribute)�Logger)�defer)�failure)�error�credentialsc @ s e Zd ZdZed�Zdd� ZdS )�ICredentialsCheckerzB
An object that can check sub-interfaces of ICredentials.
zKA list of sub-interfaces of ICredentials which specifies which I may check.c C s dS )a�
@param credentials: something which implements one of the interfaces in
self.credentialInterfaces.
@return: a Deferred which will fire a string which identifies an
avatar, an empty tuple to specify an authenticated anonymous user
(provided as checkers.ANONYMOUS) or fire a Failure(UnauthorizedLogin).
Alternatively, return the result itself.
@see: L{twisted.cred.credentials}
N� )r r
r
�7/usr/lib/python3/dist-packages/twisted/cred/checkers.py�requestAvatarId s z#ICredentialsChecker.requestAvatarIdN)�__name__�
__module__�__qualname__�__doc__r �credentialInterfacesr r
r
r
r r s
�r r
c @ s e Zd ZejfZdd� ZdS )�AllowAnonymousAccessc C s
t �t�S �N)r �succeed� ANONYMOUS��selfr r
r
r r : s z$AllowAnonymousAccess.requestAvatarIdN)r r r r Z
IAnonymousr r r
r
r
r r 6 s r c @ s<