code
stringlengths
3
6.57k
set()
isinstance(limited_mechs, set)
set(limited_mechs)
limited_mechs.add(self.use_mech)
set(features['mechanisms'])
self._send_auth()
_send_auth(self)
log.error("No appropriate login method.")
self.xmpp.event("no_auth", direct=True)
self.xmpp.event("failed_auth", direct=True)
set()
self.xmpp.disconnect()
log.exception("A credential value did not pass SASLprep.")
self.xmpp.disconnect()
stanza.Auth(self.xmpp)
self.mech.process()
self.attempted_mechs.add(self.mech.name)
self._send_auth()
self.attempted_mechs.add(self.mech.name)
self._send_auth()
self.attempted_mechs.add(self.mech.name)
self.xmpp.disconnect()
resp.send(now=True)
_handle_challenge(self, stanza)
self.stanza.Response(self.xmpp)
self.mech.process(stanza['value'])
self.stanza.Abort(self.xmpp)
send()
self.stanza.Abort(self.xmpp)
send()
self.attempted_mechs.add(self.mech.name)
self.xmpp.disconnect()
resp.send(now=True)
_handle_success(self, stanza)
self.mech.process(stanza['value'])
self.attempted_mechs.add(self.mech.name)
self.xmpp.disconnect()
set()
self.xmpp.features.add('mechanisms')
self.xmpp.event('auth_success', stanza, direct=True)
RestartStream()
_handle_fail(self, stanza)
self.attempted_mechs.add(self.mech.name)
log.info("Authentication failed: %s", stanza['condition'])
self.xmpp.event("failed_auth", stanza, direct=True)
self._send_auth()
findDecision(obj)
configuration (config_interface_xmlrpc_1.py)
module (interface_xmlrpc_1.py)
process_request(request, response)
split(".")
pmnc.__getattr__(module)
__getattr__(method)
configuration (config_resource_xmlrpc_1.py)
usage (anywhere)
pmnc.transaction.create()
xa.xmlrpc_1.Module.Method(*args)
xa.execute()
pmnc.transaction.xmlrpc_1.Module.Method(*args)
os.path.dirname(sys.modules["__main__"].__file__)
os.getcwd()
sys.path.insert(0, os.path.normpath(os.path.join(main_module_dir, "..", "..", "lib")
optional(os_path.isfile)
optional(os_path.isfile)
optional(str)
optional(one_of("SSLv23", "TLSv1", "TLSv1_1", "TLSv1_2", "TLS")
tuple_of(str)
optional(float)
optional(bool)
pmnc.config_interfaces.get("request_timeout")
pmnc.__getattr__(__name__)
property(lambda self: self._http_interface.name)
property(lambda self: self._http_interface.listener_address)
start(self)
self._http_interface.start()
cease(self)
self._http_interface.cease()
stop(self)
self._http_interface.stop()
process_xmlrpc_request(self, request, response)
format(self.name)
pmnc.__getattr__(handler_module_name)
process_request(request, response)
headers.get("content-type", "application/octet-stream")
content_type.startswith("text/xml")
loads(content)
Exception("invalid XMLRPC request: {0:s}".format(exc_string()
dict(method = method, args = args)
dict(result = None)
process_xmlrpc_request(xmlrpc_request, xmlrpc_response)
dumps((result, )
exc_string()
dumps(Fault(500, error)
pmnc.log.error("returning XMLRPC fault: {0:s}".format(error)
pmnc.log.debug("returning XMLRPC response")
Resource(TransactionalResource)
optional(os_path.isfile)
optional(os_path.isfile)
optional(str)
optional(one_of("SSLv23", "TLSv1", "TLSv1_1", "TLSv1_2", "TLS")