Class PropertiesLoader

java.lang.Object
eu.europa.esig.dss.pki.jaxb.property.PropertiesLoader

public final class PropertiesLoader extends Object
A utility class to load properties from a properties file named "pki.properties". This class provides a method to retrieve property values based on given keys.
  • Field Details

    • APPLICATION_PROPERTIES

      public static final String APPLICATION_PROPERTIES
      The name of the properties file to be loaded.
      See Also:
  • Method Details

    • getProperty

      public static String getProperty(String propertyKey)
      Retrieves the value of a property with the given key from the properties file.
      Parameters:
      propertyKey - The key of the property to retrieve.
      Returns:
      The value of the property if found, NULL otherwise.
    • getProperty

      public static String getProperty(String propertyKey, String defaultValue)
      Retrieves the value of a property with the given key from the properties file, with the possibility to define a default property.
      Parameters:
      propertyKey - The key of the property to retrieve.
      defaultValue - A default value to be returned if the property is not found or empty.
      Returns:
      The value of the property if found, or the defaultValue if the property is not found or NULL.