public class MapValueValidator extends Object implements ServiceAttributeValidator
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 not allowedConstructor and Description |
---|
MapValueValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(Set<String> values)
Returns
true if values are of map type format. |
public boolean validate(Set<String> values)
true
if values are of map type format.validate
in interface ServiceAttributeValidator
values
- contains the set of values to be validatedtrue
if values are of map type format.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.