Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

Commit

Permalink
small tweak to ordering of auth option setup
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Sep 21, 2011
1 parent 00e903f commit 1b4d941
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -400,23 +400,18 @@ private void initConnection(String userName, final String password,
if (requireTls) {
mConfig.setSecurityMode(SecurityMode.required);


if(allowPlainAuth)
{
mConfig.setSASLAuthenticationEnabled(false);
SASLAuthentication.supportSASLMechanism("PLAIN", 0);

SASLAuthentication.supportSASLMechanism("DIGEST-MD5", 1);
}
else
{
mConfig.setSASLAuthenticationEnabled(true);
SASLAuthentication.unsupportSASLMechanism("PLAIN");

SASLAuthentication.supportSASLMechanism("DIGEST-MD5", 0);
}




} else {
Expand Down

0 comments on commit 1b4d941

Please sign in to comment.