Broker<?> broker = getBroker();
_logger.info("SASL Mechanism selected: " + mechanism);
_logger.info("Locale selected: " + locale);
SubjectCreator subjectCreator = getSubjectCreator();
SaslServer ss = null;
try
{
ss = subjectCreator.createSaslServer(String.valueOf(mechanism),
getLocalFQDN(),
getPeerPrincipal());
if (ss == null)
{
closeConnection(AMQConstant.RESOURCE_ERROR, "Unable to create SASL Server:" + mechanism, 0);
}
else
{
//save clientProperties
setClientProperties(clientProperties);
setSaslServer(ss);
final SubjectAuthenticationResult authResult = subjectCreator.authenticate(ss, response);
MethodRegistry methodRegistry = getMethodRegistry();
switch (authResult.getStatus())
{