twisted.conch.checkers.InMemorySSHKeyDB(object)
class documentationtwisted.conch.checkers
(View In Hierarchy)
Implements interfaces: twisted.conch.checkers.IAuthorizedKeysDB
Object that provides SSH public keys based on a dictionary of usernames
mapped to twisted.conch.ssh.keys.Key
s.
Present Since | 15.0 |
Method | __init__ | Initializes a new InMemorySSHKeyDB . |
Method | getAuthorizedKeys | Gets an iterable of authorized keys that are valid for the given
avatarId . |
Initializes a new InMemorySSHKeyDB
.
Parameters | mapping | mapping of usernames to iterables of twisted.conch.ssh.keys.Key s (type: dict ) |
Gets an iterable of authorized keys that are valid for the given
avatarId
.
Parameters | avatarId | the ID of the avatar (type: valid return value of twisted.cred.checkers.ICredentialsChecker.requestAvatarId ) |
Returns | an iterable of twisted.conch.ssh.keys.Key |