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`.`cred`.`strcred`.`AuthOptionMixin``

class documentation

`class AuthOptionMixin: (source)`

Known subclasses: `twisted.conch.tap.Options`, `twisted.mail.tap.Options`, `twisted.tap.ftp.Options`, `twisted.words.tap.Options`

View In Hierarchy

Defines helper methods that can be added on to any `usage.Options` subclass that needs authentication.

This mixin implements three new options methods:

The opt_auth method (--auth) will write two new values to the 'self' dictionary: `credInterfaces` (a dict of lists) and `credCheckers` (a list).

The opt_help_auth method (--help-auth) will search for all available checker plugins and list them for the user; it will exit when finished.

The opt_help_auth_type method (--help-auth-type) will display detailed help for a particular checker plugin.

Method | `addChecker` | Supply a supplied credentials checker to the Options class.
Method | `opt_auth` | Specify an authentication method for the server.
Method | `opt_help_auth` | Show all authentication methods available.
Method | `opt_help_auth_type` | Show help for a particular authentication type.
Method | `supportsCheckerFactory` | Returns whether a checker factory will provide at least one of the credentials interfaces that we care about.
Method | `supportsInterface` | Returns whether a particular credentials interface is supported.
Class Variable | `authOutput` | A writeable object to which this options class will send all help-related output. Default: `sys.stdout`
Class Variable | `supportedInterfaces` | An iterable object that returns credential interfaces which this application is able to support.
Method | `_checkerFactoriesForOptHelpAuth` | Return a list of which authTypes will be displayed by --help-auth. This makes it a lot easier to test this module.

def addChecker(self, checker): (source)
overridden in `twisted.conch.tap.Options`

Supply a supplied credentials checker to the Options class.

def opt_auth(self, description): (source)

Specify an authentication method for the server.

def opt_help_auth(self): (source)

Show all authentication methods available.

def opt_help_auth_type(self, authType): (source)

Show help for a particular authentication type.

def supportsCheckerFactory(self, factory): (source)

Returns whether a checker factory will provide at least one of the credentials interfaces that we care about.

def supportsInterface(self, interface): (source)

Returns whether a particular credentials interface is supported.

authOutput = (source)

A writeable object to which this options class will send all help-related output. Default: `sys.stdout`

supportedInterfaces: `Optional[Sequence[Type[Interface]]]` = (source)
overridden in `twisted.words.tap.Options`

An iterable object that returns credential interfaces which this application is able to support.

def _checkerFactoriesForOptHelpAuth(self): (source)

Return a list of which authTypes will be displayed by --help-auth. This makes it a lot easier to test this module.