public static String genBasicAuthCredential(String secretId, String secretKey) {
        if (StringUtils.isBlank(secretId) || StringUtils.isBlank(secretKey)) {
            return BASIC_AUTH_EMPTY;
        }
        String credential = String.join(BASIC_AUTH_JOINER, secretId, secretKey);
        return BASIC_AUTH_PREFIX + BASIC_AUTH_SEPARATOR + Base64.getEncoder()
                .encodeToString(credential.getBytes(StandardCharsets.UTF_8));
    }
Generate http basic auth credential from configured secretId and secretKey
inlong-common/src/main/java/org/apache/inlong/common/util/BasicAuth.java