public static void maskCredential(Map<String, String> properties) {
        // Mask for aws's credential
        doMask(properties, CloudConfigurationConstants.AWS_S3_ACCESS_KEY);
        doMask(properties, CloudConfigurationConstants.AWS_S3_SECRET_KEY);
        doMask(properties, CloudConfigurationConstants.AWS_GLUE_ACCESS_KEY);
        doMask(properties, CloudConfigurationConstants.AWS_GLUE_SECRET_KEY);

        // Mask for azure's credential
        doMask(properties, CloudConfigurationConstants.AZURE_BLOB_SHARED_KEY);
        doMask(properties, CloudConfigurationConstants.AZURE_BLOB_SAS_TOKEN);
        doMask(properties, CloudConfigurationConstants.AZURE_ADLS1_OAUTH2_CREDENTIAL);
        doMask(properties, CloudConfigurationConstants.AZURE_ADLS2_SHARED_KEY);
        doMask(properties, CloudConfigurationConstants.AZURE_ADLS2_OAUTH2_CLIENT_SECRET);

        // Mask for gcs's credential
        doMask(properties, CloudConfigurationConstants.GCP_GCS_SERVICE_ACCOUNT_PRIVATE_KEY);

        // Mask for aliyun's credential
        doMask(properties, CloudConfigurationConstants.ALIYUN_OSS_ACCESS_KEY);
        doMask(properties, CloudConfigurationConstants.ALIYUN_OSS_SECRET_KEY);

        // Mask for iceberg rest catalog credential
        doMask(properties, IcebergRESTCatalog.KEY_CREDENTIAL_WITH_PREFIX);

        // Mask for odps catalog credential
        doMask(properties, OdpsProperties.ACCESS_ID);
        doMask(properties, OdpsProperties.ACCESS_KEY);
    }
@Test
    public void testMaskCredential() {
        Map<String, String> properties = new HashMap<>();
        String key = CloudConfigurationConstants.AWS_S3_SECRET_KEY;

        properties.put(key, "");
        CredentialUtil.maskCredential(properties);
        Assert.assertEquals("******", properties.get(key));

        properties.put(key, "he");
        CredentialUtil.maskCredential(properties);
        Assert.assertEquals("******", properties.get(key));

        properties.put(key, "hehe");
        CredentialUtil.maskCredential(properties);
        Assert.assertEquals("******", properties.get(key));

        properties.put(key, "heheh");
        CredentialUtil.maskCredential(properties);
        Assert.assertEquals("he******eh", properties.get(key));

        properties.put(AzureCloudConfigurationProvider.AZURE_PATH_KEY, "path");
        CredentialUtil.maskCredential(properties);
        Assert.assertFalse(properties.containsKey(AzureCloudConfigurationProvider.AZURE_PATH_KEY));
    }