Class IdnLabelValidator


  • public final class IdnLabelValidator
    extends java.lang.Object
    Validates whether a given IDN label can be provisioned for a particular TLD.
    • Method Detail

      • createDefaultIdnLabelValidator

        public static IdnLabelValidator createDefaultIdnLabelValidator()
      • findValidIdnTableForTld

        public java.util.Optional<java.lang.String> findValidIdnTableForTld​(java.lang.String label,
                                                                            java.lang.String tld)
        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.