
    Vh                         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y	# e$ r Y y	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                   <    e Zd ZdZdZeZdZej                  Z	ddZ
y)SSHKeyCheckerFactoryzL
        Generates checkers that will authenticate a SSH public key
        sshkeyzNo argstring required.c                 (    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     L/home/dcms/DCMS/lib/python3.12/site-packages/twisted/plugins/cred_sshkeys.pygenerateCheckerz$SSHKeyCheckerFactory.generateChecker$   s     ''>'@AA    N) )__name__
__module____qualname____doc__authTypesshKeyCheckerFactoryHelpauthHelpargStringFormatr   credentialInterfacesr    r   r   r
   r
      s*    	 +22GG	Br   r
   N)r   zope.interfacer   twistedr   twisted.cred.strcredr   r   twisted.conch.checkersr   r   IPluginr
   theSSHKeyCheckerFactoryImportErrorr   r   r   <module>r$      sg   
 '  0 	S&..1B B 2B$ 34 		s   /A AA