class documentation

class InMemorySSHKeyDB: (source)

Implements interfaces: twisted.conch.checkers.IAuthorizedKeysDB

View In Hierarchy

Object that provides SSH public keys based on a dictionary of usernames mapped to twisted.conch.ssh.keys.Keys.
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.
Instance Variable _mapping Undocumented
def __init__(self, mapping): (source)
Initializes a new InMemorySSHKeyDB.
Parameters
mapping:dictmapping of usernames to iterables of twisted.conch.ssh.keys.Keys
def getAuthorizedKeys(self, username): (source)
Gets an iterable of authorized keys that are valid for the given avatarId.
Parameters
usernameUndocumented
avatarId:valid return value of twisted.cred.checkers.ICredentialsChecker.requestAvatarIdthe ID of the avatar
Returns
an iterable of twisted.conch.ssh.keys.Key
_mapping = (source)

Undocumented