/** * @deprecated as of 0.3 * Use {@link #authenticate(TaskListener)} and provide a listener to receive errors. */ public final boolean authenticate() { synchronized (lock) { if (canAuthenticate()) { try { authenticated = doAuthenticate(); } catch (Throwable t) { Logger.getLogger(getClass().getName()) .log(Level.WARNING, "Uncaught exception escaped doAuthenticate method", t); authenticated = false; } } return isAuthenticated() || Mode.BEFORE_CONNECT.equals(getAuthenticationMode()); } }