Handles XMPP authentication mechanisms.
Authenticates the client using the configured preferred mechanism
Authenticates the client using the configured preferred mechanism.
If the preferred mechanism is not supported it will choose PLAIN.