Class AnonymizationUtils

java.lang.Object
com.broadleafcommerce.common.privacy.anonymization.AnonymizationUtils

public class AnonymizationUtils extends Object
Author:
Nathan Moore (nathandmoore)
  • Field Details

  • Constructor Details

    • AnonymizationUtils

      public AnonymizationUtils()
  • Method Details

    • getRandomAnonymousEmail

      public static String getRandomAnonymousEmail()
      Generates a random email with the pattern ANONYMOUS_EMAIL_PATTERN. The domain of the email will be the random part based on a v4 UUID.
      Returns:
      An email with a randomly generated string for the domain.
    • getRandomString

      public static String getRandomString()
      Generates a v4 UUID and removes all hyphens.
      Returns:
      A v4 UUID and removes all hyphens.