Package pyxmpp2 :: Package sasl :: Module plain :: Class PlainServerAuthenticator
[hide private]

Class PlainServerAuthenticator


Provides PLAIN SASL authentication for a server.

Authentication properties used: None

Authentication properties returned:

Nested Classes [hide private]

Inherited from core.ServerAuthenticator: __metaclass__

Instance Methods [hide private]
 
__init__(self, password_database)
Initialize a ServerAuthenticator object.
 
start(self, properties, initial_response)
Start the authentication process.
Challenge or Success or Failure
response(self, response)
Process a response from a client.

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

Class Methods [hide private]

Inherited from core.ServerAuthenticator: are_properties_sufficient

Class Variables [hide private]
  __abstractmethods__ = frozenset([])
  _abc_cache = <_weakrefset.WeakSet object at 0x7f7256dd3910>
  _pyxmpp_sasl_preference = 50
  _pyxmpp_sasl_secure = 10
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, password_database)
(Constructor)

 
Initialize a ServerAuthenticator object.
Parameters:
  • password_database - a password database
Overrides: object.__init__
(inherited documentation)

start(self, properties, initial_response)

 
Start the authentication process.

:Parameters:
    - `properties`: the `authentication properties`_
    - `initial_response`: the initial response send by the client with
      the authentication request.

:Types:
    - `properties`: mapping
    - `initial_response`: `bytes`

:return: a challenge, a success or a failure indicator.
:returntype: `Challenge` or `Failure` or `Success`

Overrides: core.ServerAuthenticator.start
(inherited documentation)

response(self, response)

 
Process a response from a client.
Parameters:
  • response - the response from the client to our challenge.
Returns: Challenge or Success or Failure
a challenge, a success or a failure indicator.
Overrides: core.ServerAuthenticator.response
(inherited documentation)