Package org.forgerock.config.resolvers
Class PropertiesResolver
java.lang.Object
org.forgerock.config.resolvers.PropertiesResolver
- All Implemented Interfaces:
PropertyResolver
Given a file path this will load the properties within the file as a
PropertyResolver.-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.forgerock.config.resolvers.PropertyResolver
getProperty, getProperty, getProperty
-
Method Details
-
keys
-
getProperty
Description copied from interface:PropertyResolverReturns the value of the specified property. The method returns an emptyOptionalif the property is not found. The resolved property has to be considered sensitive ifsensitiveistrueand implementations are required to handle it with special attention (no logs, ...).- Specified by:
getPropertyin interfacePropertyResolver- Parameters:
key- The name of the requested property. The key can't be null.sensitive-trueis the property value has to be considered a sensitive value (such as a password).- Returns:
- An
Optionalstring that contains the value of the requested property, or emptyOptionalif property is undefined.
-
toString
-