Class DuplicateKeyMapValueValidator
- java.lang.Object
-
- com.sun.identity.common.configuration.DuplicateKeyMapValueValidator
-
- All Implemented Interfaces:
ServiceAttributeValidator
public class DuplicateKeyMapValueValidator extends Object implements ServiceAttributeValidator
Validates map value properties in Agent Properties. e.g.com.sun.identity.agents.config.response.attribute.mapping[]=Map values should be Strings of the form: [somekey] = somevalue etc l.h.s is key value surrounded by brackets separator is mandatory "=" equals sign r.h.s is some string value, anything since this is not so fined- grained to test values of any one specific property's value set. r.h.s can be empty or just whitespace l.h.s key value can NOT be empty l.h.s key values can not be duplicates white space is allowed everywhere blank or empty values are allowed as some props dont have any value to be specified Some strange examples that would be acceptable values: blank or empty set [a_key_but_no_value]= (note no value on r.h.s) []= (a common default value) [ ] = (variation on default value) [key_and_or_value_contains_=_sign] == (equal sign is valid data) Note: brackets are not allowed as part of key or value data exact duplicate keys are allowed
-
-
Constructor Summary
Constructors Constructor Description DuplicateKeyMapValueValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvalidate(Set<String> values)Returnstrueif values are of map type format.
-
-
-
Method Detail
-
validate
public boolean validate(Set<String> values)
Returnstrueif values are of map type format.- Specified by:
validatein interfaceServiceAttributeValidator- Parameters:
values- contains the set of values to be validated- Returns:
trueif values are of map type format
-
-