Package sasl
source code
SASL authentication implementaion for PyXMPP.
- Normative reference:
-
|
safe_mechanisms_dict = {"DIGEST-MD5":(DigestMD5ClientAuthentic...
|
|
unsafe_mechanisms_dict = {"PLAIN":(PlainClientAuthenticator, P...
|
|
all_mechanisms_dict = safe_mechanisms_dict.copy()
|
|
safe_mechanisms = [ ' DIGEST-MD5 ' , ' EXTERNAL ' ]
|
|
unsafe_mechanisms = [ ' PLAIN ' ]
|
|
all_mechanisms = [ ' DIGEST-MD5 ' , ' EXTERNAL ' , ' PLAIN ' ]
|
|
__package__ = ' pyxmpp.sasl '
|
Imports:
random,
Reply,
Response,
Challenge,
Success,
Failure,
PasswordManager,
PlainClientAuthenticator,
PlainServerAuthenticator,
DigestMD5ClientAuthenticator,
DigestMD5ServerAuthenticator,
ExternalClientAuthenticator,
GSSAPIClientAuthenticator,
core,
digest_md5,
external,
plain
client_authenticator_factory(mechanism,
password_manager)
| source code
|
Create a client authenticator object for given SASL mechanism and
password manager.
- 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.ClientAuthenticator
- new authenticator.
|
server_authenticator_factory(mechanism,
password_manager)
| source code
|
Create a server authenticator object for given SASL mechanism and
password manager.
- 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.ServerAuthenticator
- new authenticator.
|
safe_mechanisms_dict
- Value:
{"DIGEST-MD5":(DigestMD5ClientAuthenticator, DigestMD5ServerAuthentica
tor), "EXTERNAL":(ExternalClientAuthenticator, None)}
|
|
unsafe_mechanisms_dict
- Value:
{"PLAIN":(PlainClientAuthenticator, PlainServerAuthenticator)}
|
|