Package com.sun.identity.sm.validators
Class MailAddressValidator
java.lang.Object
com.sun.identity.sm.validators.MailAddressValidator
- All Implemented Interfaces:
com.sun.identity.sm.validators.Validator
@SupportedAll
public class MailAddressValidator
extends Object
implements com.sun.identity.sm.validators.Validator
Validates mail address This class is constructed using default(noarguments)
constructor and mail address is passed to validate function with optional
rules The passed mail address is validated for authenticity and boolean value
is returned accordingly.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MailAddressValidator
public MailAddressValidator()
-
-
Method Details
-
validate
Determines if the value is a valid email address string- Parameters:
value
- string value to validaterule
- not used by this method- Returns:
- true if the value represents a valid email address string
-
validate
Check if the given email address is valid- Parameters:
addr
- value to test- Returns:
- true if the string contains valid email characters
-