Package com.sun.identity.policy
Class ResourceComparatorValidator
- java.lang.Object
-
- com.sun.identity.policy.ResourceComparatorValidator
-
- All Implemented Interfaces:
ServiceAttributeValidator
public class ResourceComparatorValidator extends Object implements ServiceAttributeValidator
This validator checks the wildcard and oneLevelWildcard defined for a resource comparator. If they are equal or overlapping then they are invalid values.
-
-
Constructor Summary
Constructors Constructor Description ResourceComparatorValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
validate(Set<String> values)
Validates a set of values for rules built into this method.
-
-
-
Method Detail
-
validate
public boolean validate(Set<String> values)
Validates a set of values for rules built into this method. Returnstrue
if "wildcard" and "oneLevelWildcard" are either equal or overlapping in values.- Specified by:
validate
in interfaceServiceAttributeValidator
- Parameters:
values
- the set of values to be validated- Returns:
true
if "wildcard" and "oneLevelWildcard" are either equal or overlapping in values,false
otherwise
-
-