Package com.sun.identity.sm
Interface ServiceAttributeValidator
-
@SupportedAll public interface ServiceAttributeValidator
The interfaceServiceAttributeValidator
should be implemented by the services/applications if validator plugins are required.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
validate(Set<String> values)
Validates the given set of string values.default boolean
validate(Set<String> values, String orgName)
Validates the given set of string values.
-
-
-
Method Detail
-
validate
boolean validate(Set<String> values)
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
default boolean validate(Set<String> values, String orgName)
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
-
-