Class IdnChecker

java.lang.Object
google.registry.bsa.IdnChecker

public class IdnChecker extends Object
Checks labels' validity wrt Idns in TLDs enrolled with BSA.

Each instance takes a snapshot of the TLDs at instantiation time, and should be limited to the Request scope.

  • Method Details

    • getAllValidIdns

      public com.google.common.collect.ImmutableSet<IdnTableEnum> getAllValidIdns(String label)
      Returns all IDNs in which the label is valid.
    • getSupportingTlds

      public com.google.common.collect.ImmutableSet<Tld> getSupportingTlds(com.google.common.collect.ImmutableSet<String> idnTables)
      Returns the TLDs that support at least one IDN in the idnTables.
      Parameters:
      idnTables - String names of IdnTableEnum values
    • getForbiddingTlds

      public com.google.common.collect.ImmutableSet<Tld> getForbiddingTlds(com.google.common.collect.ImmutableSet<String> idnTables)
      Returns the TLDs that do not support any IDN in the idnTables.
      Parameters:
      idnTables - String names of IdnTableEnum values