if (p.isAuthenticated()) return; // no need to login try { p.sasllogin(saslMechanisms, saslRealm, authzid, u, pw); if (!p.isAuthenticated()) throw new CommandFailedException( "SASL authentication failed"); if (!p.isAuthenticated()) authenticate(p, authzid, u, pw);
if (p.isAuthenticated()) return; // no need to login try { p.sasllogin(saslMechanisms, saslRealm, authzid, u, pw); if (!p.isAuthenticated()) throw new CommandFailedException( "SASL authentication failed"); if (!p.isAuthenticated()) authenticate(p, authzid, u, pw);
if (p.isAuthenticated()) return; // no need to login try { p.sasllogin(saslMechanisms, saslRealm, authzid, u, pw); if (!p.isAuthenticated()) throw new CommandFailedException( "SASL authentication failed"); if (!p.isAuthenticated()) authenticate(p, authzid, u, pw);
if (p.isAuthenticated()) return; // no need to login try { p.sasllogin(saslMechanisms, saslRealm, authzid, u, pw); if (!p.isAuthenticated()) throw new CommandFailedException( "SASL authentication failed"); if (!p.isAuthenticated()) authenticate(p, authzid, u, pw);
if (p.isAuthenticated()) return; // no need to login try { p.sasllogin(saslMechanisms, saslRealm, authzid, u, pw); if (!p.isAuthenticated()) throw new CommandFailedException( "SASL authentication failed"); if (!p.isAuthenticated()) authenticate(p, authzid, u, pw);
if (p.isAuthenticated()) return; // no need to login try { p.sasllogin(saslMechanisms, saslRealm, authzid, u, pw); if (!p.isAuthenticated()) throw new CommandFailedException( "SASL authentication failed"); if (!p.isAuthenticated()) authenticate(p, authzid, u, pw);
if (p.isAuthenticated()) return; // no need to login p.sasllogin(saslMechanisms, saslRealm, authzid, u, pw); if (p.isAuthenticated())
if (p.isAuthenticated()) return; // no need to login p.sasllogin(saslMechanisms, saslRealm, authzid, u, pw); if (p.isAuthenticated())