How to use the sasl.Sasl.__init__ function in sasl

To help you get started, we’ve selected a few sasl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apache / qpid / python / qpid / saslmech / scram.py View on Github external
def __init__(self, algorithm, user, password, name, sasl_options=None):
    Sasl.__init__(self, user, password, name, sasl_options)
    self.algorithm = algorithm
    self.client_nonce = b2a_hex(os.urandom(16))
    self.server_signature = None
github apache / qpid-python / qpid / saslmech / scram.py View on Github external
def __init__(self, algorithm, user, password, name, sasl_options=None):
    Sasl.__init__(self, user, password, name, sasl_options)
    self.algorithm = algorithm
    self.client_nonce = b2a_hex(os.urandom(16))
    self.server_signature = None