public Set<String> getPropertiesToBlackList()
  {
    if (propertiesToMask != null) {
      return propertiesToMask;
    }
    Properties blacklistProperties = new Properties();
    String blacklistFile = getAmbariBlacklistFile();
    propertiesToMask = new HashSet<>();
    if(blacklistFile != null) {
      File propertiesMaskFile = new File(blacklistFile);
      InputStream inputStream = null;
      if(propertiesMaskFile.exists()) {
        try {
          inputStream = new FileInputStream(propertiesMaskFile);
	  blacklistProperties.load(inputStream);
	  propertiesToMask = blacklistProperties.stringPropertyNames();
        } catch (Exception e) {
	  String message = String.format("Blacklist properties file %s cannot be read", blacklistFile);
          LOG.error(message);
        } finally {
	  IOUtils.closeQuietly(inputStream);
        }
      }
    }
    return propertiesToMask;
  }
@return the set of properties to mask in the api that
returns ambari.properties
ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java