class documentation

class PrivateKeyChecker: (source)

Implements interfaces: twisted.cred.checkers.ICredentialsChecker

View In Hierarchy

A very simple public key checker which authenticates anyone whose public/private keypair is the same keydata.public/privateRSA_openssh.

Method requestAvatarId Validate credentials and produce an avatar ID.
Class Variable credentialInterfaces A list of sub-interfaces of ICredentials which specifies which I may check.
def requestAvatarId(self, creds): (source)

Validate credentials and produce an avatar ID.

Parameters
credsUndocumented
credentialssomething which implements one of the interfaces in credentialInterfaces.
Returns
a Deferred which will fire with a bytes that identifies an avatar, an empty tuple to specify an authenticated anonymous user (provided as twisted.cred.checkers.ANONYMOUS) or fail with UnauthorizedLogin. Alternatively, return the result itself.
See Also
twisted.cred.credentials
credentialInterfaces = (source)

A list of sub-interfaces of ICredentials which specifies which I may check.