diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java b/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java index ff22d3790..2a0f76119 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java @@ -93,7 +93,7 @@ public final class SASLAuthentication { Map answer = new LinkedHashMap(); synchronized (REGISTERED_MECHANISMS) { for (SASLMechanism mechanism : REGISTERED_MECHANISMS) { - answer.put(mechanism.getClass().getName(), mechanism.getName()); + answer.put(mechanism.getClass().getName(), mechanism.toString()); } } return answer;