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

Class SCRAM_SHA_1_PLUS_ServerAuthenticator


The SCRAM-SHA-1-PLUS server authenticator.

Authentication properties used: same as for SCRAM_SHA_1_ServerAuthenticator, plus:

Authentication properties returned: same as for SCRAM_SHA_1_ServerAuthenticator

Nested Classes [hide private]

Inherited from core.ServerAuthenticator: __metaclass__

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

Inherited from SCRAMServerAuthenticator: response, 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 SCRAMServerAuthenticator: __abstractmethods__

Inherited from SCRAMServerAuthenticator (private): _abc_cache

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, password_database)
(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.ServerAuthenticator.are_properties_sufficient
(inherited documentation)