private static void initMechanisms()
    {
        final List<String> propertyValues = getEnabledMechanisms();
        mechanisms = new HashSet<>();
        for ( final String propertyValue : propertyValues )
        {
            try
            {
                addSupportedMechanism( propertyValue );
            }
            catch ( Exception ex )
            {
                Log.warn( "An exception occurred while trying to add support for SASL Mechanism '{}':", propertyValue, ex );
            }
        }
    }
Sets the collection of mechanism names that the system administrator allows to be used.

@param mechanisms A collection of mechanisms that are considered for use in this instance of Openfire. Null to reset the default setting.
@see #getEnabledMechanisms()
xmppserver/src/main/java/org/jivesoftware/openfire/net/SASLAuthentication.java