Called by the protocol implementation if the client is expected to send data first in the authentication exchange (i.e. isClientFirst === true).
Target Connection.
Mechanism response.
Called by protocol implementation on incoming challenge.
By deafult, if the client is expected to send data first (isClientFirst === true),
this method is called with challenge as null on the first call,
unless clientChallenge is overridden in the relevant subclass.
Target Connection.
Optional_challenge: string
current challenge to handle.
Mechanism response.
Protocol informs mechanism implementation about SASL failure.
Called before starting mechanism on some connection.
Target Connection.
Protocol informs mechanism implementation about SASL success.
Checks if mechanism able to run. To disable a mechanism, make this return false;
To disable plain authentication run
Strophe.SASLPlain.test = function() { return false; }
See
If mechanism was able to run.
Encapsulates an SASL authentication mechanism.
User code may override the priority for each mechanism or disable it completely. See for information about changing priority and for informatian on
how to disable a mechanism.
By default, all mechanisms are enabled and t_he priorities are
See: Strophe.Connection#registerSASLMechanisms