Class 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 Detail

      • DomainValidator

        public DomainValidator()
    • Method Detail

      • validate

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