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 Details

    • MailAddressValidator

      public MailAddressValidator()
  • Method Details

    • validate

      public boolean validate(String value, String rule)
      Determines if the value is a valid email address string
      Parameters:
      value - string value to validate
      rule - 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