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
Constructors Constructor Description MailAddressValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
validate(String addr)
Check if the given email address is validboolean
validate(String value, String rule)
Determines if the value is a valid email address string
-
-
-
Method Detail
-
validate
public boolean validate(String value, String rule)
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
public boolean validate(String addr)
Check if the given email address is valid- Parameters:
addr
- value to test- Returns:
- true if the string contains valid email characters
-
-