Home | Trees | Index | Help |
|
---|
|
StreamSASLMixIn
Base class for password managers.
Password manager is an object responsible for providing or verification of authentication credentials.
All the methods of PasswordManager
class may be overriden in derived
classes for specific authentication and authorization policy.
Method Summary | |
---|---|
Initialize a PasswordManager object. | |
bool |
Check if the authenticated entity is allowed to use given authorization id. |
bool |
Check the password validity. |
unicode |
Choose an authentication realm from the list provided by the server. |
str |
Generate a random string for digest authentication challenges. |
unicode ,`str` tuple. |
Get the password for user authentication. |
list of unicode |
Get available realms list. |
Return the host name for DIGEST-MD5 'digest-uri' field. | |
Return the service name for DIGEST-MD5 'digest-uri' field. | |
Return the service type for DIGEST-MD5 'digest-uri' field. |
Method Details |
---|
__init__(self)
Initialize a |
check_authzid(self, authzid, extra_info=None)Check if the authenticated entity is allowed to use given authorization id. [server only] By default return
|
check_password(self, username, password, realm=None)Check the password validity. [server only] Used by plain-text authentication mechanisms. Retrieve a "plain" password for the May be overrided e.g. to check the password against some external authentication mechanism (PAM, LDAP, etc.).
|
choose_realm(self, realm_list)Choose an authentication realm from the list provided by the server. [client only] By default return the first realm from the list or
|
generate_nonce(self)Generate a random string for digest authentication challenges. The string should be cryptographicaly secure random pattern.
|
get_password(self, username, realm=None, acceptable_formats=('plain',))Get the password for user authentication. [both client or server] By default returns (None, None) providing no password. Should be overriden in derived classes.
|
get_realms(self)Get available realms list. [server only]
|
get_serv_host(self)Return the host name for DIGEST-MD5 'digest-uri' field. Should be overriden in derived classes.
|
get_serv_name(self)Return the service name for DIGEST-MD5 'digest-uri' field. Should be overriden in derived classes.
|
get_serv_type(self)Return the service type for DIGEST-MD5 'digest-uri' field. Should be overriden in derived classes.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Dec 26 17:57:40 2005 | http://epydoc.sf.net |