class AuthOptionMixin: (source)
Known subclasses: twisted.conch.tap.Options
, twisted.mail.tap.Options
, twisted.tap.ftp.Options
, twisted.words.tap.Options
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 | add |
Supply a supplied credentials checker to the Options class. |
Method | opt |
Specify an authentication method for the server. |
Method | opt |
Show all authentication methods available. |
Method | opt |
Show help for a particular authentication type. |
Method | supports |
Returns whether a checker factory will provide at least one of the credentials interfaces that we care about. |
Method | supports |
Returns whether a particular credentials interface is supported. |
Class Variable | auth |
A writeable object to which this options class will send all help-related output. Default: sys.stdout |
Class Variable | supported |
An iterable object that returns credential interfaces which this application is able to support. |
Method | _checker |
Return a list of which authTypes will be displayed by --help-auth. This makes it a lot easier to test this module. |
Returns whether a checker factory will provide at least one of the credentials interfaces that we care about.
A writeable object to which this options class will send all help-related output. Default: sys.stdout
twisted.words.tap.Options
An iterable object that returns credential interfaces which this application is able to support.