diff options
author | Lance Stout <lancestout@gmail.com> | 2011-07-02 21:57:50 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-07-02 21:57:50 -0700 |
commit | fba235a801a3a1c06d1769cdc944b72dce33f88a (patch) | |
tree | 905c3243cee4991b0fc81332809f34042a2031c6 /sleekxmpp/clientxmpp.py | |
parent | b0297af38d6dcd9ebfdaa0131ea798c9fe2b8c63 (diff) | |
download | slixmpp-fba235a801a3a1c06d1769cdc944b72dce33f88a.tar.gz slixmpp-fba235a801a3a1c06d1769cdc944b72dce33f88a.tar.bz2 slixmpp-fba235a801a3a1c06d1769cdc944b72dce33f88a.tar.xz slixmpp-fba235a801a3a1c06d1769cdc944b72dce33f88a.zip |
Simplify SASL mech registration.
Moved SASL registration completely to the feature plugin, instead of
keeping a portion of it in ClientXMPP.
Diffstat (limited to 'sleekxmpp/clientxmpp.py')
-rw-r--r-- | sleekxmpp/clientxmpp.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py index 17a7582f..5b36e845 100644 --- a/sleekxmpp/clientxmpp.py +++ b/sleekxmpp/clientxmpp.py @@ -197,32 +197,6 @@ class ClientXMPP(BaseXMPP): self._stream_feature_order.append((order, name)) self._stream_feature_order.sort() - def register_sasl_mechanism(self, name, handler, priority=0): - """ - Register a handler for a SASL authentication mechanism. - - Arguments: - name -- The name of the mechanism (all caps) - handler -- The function that will perform the - authentication. The function must - return True if it is able to carry - out the authentication, False if - a required condition is not met. - priority -- An integer value indicating the - preferred ordering for the mechanism. - High values will be attempted first. - """ - self['feature_mechanisms'].register_mechanism(name, handler, priority) - - def remove_sasl_mechanism(self, name): - """ - Remove support for a given SASL authentication mechanism. - - Arguments: - name -- The name of the mechanism to remove (all caps) - """ - self['feature_mechanisms'].remove_mechanism(name) - def update_roster(self, jid, name=None, subscription=None, groups=[], block=True, timeout=None, callback=None): """ |