Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`plugins`.`cred_memory`.`InMemoryCheckerFactory``

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`.

Method | `generateChecker` | 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'.
Class Variable | `argStringFormat` | A short (one-line) description of the argument string format.
Class Variable | `authType` | A tag that identifies the authentication method.
Class Variable | `credentialInterfaces` | A list of credentials interfaces that this factory will support.

def generateChecker(self, argstring): (source)
from `twisted.cred.strcred.ICheckerFactory`

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'.

argStringFormat: `str` = (source)
from `twisted.cred.strcred.ICheckerFactory`

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

authType: `str` = (source)
from `twisted.cred.strcred.ICheckerFactory`

A tag that identifies the authentication method.

credentialInterfaces = (source)
from `twisted.cred.strcred.ICheckerFactory`

A list of credentials interfaces that this factory will support.