Commit 65218634 authored by Guus der Kinderen's avatar Guus der Kinderen

OF-1092: Fix improper mechanism name.

Should use hypens instead of underscore.
parent 9017ee09
...@@ -56,7 +56,7 @@ public class SaslServerFactoryImpl implements SaslServerFactory ...@@ -56,7 +56,7 @@ public class SaslServerFactoryImpl implements SaslServerFactory
{ {
allMechanisms = new HashSet<>(); allMechanisms = new HashSet<>();
allMechanisms.add( new Mechanism( "PLAIN", true, true ) ); allMechanisms.add( new Mechanism( "PLAIN", true, true ) );
allMechanisms.add( new Mechanism( "SCRAM_SHA_1", false, false ) ); allMechanisms.add( new Mechanism( "SCRAM-SHA-1", false, false ) );
allMechanisms.add( new Mechanism( "JIVE-SHAREDSECRET", true, false ) ); allMechanisms.add( new Mechanism( "JIVE-SHAREDSECRET", true, false ) );
allMechanisms.add( new Mechanism( "EXTERNAL", false, false ) ); allMechanisms.add( new Mechanism( "EXTERNAL", false, false ) );
} }
...@@ -80,7 +80,7 @@ public class SaslServerFactoryImpl implements SaslServerFactory ...@@ -80,7 +80,7 @@ public class SaslServerFactoryImpl implements SaslServerFactory
} }
return new SaslServerPlainImpl( protocol, serverName, props, cbh ); return new SaslServerPlainImpl( protocol, serverName, props, cbh );
case "SCRAM_SHA_1": case "SCRAM-SHA-1":
return new ScramSha1SaslServer(); return new ScramSha1SaslServer();
case "ANONYMOUS": case "ANONYMOUS":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment