Module exmpp_server_legacy_auth

The module exmpp_server_legacy_auth implements the receiving entity side of legacy authentication found in Jabber, before XMPP 1.0.

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

References

See also: exmpp_client_legacy_auth.

Description

The module exmpp_server_legacy_auth implements the receiving entity side of legacy authentication found in Jabber, before XMPP 1.0.

Function Index

failure/2Make an <iq> to notify a successfull authentication.
fields/1Make an <iq> for advertising fields.
fields/2Make an <iq> for advertising fields.
get_credentials/1Extract credentials from the Password_IQ.
success/1Make an <iq> to notify a successfull authentication.
unhex/1Decode hexadecimal string.
want_fields/1Tell if the initiating entity asks for the authentication fields.

Function Details

failure/2

failure(Password_IQ, Condition) -> Failure_IQ

Make an <iq> to notify a successfull authentication.

fields/1

fields(Request_IQ) -> Fields_IQ

Make an <iq> for advertising fields.

Both authentication methods are proposed.

fields/2

fields(Request_IQ, Auth) -> Fields_IQ

Make an <iq> for advertising fields.

get_credentials/1

get_credentials(Password_IQ) -> Credentials

Extract credentials from the Password_IQ.

For digest, hexadecimal content is decoded.

success/1

success(Password_IQ) -> Success_IQ

Make an <iq> to notify a successfull authentication.

unhex/1

unhex(Digest::Hex) -> Plain

Decode hexadecimal string.

want_fields/1

want_fields(Request_IQ) -> bool()

Tell if the initiating entity asks for the authentication fields.


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