Module exmpp_server_sasl

The module exmpp_server_sasl implements the receiving entity side of SASL authentication.

Authors: Jean-Sébastien Pédron (js.pedron@meetic-corp.com).

Description

The module exmpp_server_sasl implements the receiving entity side of SASL authentication.

Note that it doesn't implement SASL, only feature negotiation at the XMPP level.

Function Index

challenge/1Prepare a <challenge/> element with the given challenge.
failure/0Prepare a <failure/> element.
failure/1Prepare a <failure/> element.
feature/1Make a feature announcement child.
next_step/1Extract the response that the initiating entity sent.
success/0Prepare a <success/> element.

Function Details

challenge/1

challenge(Challenge) -> Challenge_El

Prepare a <challenge/> element with the given challenge.

Challenge will be Base64-encoded by this function.

failure/0

failure() -> Failure

Prepare a <failure/> element.

failure/1

failure(Condition) -> Failure

Prepare a <failure/> element.

feature/1

feature(Mechanisms) -> Feature

throws {sasl, feature_announcement, invalid_mechanisms_list, []} | {sasl, feature_announcement, invalid_mechanism, Mechanism}

Make a feature announcement child.

The result should then be passed to exmpp_stream:features/1.

next_step/1

next_step(Xmlel::El) -> Type

throws {sasl, next_step, unexpected_element, El}

Extract the response that the initiating entity sent.

Any response data is Base64-decoded.

success/0

success() -> Success_El

Prepare a <success/> element.


Generated by EDoc, Jan 21 2011, 01:43:53.