@Override
public SaslServer createSaslServer(String mechanism, String localFQDN, Principal externalPrincipal) throws SaslException
{
if(ANONYMOUS.equals(mechanism))
{
return new AnonymousSaslServer();
}
else
{
throw new SaslException("Unknown mechanism: " + mechanism);
}