class documentation
class InMemorySSHKeyDB: (source)
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 | get |
Gets an iterable of authorized keys that are valid for the given avatarId. |
Instance Variable | _mapping |
Undocumented |
Initializes a new InMemorySSHKeyDB
.
Parameters | |
mapping:dict | mapping of usernames to iterables of twisted.conch.ssh.keys.Key s |
Gets an iterable of authorized keys that are valid for the given avatarId.
Parameters | |
username | Undocumented |
avatartwisted.cred.checkers.ICredentialsChecker.requestAvatarId | the ID of the avatar |
Returns | |
an iterable of twisted.conch.ssh.keys.Key |