class documentation

class InMemorySSHKeyDB: (source)

Constructor: InMemorySSHKeyDB(mapping)

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 Look up the authorized keys for a user.
Instance Variable _mapping Undocumented
def __init__(self, mapping: Mapping[bytes, Iterable[keys.Key]]): (source)

Initializes a new InMemorySSHKeyDB.

Parameters
mapping:Mapping[bytes, Iterable[keys.Key]]mapping of usernames to iterables of twisted.conch.ssh.keys.Keys
def getAuthorizedKeys(self, username: bytes) -> Iterable[keys.Key]: (source)

Look up the authorized keys for a user.

Parameters
username:bytesName of the user
Returns
Iterable[keys.Key]Undocumented
_mapping = (source)

Undocumented