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.
Method __init__ Undocumented
Method matchesKey Check to see if this entry matches a given key object.
Instance Variable comment Trailing garbage after the key line.
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.
def __init__(self, keyType, publicKey, comment): (source)
def matchesKey(self, keyObject): (source)
Check to see if this entry matches a given key object.
Parameters
keyObject:KeyA public key object to check.
Returns
boolTrue if this entry's key matches keyObject, False otherwise.
comment: bytes = (source)
Trailing garbage after the key line.
keyType: bytes = (source)
The type of the key; either ssh-dss or ssh-rsa.
The server public key indicated by this line.