

def __init__(self, router, secret='secret'):
    self.router = router
    self.secret = secret

    def authenticatorFactory():
        return ListenComponentAuthenticator(self.secret)
    xmlstream.XmlStreamServerFactory.__init__(self, authenticatorFactory)
    self.addBootstrap(xmlstream.STREAM_CONNECTED_EVENT, self.onConnectionMade)
    self.addBootstrap(xmlstream.STREAM_AUTHD_EVENT, self.onAuthenticated)
    self.serial = 0

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/words/protocols/jabber/component.py XMPPComponentServerFactory.__init__/original