class documentation

class _BaseEntry: (source)

Known subclasses: twisted.conch.client.knownhosts.HashedEntry, twisted.conch.client.knownhosts.PlainEntry

View In Hierarchy

Abstract base of both hashed and non-hashed entry objects, since they represent keys and key types the same way.

Instance Variable keyType The type of the key; either ssh-dss or ssh-rsa.
Instance Variable publicKey The server public key indicated by this line.
Instance Variable comment Trailing garbage after the key line.
Method __init__ Undocumented
Method matchesKey Check to see if this entry matches a given key object.
keyType = (source)
The type of the key; either ssh-dss or ssh-rsa.
(type: bytes)
publicKey = (source)
The server public key indicated by this line.
(type: twisted.conch.ssh.keys.Key)
comment = (source)
Trailing garbage after the key line.
(type: bytes)
def __init__(self, keyType, publicKey, comment): (source)
def matchesKey(self, keyObject): (source)

Check to see if this entry matches a given key object.

ParameterskeyObjectA public key object to check. (type: Key)
ReturnsTrue if this entry's key matches keyObject, False otherwise. (type: bool)
API Documentation for Twisted, generated by pydoctor 21.2.0 at 2021-02-28 21:00:42.