Selecting Mechanisms Available in the Stream

Interface 'tigase.auth.MechanismSelector' is used for selecting mechanisms available in a stream. Method 'filterMechanisms()' should return a collection with mechanisms available based on:

  1. all registered SASL factories
  2. XMPP session data (from 'XMPPResourceConnection' class)

The default selector returns mechanisms from the default Tigase’s factory ('TigaseSaslServerFactory') only.

It is possible to use a custom selector by specifying it’s class int the init.properties file:

sess-man/plugins-conf/urn\:ietf\:params\:xml\:ns\:xmpp-sasl/mechanism-selector=com.example.OwnSelector