Interface ConfigurationViewService

All Known Implementing Classes:
SecureConfigurationViewService

public interface ConfigurationViewService
ConfigurationViewService provides a filtered view of System environment variables, system properties and Hybris configuration. It can be used to filter out sensitive data such as passwords before presenting them to user.
  • Method Details

    • readSystemProperties

      Properties readSystemProperties()
      Reads and filters system properties - equivalent to System.getProperties()
      Returns:
      filtered subset of system properties
    • readEnvVariables

      Map<String,String> readEnvVariables()
      Reads and filters system environment variables - equivalent to System.getenv()
      Returns:
      filtered subset of system environment variables
    • readConfigParameters

      Map<String,String> readConfigParameters()
      Reads and filters Hybris configuration - equivalent to Registry.getCurrentTenant().getConfig()
      Returns:
      filtered subset Hybris configuration
    • isPropertySensitive

      default boolean isPropertySensitive(String propertyName)
      Method checks if property contains sensitive data (such as password)
      Parameters:
      propertyName - property name to be checked
      Returns:
      true if property contains sensitive data, otherwise false</