protected void decrypt(Map<String, String> configProperties) {
    for (Map.Entry<String, String> property : configProperties.entrySet()) {
      if (isEncryptedPassword(property.getValue())) {
        configProperties.put(property.getKey(), decryptProperty(property.getValue()));
      }
    }
  }
A common base class for various encryptor implementations
ambari-server/src/main/java/org/apache/ambari/server/security/encryption/PropertiesEncryptor.java