Module xmpp_sasl

This module defines the xmpp_sasl behaviour.
Required callback functions: mech_new/4, mech_step/2.

Data Types

check_password_digest_fun()

check_password_digest_fun() = function()

check_password_fun()

check_password_fun() = function()

error_reason()

error_reason() = xmpp_sasl_digest:error_reason() | xmpp_sasl_oauth:error_reason() | xmpp_sasl_plain:error_reason() | xmpp_sasl_scram:error_reason() | unsupported_mechanism | nodeprep_failed | empty_username | aborted

get_password_fun()

get_password_fun() = function()

mech_state()

mech_state() = term()

mechanism()

mechanism() = binary()

sasl_property()

sasl_property() = {username, binary()} | {authzid, binary()} | {mechanism, binary()} | {auth_module, atom()}

sasl_return()

sasl_return() = {ok, [sasl_property()]} | {ok, [sasl_property()], binary()} | {continue, binary(), sasl_state()} | {error, error_reason(), binary()}

sasl_state()

sasl_state() = #sasl_state{server_host = binary(), mech_name = mechanism(), mech_state = mech_state(), get_password = get_password_fun(), check_password = check_password_fun(), check_password_digest = check_password_digest_fun()}

Function Index

format_error/2
listmech/0
server_new/4
server_start/3
server_step/2

Function Details

format_error/2

format_error(Mech::mechanism(), Reason::error_reason()) -> {atom(), binary()}

listmech/0

listmech() -> [mechanism()]

server_new/4

server_new(ServerHost::binary(), GetPassword::get_password_fun(), CheckPassword::check_password_fun(), CheckPasswordDigest::check_password_digest_fun()) -> sasl_state()

server_start/3

server_start(State::sasl_state(), Mech::mechanism(), ClientIn::binary()) -> sasl_return()

server_step/2

server_step(State::sasl_state(), ClientIn::binary()) -> sasl_return()


Generated by EDoc