Package pyxmpp :: Package sasl :: Module digest_md5 :: Class DigestMD5ServerAuthenticator
[show private | hide private]
[frames | no frames]

Class DigestMD5ServerAuthenticator

ServerAuthenticator --+
                      |
                     DigestMD5ServerAuthenticator


Provides DIGEST-MD5 SASL authentication for a server.
Method Summary
  __init__(self, password_manager)
Initialize a DigestMD5ServerAuthenticator 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.
sasl.Challenge, sasl.Success or sasl.Failure _check_params(self, username, realm, cnonce, digest_uri, response_val, authzid, nonce_count)
Check parameters of a client reponse and pass them to further processing.
sasl.Challenge, sasl.Success or sasl.Failure _make_final_challenge(self, username, realm, cnonce, digest_uri, response_val, authzid, nonce_count)
Send the second challenge in reply to the client response.
sasl.Challenge, sasl.Success or sasl.Failure _parse_response(self, response)
Parse a client reponse and pass to further processing.

Method Details

__init__(self, password_manager)
(Constructor)

Initialize a DigestMD5ServerAuthenticator 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 (empty for DIGEST-MD5).
           (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

_check_params(self, username, realm, cnonce, digest_uri, response_val, authzid, nonce_count)

Check parameters of a client reponse and pass them to further processing.
Parameters:
username - user name.
           (type=str)
realm - realm.
           (type=str)
cnonce - cnonce value.
           (type=str)
digest_uri - digest-uri value.
           (type=str)
response_val - response value computed by the client.
           (type=str)
authzid - authorization id.
           (type=str)
nonce_count - nonce count value.
           (type=int)
Returns:
a challenge, a success indicator or a failure indicator.
           (type=sasl.Challenge, sasl.Success or sasl.Failure)

_make_final_challenge(self, username, realm, cnonce, digest_uri, response_val, authzid, nonce_count)

Send the second challenge in reply to the client response.
Parameters:
username - user name.
           (type=str)
realm - realm.
           (type=str)
cnonce - cnonce value.
           (type=str)
digest_uri - digest-uri value.
           (type=str)
response_val - response value computed by the client.
           (type=str)
authzid - authorization id.
           (type=str)
nonce_count - nonce count value.
           (type=int)
Returns:
a challenge, a success indicator or a failure indicator.
           (type=sasl.Challenge, sasl.Success or sasl.Failure)

_parse_response(self, response)

Parse a client reponse and pass to further processing.
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)