os.write(new UTF8Buffer(options.getPassword()));
}
} catch (IOException e) {
throw new RuntimeException(e);
}
Buffer buffer = os.toBuffer();
sasl.setMechanisms(new String[]{"PLAIN"});
sasl.send(buffer.data, buffer.offset, buffer.length);
} else if (mechanisims.contains("ANONYMOUS")) {
authSent = true;
sasl.setMechanisms(new String[]{"ANONYMOUS"});