I worked on a couple ways to deal with this until the next release: 3.5.0.
You can eliminate the read permission to the variable
'java.security.auth.login.config' in the vm. This will throw a
SecurityException, and the method will return false when it is caught.
Or you can make it believe it has sasl authentication, but give it a bogus path:
System.setProperty("java.security.auth.login.config","/boguspath/at/home");
This will cause it to go into the method,but once it tries to open the file, it
will bomb with another SecurityException.
Bon Appetit!
Jorge Allen
[email protected]