class UNIXAuthorizedKeysFiles: (source)
Implements interfaces: twisted.conch.checkers.IAuthorizedKeysDB
| Present Since | |
| 15.0 |
| Method | __init__ |
Initializes a new UNIXAuthorizedKeysFiles. |
| Method | getAuthorizedKeys |
Gets an iterable of authorized keys that are valid for the given avatarId. |
| Instance Variable | _parseKey |
Undocumented |
| Instance Variable | _userdb |
Undocumented |
UNIXAuthorizedKeysFiles.| Parameters | |
userdb:pwd-like object | access to the Unix user account and password database (default is the Python module pwd) |
parseKey:callable | a callable that takes a string and returns a twisted.conch.ssh.keys.Key, mainly to be used for testing. The default is twisted.conch.ssh.keys.Key.fromString. |
| Parameters | |
| username | Undocumented |
avatarId:valid return value of twisted.cred.checkers.ICredentialsChecker.requestAvatarId | the ID of the avatar |
| Returns | |
an iterable of twisted.conch.ssh.keys.Key | |