home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 February / maximum-cd-2011-02.iso / DiscContents / digsby_setup85.exe / lib / pyxmpp / sasl / external.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-11-24  |  1.3 KB  |  29 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. __revision__ = '$Id$'
  5. __docformat__ = 'restructuredtext en'
  6. import base64
  7. import logging
  8. from pyxmpp.sasl.core import ClientAuthenticator, Failure, Response, Challenge, Success
  9.  
  10. class ExternalClientAuthenticator(ClientAuthenticator):
  11.     
  12.     def __init__(self, password_manager):
  13.         ClientAuthenticator.__init__(self, password_manager)
  14.         self.password_manager = password_manager
  15.         self._ExternalClientAuthenticator__logger = logging.getLogger('pyxmpp.sasl.external.ExternalClientAuthenticator')
  16.  
  17.     
  18.     def start(self, username, authzid):
  19.         self.username = username
  20.         self.authzid = authzid
  21.         return Response(self.authzid, encode = True)
  22.  
  23.     
  24.     def finish(self, data):
  25.         _unused = data
  26.         return Success(self.username, None, self.authzid)
  27.  
  28.  
  29.