1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 18:48:00 +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;