if (client == null)
{
throw new AMQException("No SASL client set up - cannot proceed with authentication");
}
ConnectionSecureBody body = (ConnectionSecureBody) evt.getMethod();
try
{
// Evaluate server challenge
byte[] response = client.evaluateChallenge(body.challenge);
// AMQP version change: Hardwire the version to 0-8 (major=8, minor=0)
// TODO: Connect this to the session version obtained from ProtocolInitiation for this session.
// Be aware of possible changes to parameter order as versions change.
AMQFrame responseFrame = ConnectionSecureOkBody.createAMQFrame(evt.getChannelId(),
body.getMajor(), body.getMinor(),
response); // response
protocolSession.writeFrame(responseFrame);
}
catch (SaslException e)
{