§
    Ètºf  ã                   ó¶   — d Z ddlZddlmZ ddlmZ ddlmZ ddlm	Z	m
Z
 ddlmZ dZd	Z eeej        ¦  «         G d
„ d¦  «        ¦   «         Z e¦   «         ZdS )z;
Cred plugin for a file of the format 'username:password'.
é    N)Úimplementer)Úplugin)ÚFilePasswordDB)ÚIUsernameHashedPasswordÚIUsernamePassword)ÚICheckerFactoryz¶
This checker expects to receive the location of a file that
conforms to the FilePasswordDB format. Each line in the file
should be of the format 'username:password', in plain text.
zWarning: not a valid filec                   ó:   — e Zd ZdZdZeZdZee	fZ
ej        Zd„ ZdS )ÚFileCheckerFactoryz7
    A factory for instances of L{FilePasswordDB}.
    Úfilez,Location of a FilePasswordDB-formatted file.c                 ó  — ddl m} |                     ¦   «         st          d| j        z  ¦  «        ‚ ||¦  «                             ¦   «         s%| j                             t          › d|› d�¦  «         t          |¦  «        S )zÝ
        This checker factory expects to get the location of a file.
        The file should conform to the format required by
        L{FilePasswordDB} (using defaults for all
        initialization parameters).
        r   )ÚFilePathz%r requires a filenamez: ú
)
Útwisted.python.filepathr   ÚstripÚ
ValueErrorÚauthTypeÚisfileÚerrorOutputÚwriteÚinvalidFileWarningr   )ÚselfÚ	argstringr   s      úX/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/plugins/cred_file.pyÚgenerateCheckerz"FileCheckerFactory.generateChecker+   s•   € ð 	5Ð4Ð4Ð4Ð4Ð4à�ŠÑ Ô ð 	KÝÐ5¸¼ÑEÑFÔFÐFØ�˜)Ñ$Ô$×+Ò+Ñ-Ô-ð 	KØÔ×"Ò"Õ&8Ð#IÐ#I¸IÐ#IÐ#IÐ#IÑJÔJÐJÝ˜iÑ(Ô(Ð(ó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚfileCheckerFactoryHelpÚauthHelpÚargStringFormatr   r   ÚcredentialInterfacesÚsysÚstderrr   r   © r   r   r
   r
      sQ   € € € € € ðð ð €HØ%€HØD€Oà-Ð/FÐGÐà”*€Kð)ð )ð )ð )ð )r   r
   )r   r$   Úzope.interfacer   Útwistedr   Útwisted.cred.checkersr   Útwisted.cred.credentialsr   r   Útwisted.cred.strcredr   r    r   ÚIPluginr
   ÚtheFileCheckerFactoryr&   r   r   ú<module>r.      sä   ððð ð
 €
€
€
à &Ð &Ð &Ð &Ð &Ð &à Ð Ð Ð Ð Ð Ø 0Ð 0Ð 0Ð 0Ð 0Ð 0Ø OÐ OÐ OÐ OÐ OÐ OÐ OÐ OØ 0Ð 0Ð 0Ð 0Ð 0Ð 0ðÐ ð 1Ð ð €ˆ_˜fœnÑ-Ô-ð)ð )ð )ð )ð )ñ )ô )ñ .Ô-ð)ð: +Ð*Ñ,Ô,Ð Ð Ð r   