connect.sendLoginError("Sasl challenge failed, no saslclient");
return;
}
try {
final byte[] response = saslClient.evaluateChallenge(Base64.decode(challenge.getChallenge()));
connect.sendWhileConnecting(new Packet()
{
public void appendToXML(StringBuffer xml)
{
xml.append("<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>");
if(response!=null)xml.append(Base64.encodeBytes(response));