Uses of Interface
org.forgerock.config.resolvers.PropertyResolver
-
Packages that use PropertyResolver Package Description org.forgerock.config.resolvers This package contains the common config property resolvers.org.forgerock.secrets.propertyresolver Provides aSecretStore
implementation that loads secrets from a Common ConfigurationPropertyResolver
and then decodes it with aSecretPropertyFormat
. -
-
Uses of PropertyResolver in org.forgerock.config.resolvers
Classes in org.forgerock.config.resolvers that implement PropertyResolver Modifier and Type Class Description class
ChainedPropertyResolver
Contains a chain ofPropertyResolver
s that should be used to get a token replacement property.class
EnvironmentVariableResolver
A property accessor that allows access to environment variables.class
FlatFileResolver
APropertyResolver
in which each property is stored in its own file in some directory.class
JsonValueResolver
A configuration property resolver that uses a JsonValue to resolve properties.class
ProductPathResolver
A property accessor for product paths.class
PropertiesResolver
Given a file path this will load the properties within the file as aPropertyResolver
.class
SystemPropertyResolver
A SystemPropertyResolver resolves a config token using system properties.Methods in org.forgerock.config.resolvers that return PropertyResolver Modifier and Type Method Description static PropertyResolver
PropertyResolvers. bootstrapPropertyResolver(String productKey, PropertyResolver productPathResolver)
Get the standard bootstrap property resolver, which is defined as a resolver that checks in turn: The product paths resolver Environment variables System properties Any external sources defined in the <productKey>.envconfig.dirs system property, or (if it does not exist) the <PRODUCTKEY>_ENVCONFIG_DIRS environment variable, which is treated as a comma-separated list of source directories, where the files in a directory are resolved in a non-deterministic order, and are checked for duplicate keys.static PropertyResolver
PropertyResolvers. defaultingPropertyResolver()
Returns an empty resolver that always return the default value.static PropertyResolver
PropertyResolvers. environmentVariablePropertyResolver()
Construct a newEnvironmentVariableResolver
.static PropertyResolver
PropertyResolvers. jsonResolver(File jsonFile)
Construct a newJsonValueResolver
using a given file.static PropertyResolver
PropertyResolvers. jsonResolver(String filename)
Construct a newJsonValueResolver
using the given filename.static PropertyResolver
PropertyResolvers. jsonResolver(String name, JsonValue json)
Construct a newJsonValueResolver
using a given aJsonValue
.static PropertyResolver
PropertyResolvers. jsonResolver(Path path)
Construct a newJsonValueResolver
using a file at the given path.static PropertyResolver
PropertyResolvers. jsonResolver(JsonValue json)
Construct a newJsonValueResolver
using a given aJsonValue
.static PropertyResolver
PropertyResolvers. pathPropertyResolver(Map<String,Path> directories)
Constructs a path resolver to expose paths and associated URLs.static PropertyResolver
PropertyResolvers. prefixed(String prefix, PropertyResolver delegate)
Constructs a prefixedPropertyResolver
.static PropertyResolver
PropertyResolvers. productPathPropertyResolver(String productKey, Path instanceDirectory)
Constructs a path resolver to expose a product instance directory.static PropertyResolver
PropertyResolvers. propertiesResolver(File propertiesFile)
Creates aPropertiesResolver
given a file object.static PropertyResolver
PropertyResolvers. propertiesResolver(String filename)
Creates aPropertiesResolver
given a file location.static PropertyResolver
PropertyResolvers. propertiesResolver(String name, Properties properties)
Creates aPropertiesResolver
given aProperties
object.static PropertyResolver
PropertyResolvers. propertiesResolver(Path filename)
Creates aPropertiesResolver
given a file location.static PropertyResolver
PropertyResolvers. propertiesResolver(Properties properties)
Creates aPropertiesResolver
given aProperties
object.static PropertyResolver
PropertyResolvers. secretsPropertyResolver(SecretsProvider secretsProvider)
Constructs a resolver that looks upGenericSecret
s from the givenSecretsProvider
and converts them to UTF-8 strings.static PropertyResolver
PropertyResolvers. singletonPropertyResolver(String key, String value)
Returns a resolver that knows only to resolve the given key.static PropertyResolver
PropertyResolvers. systemPropertyResolver()
Construct a newSystemPropertyResolver
.Methods in org.forgerock.config.resolvers with parameters of type PropertyResolver Modifier and Type Method Description static PropertyResolver
PropertyResolvers. bootstrapPropertyResolver(String productKey, PropertyResolver productPathResolver)
Get the standard bootstrap property resolver, which is defined as a resolver that checks in turn: The product paths resolver Environment variables System properties Any external sources defined in the <productKey>.envconfig.dirs system property, or (if it does not exist) the <PRODUCTKEY>_ENVCONFIG_DIRS environment variable, which is treated as a comma-separated list of source directories, where the files in a directory are resolved in a non-deterministic order, and are checked for duplicate keys.static Consumer<String>
Logs. logResolution(org.slf4j.Logger logger, PropertyResolver resolver, String key, boolean sensitive)
Securely logs resolved value on the givenlogger
.static ChainedPropertyResolver
ChainedPropertyResolver. of(PropertyResolver... resolvers)
Constructs aChainedPropertyResolver
given a a list ofPropertyResolver
s.static PropertyResolver
PropertyResolvers. prefixed(String prefix, PropertyResolver delegate)
Constructs a prefixedPropertyResolver
.Constructors in org.forgerock.config.resolvers with parameters of type PropertyResolver Constructor Description SubstitutionService(PropertyResolver resolver)
Creates a new substitution service that will resolve variables using the givenresolver
.Constructor parameters in org.forgerock.config.resolvers with type arguments of type PropertyResolver Constructor Description ChainedPropertyResolver(List<? extends PropertyResolver> resolvers)
Creates a chained property resolver given a list ofPropertyResolver
s. -
Uses of PropertyResolver in org.forgerock.secrets.propertyresolver
Constructors in org.forgerock.secrets.propertyresolver with parameters of type PropertyResolver Constructor Description PropertyResolverSecretStore(PropertyResolver propertyResolver)
Initialises the property resolver secret store using base64-encoded properties.PropertyResolverSecretStore(PropertyResolver propertyResolver, SecretPropertyFormat defaultPropertyFormat)
Initialises the property resolver secret store.PropertyResolverSecretStore(PropertyResolver propertyResolver, SecretPropertyFormat defaultPropertyFormat, Map<String,SecretPropertyFormat> mappings)
Initialises the property resolver secret store with a mapping of purpose to format.
-