Class PropertiesLoader
java.lang.Object
eu.europa.esig.dss.pki.jaxb.property.PropertiesLoader
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 Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the properties file to be loaded. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getProperty
(String propertyKey) Retrieves the value of a property with the given key from the properties file.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.
-
Field Details
-
APPLICATION_PROPERTIES
The name of the properties file to be loaded.- See Also:
-
-
Method Details
-
getProperty
-
getProperty
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.
-