Package google.registry.bsa
Class IdnChecker
java.lang.Object
google.registry.bsa.IdnChecker
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 Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet
<IdnTableEnum> getAllValidIdns
(String label) Returns all IDNs in which thelabel
is valid.com.google.common.collect.ImmutableSet
<Tld> getForbiddingTlds
(com.google.common.collect.ImmutableSet<String> idnTables) Returns the TLDs that do not support any IDN in theidnTables
.com.google.common.collect.ImmutableSet
<Tld> getSupportingTlds
(com.google.common.collect.ImmutableSet<String> idnTables) Returns the TLDs that support at least one IDN in theidnTables
.
-
Method Details
-
getAllValidIdns
Returns all IDNs in which thelabel
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 theidnTables
.- Parameters:
idnTables
- String names ofIdnTableEnum
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 theidnTables
.- Parameters:
idnTables
- String names ofIdnTableEnum
values
-