Class RegistrarUtils

java.lang.Object
google.registry.util.RegistrarUtils

public class RegistrarUtils extends Object
Utilities for working with Registrar objects.
  • Constructor Details

    • RegistrarUtils

      public RegistrarUtils()
  • Method Details

    • normalizeRegistrarName

      public static String normalizeRegistrarName(String name)
      Strip out anything that isn't a letter or digit, and lowercase.
    • normalizeRegistrarId

      public static String normalizeRegistrarId(String registrarId)
      Returns a normalized registrar ID by taking the input and making it lowercase and removing all characters that aren't alphanumeric or hyphens. The normalized id should be unique in the database, and is suitable for use in email addresses.