Package sasl
source code
SASL authentication implementaion for PyXMPP.
- Normative reference:
- 
    |  | __revision__ = '$Id: __init__.py 678 2008-08-08 11:22:14Z jajc... | 
    |  | safe_mechanisms_dict = {"DIGEST-MD5":(DigestMD5ClientAuthentic... | 
    |  | unsafe_mechanisms_dict = {"PLAIN":(PlainClientAuthenticator, P... | 
    |  | all_mechanisms_dict = safe_mechanisms_dict.copy() | 
    |  | safe_mechanisms = ['DIGEST-MD5'] | 
    |  | unsafe_mechanisms = ['PLAIN'] | 
    |  | all_mechanisms = ['DIGEST-MD5', 'PLAIN'] | 
    |  | __package__ = 'pyxmpp.sasl' | 
Imports:
  random,
  Reply,
  Response,
  Challenge,
  Success,
  Failure,
  PasswordManager,
  PlainClientAuthenticator,
  PlainServerAuthenticator,
  DigestMD5ClientAuthenticator,
  DigestMD5ServerAuthenticator,
  GSSAPIClientAuthenticator,
  core,
  digest_md5,
  plain
| 
  Create a client authenticator object for given SASL mechanism and
password manager.| client_authenticator_factory(mechanism,
        password_manager)
   | source code |  
    Parameters:
        mechanism(str) - name of the SASL mechanism ("PLAIN", "DIGEST-MD5" or "GSSAPI").password_manager(PasswordManager) - name of the password manager object providing
authentication credentials.Returns: sasl.core.ClientAuthenticatornew authenticator. | 
 
| 
  Create a server authenticator object for given SASL mechanism and
password manager.| server_authenticator_factory(mechanism,
        password_manager)
   | source code |  
    Parameters:
        mechanism(str) - name of the SASL mechanism ("PLAIN", "DIGEST-MD5" or "GSSAPI").password_manager(PasswordManager) - name of the password manager object to be used
for authentication credentials verification.Returns: sasl.core.ServerAuthenticatornew authenticator. | 
 
| __revision__
   
    Value:| 
'$Id: __init__.py 678 2008-08-08 11:22:14Z jajcus $' | 
 | 
 
| safe_mechanisms_dict
   
    Value:| 
{"DIGEST-MD5":(DigestMD5ClientAuthenticator, DigestMD5ServerAuthentica tor)} | 
 | 
 
| unsafe_mechanisms_dict
   
    Value:| 
{"PLAIN":(PlainClientAuthenticator, PlainServerAuthenticator)}
 | 
 |