/** * Returns true if the server offered SASL authentication besides ANONYMOUS SASL. * * @return true if the server offered SASL authentication besides ANONYMOUS SASL. */ public boolean hasNonAnonymousAuthentication() { return !serverMechanisms.isEmpty() && (serverMechanisms.size() != 1 || !hasAnonymousAuthentication()); }
/** * Returns true if the server offered SASL authentication besides ANONYMOUS SASL. * * @return true if the server offered SASL authentication besides ANONYMOUS SASL. */ public boolean hasNonAnonymousAuthentication() { return !serverMechanisms.isEmpty() && (serverMechanisms.size() != 1 || !hasAnonymousAuthentication()); }
/** * Returns true if the server offered SASL authentication besides ANONYMOUS SASL. * * @return true if the server offered SASL authentication besides ANONYMOUS SASL. */ public boolean hasNonAnonymousAuthentication() { return !serverMechanisms.isEmpty() && (serverMechanisms.size() != 1 || !hasAnonymousAuthentication()); }
/** * Returns true if the server offered SASL authentication besides ANONYMOUS SASL. * * @return true if the server offered SASL authentication besides ANONYMOUS SASL. */ public boolean hasNonAnonymousAuthentication() { if (!serverMechanisms.isEmpty()) { // Check that anonymous sasl is not the only supported mechanism if (serverMechanisms.size() == 1) { return !hasAnonymousAuthentication(); } return true; } return false; }
saslAuthentication.hasAnonymousAuthentication()) { response = saslAuthentication.authenticateAnonymously();
saslAuthentication.hasAnonymousAuthentication()) { response = saslAuthentication.authenticateAnonymously();
saslAuthentication.hasAnonymousAuthentication()) { response = saslAuthentication.authenticateAnonymously();
saslAuthentication.hasAnonymousAuthentication()) { response = saslAuthentication.authenticateAnonymously();
saslAuthentication.hasAnonymousAuthentication()) { response = saslAuthentication.authenticateAnonymously();