o
    ¯b“  ã                   @   sx   d Z ddlmZ ddlmZ ddlmZ dZzddlm	Z	m
Z
 eeejƒG dd„ dƒƒZeƒ ZW d	S  ey;   Y d	S 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                   @   s,   e Zd ZdZdZeZdZej	Z	ddd„Z
dS )	ÚSSHKeyCheckerFactoryzL
        Generates checkers that will authenticate a SSH public key
        ÚsshkeyzNo argstring required.Ú c                 C   s
   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Ú	argstring© r   ú>/usr/lib/python3/dist-packages/twisted/plugins/cred_sshkeys.pyÚgenerateChecker$   s   
z$SSHKeyCheckerFactory.generateCheckerN)r
   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚauthTypeÚsshKeyCheckerFactoryHelpÚauthHelpÚargStringFormatr   ÚcredentialInterfacesr   r   r   r   r   r      s    r   N)r   Úzope.interfacer   Útwistedr   Útwisted.cred.strcredr   r   Útwisted.conch.checkersr   r   ÚIPluginr   ÚtheSSHKeyCheckerFactoryÚImportErrorr   r   r   r   Ú<module>   s   
þ