class documentation

class InMemoryCheckerFactory: (source)

Implements interfaces: twisted.cred.strcred.ICheckerFactory, twisted.plugin.IPlugin

View In Hierarchy

A factory for in-memory credentials checkers.

This is only of use in one-off test programs or examples which don't want to focus too much on how credentials are verified.

You really don't want to use this for anything else. It is, at best, a toy. If you need a simple credentials checker for a real application, see cred_file.FileCheckerFactory.

Class Variable authType A tag that identifies the authentication method.
Class Variable argStringFormat A short (one-line) description of the argument string format.
Class Variable credentialInterfaces A list of credentials interfaces that this factory will support.
Method generateChecker No summary
authType = (source)

A tag that identifies the authentication method.

(type: str)
argStringFormat = (source)

A short (one-line) description of the argument string format.

(type: str)
credentialInterfaces = (source)

A list of credentials interfaces that this factory will support.

def generateChecker(self, argstring): (source)

This checker factory expects to get a list of username:password pairs, with each pair also separated by a colon. For example, the string 'alice:f:bob:g' would generate two users, one named 'alice' and one named 'bob'.

API Documentation for Twisted, generated by pydoctor 21.2.0 at 2021-02-28 21:00:42.