Class IdnLabelValidator

java.lang.Object
google.registry.tldconfig.idn.IdnLabelValidator

public final class IdnLabelValidator extends Object
Validates whether a given IDN label can be provisioned for a particular TLD.
  • Constructor Details

    • IdnLabelValidator

      public IdnLabelValidator()
  • Method Details

    • findValidIdnTableForTld

      public Optional<String> findValidIdnTableForTld(String label, String tldStr)
      Returns name of first matching IdnTable if domain label is valid for the given TLD.

      A label is valid if it is considered valid by at least one configured IDN table for that TLD. If no match is found, an absent value is returned.

    • getIdnTablesForTld

      public com.google.common.collect.ImmutableSet<IdnTableEnum> getIdnTablesForTld(Tld tld)
      Returns the names of the IDN tables supported by a tld.