Home | Trees | Index | Help |
|
---|
Package pyxmpp :: Package sasl :: Module digest_md5 :: Class DigestMD5ServerAuthenticator |
|
ServerAuthenticator
--+
|
DigestMD5ServerAuthenticator
Provides DIGEST-MD5 SASL authentication for a server.
Method Summary | |
---|---|
Initialize a `DigestMD5ServerAuthenticator` object. | |
Process a client reponse. | |
Start the authentication process. | |
Check parameters of a client reponse and pass them to further processing. | |
Send the second challenge in reply to the client response. | |
Parse a client reponse and pass to further processing. |
Method Details |
---|
__init__(self,
password_manager)
|
response(self, response)Process a client reponse. :Parameters: - `response`: the response from the client. :Types: - `response`: `str` :return: a challenge, a success indicator or a failure indicator. :returntype: `sasl.Challenge`, `sasl.Success` or `sasl.Failure` |
start(self, response)Start the authentication process. :Parameters: - `response`: the initial response from the client (empty for DIGEST-MD5). :Types: - `response`: `str` :return: a challenge, a success indicator or a failure indicator. :returntype: `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. :Parameters: - `username`: user name. - `realm`: realm. - `cnonce`: cnonce value. - `digest_uri`: digest-uri value. - `response_val`: response value computed by the client. - `authzid`: authorization id. - `nonce_count`: nonce count value. :Types: - `username`: `str` - `realm`: `str` - `cnonce`: `str` - `digest_uri`: `str` - `response_val`: `str` - `authzid`: `str` - `nonce_count`: `int` :return: a challenge, a success indicator or a failure indicator. :returntype: `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. - `realm`: realm. - `cnonce`: cnonce value. - `digest_uri`: digest-uri value. - `response_val`: response value computed by the client. - `authzid`: authorization id. - `nonce_count`: nonce count value. :Types: - `username`: `str` - `realm`: `str` - `cnonce`: `str` - `digest_uri`: `str` - `response_val`: `str` - `authzid`: `str` - `nonce_count`: `int` :return: a challenge, a success indicator or a failure indicator. :returntype: `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. :Types: - `response`: `str` :return: a challenge, a success indicator or a failure indicator. :returntype: `sasl.Challenge`, `sasl.Success` or `sasl.Failure` |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed May 31 22:37:03 2006 | http://epydoc.sf.net |