Uses of Interface
org.forgerock.config.resolvers.PropertyResolver
Package
Description
This package contains the common config property resolvers.
Provides a
SecretStore
implementation that loads secrets from a Common Configuration
PropertyResolver
and then decodes it with a
SecretPropertyFormat
.-
Uses of PropertyResolver in org.forgerock.config.resolvers
Modifier and TypeClassDescriptionclass
Contains a chain ofPropertyResolver
s that should be used to get a token replacement property.class
A property accessor that allows access to environment variables.class
Deprecated.This class is currently only used in conjunction with the PropertyResolverSecretStore and this pairing is deprecated.class
A configuration property resolver that uses a JsonValue to resolve properties.class
A property accessor for product paths.class
Given a file path this will load the properties within the file as aPropertyResolver
.class
A SystemPropertyResolver resolves a config token using system properties.Modifier and TypeMethodDescriptionstatic 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
.Modifier and TypeMethodDescriptionstatic 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.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
.static SubstitutionVisitor.Builder
SubstitutionVisitor.substitution
(PropertyResolver resolver) Create a builder forSubstitutionVisitor
.ModifierConstructorDescriptionSubstitutionService
(PropertyResolver resolver) Creates a new substitution service that will resolve variables using the givenresolver
.ModifierConstructorDescriptionChainedPropertyResolver
(List<? extends PropertyResolver> resolvers) Creates a chained property resolver given a list ofPropertyResolver
s. -
Uses of PropertyResolver in org.forgerock.secrets.propertyresolver
ModifierConstructorDescriptionPropertyResolverSecretStore
(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.