private static void throwIfLoginModuleIsNotAllowed(AppConfigurationEntry appConfigurationEntry) {
        Set<String> disallowedLoginModuleList = Arrays.stream(
                System.getProperty(DISALLOWED_LOGIN_MODULES_CONFIG, DISALLOWED_LOGIN_MODULES_DEFAULT).split(","))
                .map(String::trim)
                .collect(Collectors.toSet());
        String loginModuleName = appConfigurationEntry.getLoginModuleName().trim();
        if (disallowedLoginModuleList.contains(loginModuleName)) {
            throw new IllegalArgumentException(loginModuleName + " is not allowed. Update System property '"
                    + DISALLOWED_LOGIN_MODULES_CONFIG + "' to allow " + loginModuleName);
        }
    }
Returns an instance of this class.

If JAAS configuration property {@link SaslConfigs#SASL_JAAS_CONFIG} is specified,
the configuration object is created by parsing the property value. Otherwise, the default Configuration
is returned. The context name is always `KafkaClient`.
clients/src/main/java/org/apache/kafka/common/security/JaasContext.java