Package com.sun.identity.sm.validators
Class DNValidator
- java.lang.Object
-
- com.sun.identity.sm.validators.DNValidator
-
- All Implemented Interfaces:
com.sun.identity.sm.validators.Validator
@SupportedAll public class DNValidator extends Object implements com.sun.identity.sm.validators.Validator
-
-
Constructor Summary
Constructors Constructor Description DNValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
validate(String value)
Determines whether the specified string is a valid DNboolean
validate(String value, String rule)
Determines whether the specified string is a valid DN
-
-
-
Method Detail
-
validate
public boolean validate(String value, String rule)
Determines whether the specified string is a valid DN- Parameters:
value
- string value to validaterule
- not used by this method- Returns:
- true if value is an valid DN, else return false
-
validate
public boolean validate(String value)
Determines whether the specified string is a valid DN- Parameters:
value
- string to test- Returns:
- true if value is an DN
-
-