public class PurposeMappingValidator extends Object implements ServiceConfigValidatorV2
This type (including all methods, constructors and fields) is continuing to evolve and so should be expected to change, potentially in backwards-incompatible ways even in a minor release. Changes are documented at the time of product release.
Constructor and Description |
---|
PurposeMappingValidator(AnnotatedServiceRegistry serviceRegistry) |
@Inject public PurposeMappingValidator(AnnotatedServiceRegistry serviceRegistry)
public void validate(Realm realm, String serviceName, List<String> configPath, Map<String,Set<String>> attributes) throws ServiceConfigException, ServiceErrorException
ServiceConfigValidatorV2
validate
in interface ServiceConfigValidatorV2
realm
- The realm the config is in, or null
if it is not in a realm.serviceName
- The name of the service to be validated.configPath
- The names of the service config. The last element in the list will be the name of this config.
In the case of service-level (non-SubSchema) config, this will be an empty list.attributes
- The map of attribute names to values. This map will contain the default values for attributes
where a value is not defined in this instance.ServiceConfigException
- If the configuration is not valid, throw an SMSException, with a description of
why it is invalid.ServiceErrorException
- If an exception occurred when trying to validate the config.Copyright © 2010-2018, ForgeRock All Rights Reserved.