Class AnonymizationUtils
java.lang.Object
com.broadleafcommerce.common.privacy.anonymization.AnonymizationUtils
- Author:
- Nathan Moore (nathandmoore)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Generates a random email with the patternANONYMOUS_EMAIL_PATTERN
.static String
Generates a v4 UUID and removes all hyphens.
-
Field Details
-
ANONYMOUS_EMAIL_PATTERN
- See Also:
-
-
Constructor Details
-
AnonymizationUtils
public AnonymizationUtils()
-
-
Method Details
-
getRandomAnonymousEmail
Generates a random email with the patternANONYMOUS_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
Generates a v4 UUID and removes all hyphens.- Returns:
- A v4 UUID and removes all hyphens.
-