Package pyxmpp2 :: Package sasl :: Module scram :: Class SCRAM_SHA_1_PLUS_ClientAuthenticator
[hide private]

Class SCRAM_SHA_1_PLUS_ClientAuthenticator


The SCRAM-SHA-1-PLUS client authenticator.

Authentication properties used: same as for SCRAM_SHA_1_ClientAuthenticator, plus:

Authentication properties returned: same as for SCRAM_SHA_1_ClientAuthenticator

Nested Classes [hide private]

Inherited from core.ClientAuthenticator: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Initialize a SCRAMClientAuthenticator object.

Inherited from SCRAMClientAuthenticator: challenge, finish, start

Inherited from SCRAMOperations: H, HMAC, Hi

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
are_properties_sufficient(cls, properties)
Check if the provided properties are sufficient for this authentication mechanism.
Static Methods [hide private]

Inherited from SCRAMOperations: Normalize, XOR, escape, unescape

Class Variables [hide private]
  _pyxmpp_sasl_preference = 50
  _pyxmpp_sasl_secure = 90

Inherited from SCRAMClientAuthenticator: __abstractmethods__

Instance Variables [hide private]

Inherited from SCRAMClientAuthenticator: password, pformat, realm

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 
Initialize a SCRAMClientAuthenticator object.
Parameters:
  • hash_function_name - hash function name, e.g. "SHA-1"
  • channel_binding - True to enable channel binding
Overrides: object.__init__
(inherited documentation)

are_properties_sufficient(cls, properties)
Class Method

 
Check if the provided properties are sufficient for
this authentication mechanism.

If `are_properties_sufficient` returns False for given `properties`
mapping, the `start` method of `cls` instance will also fail with
such argument.

:Parameters:
    - `properties`: the `authentication properties`_
:Types:
    - `properties`: mapping

:Return: if the mechanism can be used with those properties

Overrides: core.ClientAuthenticator.are_properties_sufficient
(inherited documentation)