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