1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

Use SASLMechanism.toString() in getRegisterdSASLMechanisms()

of SASLAuthentication.
This commit is contained in:
Florian Schmaus 2017-03-18 13:18:44 +01:00
parent 762939068b
commit b6f7d019c7

View file

@ -93,7 +93,7 @@ public final class SASLAuthentication {
Map<String, String> answer = new LinkedHashMap<String, String>();
synchronized (REGISTERED_MECHANISMS) {
for (SASLMechanism mechanism : REGISTERED_MECHANISMS) {
answer.put(mechanism.getClass().getName(), mechanism.getName());
answer.put(mechanism.getClass().getName(), mechanism.toString());
}
}
return answer;