
    \d                         d Z ddlmZ ddlmZ ddlmZ dZ	 ddlm	Z	m
Z
  eeej                   G d d                      Z e            Zd	S # e$ r Y d	S w xY w)
z 
Cred plugin for ssh key login.
    )implementer)plugin)ICheckerFactoryz
This allows SSH public key authentication, based on public keys listed in
authorized_keys and authorized_keys2 files in user .ssh/ directories.
SSHPublicKeyCheckerUNIXAuthorizedKeysFilesc                   4    e Zd ZdZdZeZdZej	        Z	ddZ
dS )SSHKeyCheckerFactoryzL
        Generates checkers that will authenticate a SSH public key
        sshkeyzNo argstring required. c                 8    t          t                                S )z
            This checker factory ignores the argument string. Everything
            needed to authenticate users is pulled out of the public keys
            listed in user .ssh/ directories.
            r   )self	argstrings     <lib/python3.11/site-packages/twisted/plugins/cred_sshkeys.pygenerateCheckerz$SSHKeyCheckerFactory.generateChecker$   s     ''>'@'@AAA    N)r   )__name__
__module____qualname____doc__authTypesshKeyCheckerFactoryHelpauthHelpargStringFormatr   credentialInterfacesr    r   r   r
   r
      sR        	 	 +22G	B 	B 	B 	B 	B 	Br   r
   N)r   zope.interfacer   twistedr   twisted.cred.strcredr   r   twisted.conch.checkersr   r   IPluginr
   theSSHKeyCheckerFactoryImportErrorr   r   r   <module>r$      s    
 ' & & & & &       0 0 0 0 0 0 	SSSSSSSS[&.11B B B B B B B 21B$ 3244 	 	 	DD	s   6A AA