pyxmpp.sasl.core.ServerAuthenticator

Package pyxmpp :: Package sasl :: Module core :: Class ServerAuthenticator |
[show private | hide private]
[frames | no frames]

## Class ServerAuthenticator

Known Subclasses:
  `DigestMD5ServerAuthenticator`, `PlainServerAuthenticator`

Base class for server authenticators.

A server authenticator class is a server-side implementation of a SASL mechanism. One `ServerAuthenticator` object may be used for one client authentication process.

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

Method Details

### __init__(self, password_manager) (Constructor) Initialize a `ServerAuthenticator` object. Parameters: `password_manager` - a password manager providing authentication credential verfication. (type=`PasswordManager`)

### response(self, response) Process a response from a client. Parameters: `response` - the response from the client to our challenge. (type=`str`) Returns: a challenge, a success or a failure indicator. (type=`Challenge` or `Success` or `Failure`)

### start(self, initial_response) Start the authentication process. Parameters: `initial_response` - the initial response send by the client with the authentication request. (type=`str`) Returns: a challenge, a success or a failure indicator. (type=`Challenge` or `Failure` or `Success`)