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.
  response(self, response)
Process a response from a client.
  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.
:Types:
    - `password_manager`: `PasswordManager`

response(self, response)

Process a response from a client.

:Parameters:
    - `response`: the response from the client to our challenge.
:Types:
    - `response`: `str`

:return: a challenge, a success or a failure indicator.
:returntype: `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.

:Types:
    - `initial_response`: `str`

:return: a challenge, a success or a failure indicator.
:returntype: `Challenge` or `Failure` or `Success`

Generated by Epydoc 2.1 on Wed May 31 22:36:58 2006 http://epydoc.sf.net