Package com.sun.identity.sm
Interface ServiceAttributeValidator
The interface
ServiceAttributeValidator
should be implemented
by the services/applications if validator plugins are required.-
Method Summary
-
Method Details
-
validate
Validates the given set of string values.Example: Set values = new HashSet(); values.add("o=iplanet.com"); values.add("uid=amadmin,ou=people,o=isp"); if ( DNValidator.validate(values) ) { System.out.println("valid attribute values"); } else { System.out.println("invalid attribute values"); }
- Parameters:
values
- theSet
of attribute values to validate- Returns:
- true if validates successfully; false otherwise
-
validate
Validates the given set of string values.Example: Set values = new HashSet(); values.add("o=iplanet.com"); values.add("uid=amadmin,ou=people,o=isp"); if ( DNValidator.validate(values) ) { System.out.println("valid attribute values"); } else { System.out.println("invalid attribute values"); }
- Parameters:
values
- theSet
of attribute values to validateorgName
- the realm name that is being validated.- Returns:
- true if validates successfully; false otherwise
-