protected TLSConfig loadTlsSectConf(final Ini iniConf, int defTlsPort) {
        TLSConfig tlsConfig = new TLSConfig();
        tlsConfig.setTlsPort(defTlsPort);
        final Profile.Section tlsSect = iniConf.get(SECT_TOKEN_TLS);
        if (tlsSect == null) {
            return tlsConfig;
        }
        Set<String> configKeySet = tlsSect.keySet();
        if (configKeySet.isEmpty()) {
            return tlsConfig;
        }
        if (TStringUtils.isNotBlank(tlsSect.get("tlsEnable"))) {
            tlsConfig.setTlsEnable(getBoolean(tlsSect, "tlsEnable"));
        }
        if (tlsConfig.isTlsEnable()) {
            tlsConfig.setTlsPort(getInt(tlsSect, "tlsPort", defTlsPort));
            if (TStringUtils.isBlank(tlsSect.get("tlsKeyStorePath"))) {
                getSimilarConfigField(SECT_TOKEN_TLS, configKeySet, "tlsKeyStorePath");
            } else {
                tlsConfig.setTlsKeyStorePath(tlsSect.get("tlsKeyStorePath").trim());
            }
            if (TStringUtils.isBlank(tlsSect.get("tlsKeyStorePassword"))) {
                getSimilarConfigField(SECT_TOKEN_TLS, configKeySet, "tlsKeyStorePassword");
            } else {
                tlsConfig.setTlsKeyStorePassword(tlsSect.get("tlsKeyStorePassword").trim());
            }
            if (TStringUtils.isNotBlank(tlsSect.get("tlsTwoWayAuthEnable"))) {
                tlsConfig.setTlsTwoWayAuthEnable(getBoolean(tlsSect, "tlsTwoWayAuthEnable"));
            }
            if (tlsConfig.isTlsTwoWayAuthEnable()) {
                if (TStringUtils.isBlank(tlsSect.get("tlsTrustStorePath"))) {
                    getSimilarConfigField(SECT_TOKEN_TLS, configKeySet, "tlsTrustStorePath");
                } else {
                    tlsConfig.setTlsTrustStorePath(tlsSect.get("tlsTrustStorePath").trim());
                }
                if (TStringUtils.isBlank(tlsSect.get("tlsTrustStorePassword"))) {
                    getSimilarConfigField(SECT_TOKEN_TLS, configKeySet, "tlsTrustStorePassword");
                } else {
                    tlsConfig.setTlsTrustStorePassword(tlsSect.get("tlsTrustStorePassword").trim());
                }
            }
        }
        return tlsConfig;
    }
Retrieve similar configurations within a set of specific configurations according to the given configuration.

@param section      the section within file to be searched.
@param configFields the set of configurations to be searched.
@param checkItem    the given configuration to be compared.
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/common/fileconfig/AbstractFileConfig.java