com.sun.identity.sm
Interface ServiceAttributeValidator
- public interface ServiceAttributeValidator
The interface ServiceAttributeValidator
should be implemented
by the services/applications if validator plugins are required.
Method Summary |
boolean |
validate(java.util.Set values)
Validates the given set of string values. |
validate
public boolean validate(java.util.Set 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
- the Set
of attribute values to validate- Returns:
- true if validates successfully; false otherwise
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.