o b @sdZddlZddlmZmZmZddlmZmZddl m Z ddl m Z GdddeZ Gd d d eZGd d d eZGd ddeZGdddeZdZddZddZddZGdddZdS)z Support for resolving command-line strings that represent different checkers available to cred. Examples: - passwd:/etc/passwd - memory:admin:asdf:user:lkj - unix N)OptionalSequenceType) Attribute Interface) getPlugins)usagec@s8eZdZdZedZedZedZedZddZ dS) ICheckerFactoryz A factory for objects which provide L{twisted.cred.checkers.ICredentialsChecker}. It's implemented by twistd plugins creating checkers. z0A tag that identifies the authentication method.zmA detailed (potentially multi-line) description of precisely what functionality this CheckerFactory provides.z=A short (one-line) description of the argument string format.z@A list of credentials interfaces that this factory will support.cCsdS)z} Return an L{twisted.cred.checkers.ICredentialsChecker} provider using the supplied argument string. N) argstringr r 6/usr/lib/python3/dist-packages/twisted/cred/strcred.pygenerateChecker2szICheckerFactory.generateCheckerN) __name__ __module__ __qualname____doc__rauthTypeauthHelpargStringFormatcredentialInterfacesr r r r r r s r c@eZdZdZdS)StrcredExceptionz+ Base exception class for strcred. Nrrrrr r r r r9rc@r)InvalidAuthTypezv Raised when a user provides an invalid identifier for the authentication plugin (known as the authType). Nrr r r r r?rrc@r)InvalidAuthArgumentStringzl Raised by an authentication plugin when the argument string provided is formatted incorrectly. Nrr r r r rFrrc@r)UnsupportedInterfacesz Raised when an application is given a checker to use that does not provide any of the application's supported credentials interfaces. Nrr r r r rMrrzs