Package twisted :: Package protocols :: Module imap4 :: Class IServerAuthentication
[show private | hide private]
[frames | no frames]

Class IServerAuthentication

Interface --+
            |
           IServerAuthentication


Method Summary
int or str authenticateResponse(self, challenge, response)
Examine a challenge response for validity.
str generateChallenge(self)
Create a challenge string
str getName(self)
Return an identifier associated with this Authentication scheme.

Method Details

authenticateResponse(self, challenge, response)

Examine a challenge response for validity.
Parameters:
challenge - The challenge string associated with this response
           (type=str)
response - The response from the client
           (type=str)
Returns:
Returns 1 if the response is correct, or a string if further interaction is required with the client.
           (type=int or str)
Raises:
- AuthenticationError if the response is incorrect.

generateChallenge(self)

Create a challenge string
Returns:
A string representing the challenge
           (type=str)

getName(self)

Return an identifier associated with this Authentication scheme.
Returns:
str

Generated by Epydoc 1.1 on Thu Apr 17 12:55:33 2003 http://epydoc.sf.net