src/main/java/org/jivesoftware/smack/SASLAuthentication.java
public static void registerSASLMechanism(String name,
            Class<? extends SASLMechanism> mClass) {
        implementedMechanisms.put(name, mClass);
    }
public static void registerSASLMechanism(String name,
            Class<? extends SASLMechanism> mClass) {
        implementedMechanisms.put(name, mClass);
    }
public static void registerSASLMechanism ( String name , Class < ? extends SASLMechanism > mClass ) { implementedMechanisms . put ( name , mClass ) ; }
Registers a new SASL mechanism

@param name
common name of the SASL mechanism. E.g.: PLAIN, DIGEST-MD5 or
KERBEROS_V4.
@param mClass
a SASLMechanism subclass.
Registers a new SASL mechanism