pyxmpp.sasl.plain.PlainServerAuthenticator

Package pyxmpp :: Package sasl :: Module plain :: Class PlainServerAuthenticator |
[show private | hide private]
[frames | no frames]

## Class PlainServerAuthenticator

    ServerAuthenticator --+
                          |
                         PlainServerAuthenticator

Provides PLAIN SASL authentication for a server.

Method Summary
| ``__init__`(self, password_manager)` Initialize a `PlainServerAuthenticator` object.
`sasl.Challenge`, `sasl.Success` or `sasl.Failure` | ``response`(self, response)` Process a client reponse.
`sasl.Challenge`, `sasl.Success` or `sasl.Failure` | ``start`(self, response)` Start the authentication process.

Method Details

### __init__(self, password_manager) (Constructor) Initialize a `PlainServerAuthenticator` object. Parameters: `password_manager` - name of the password manager object providing authentication credential verification. (type=`PasswordManager`) Overrides: `pyxmpp.sasl.core.ServerAuthenticator.__init__`

### response(self, response) Process a client reponse. Parameters: `response` - the response from the client. (type=`str`) Returns: a challenge, a success indicator or a failure indicator. (type=`sasl.Challenge`, `sasl.Success` or `sasl.Failure`) Overrides: `pyxmpp.sasl.core.ServerAuthenticator.response`

### start(self, response) Start the authentication process. Parameters: `response` - the initial response from the client. (type=`str`) Returns: a challenge, a success indicator or a failure indicator. (type=`sasl.Challenge`, `sasl.Success` or `sasl.Failure`) Overrides: `pyxmpp.sasl.core.ServerAuthenticator.start`