HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/twisted/plugins/__pycache__/cred_sshkeys.cpython-310.pyc
o

�b��@sxdZddlmZddlmZddlmZdZzddlm	Z	m
Z
eeej�Gdd�d��Ze�Z
Wd	Sey;Yd	Sw)
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,eZdZdZdZeZdZej	Z	ddd�Z
dS)	�SSHKeyCheckerFactoryzL
        Generates checkers that will authenticate a SSH public key
        �sshkeyzNo argstring required.�cCs
tt��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�credentialInterfacesrr
r
r
rrsrN)r�zope.interfacer�twistedr�twisted.cred.strcredrr�twisted.conch.checkersrr�IPluginr�theSSHKeyCheckerFactory�ImportErrorr
r
r
r�<module>s
�