// Evaluate server challenge
byte[] response = client.evaluateChallenge(body.getChallenge());
ConnectionSecureOkBody secureOkBody = session.getMethodRegistry().createConnectionSecureOkBody(response);
session.writeFrame(secureOkBody.generateFrame(channelId));
}
catch (SaslException e)
{
throw new AMQException(null, "Error processing SASL challenge: " + e, e);
}