connection.send(XMLBuilder.create("auth", XmppNamespaces.SASL).attribute("mechanism", "ANONYMOUS").getXML());
return;
}
if (mechanisms.contains("SCRAM-SHA-1")) {
saslClient = new ScramSHA1Client(credentials);
}
else if (mechanisms.contains("PLAIN")) {
saslClient = new PlainClient(credentials);
}
else {