Class AnalyticsUtils
java.lang.Object
com.atlassian.diagnostics.internal.analytics.AnalyticsUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoUuidFormat(String value) Calculates a cryptographic hash for the provided value and returns the first 16 bytes of the hash in UUID format.
-
Constructor Details
-
AnalyticsUtils
public AnalyticsUtils()
-
-
Method Details
-
toUuidFormat
Calculates a cryptographic hash for the provided value and returns the first 16 bytes of the hash in UUID format. This is useful for analytics because UUID values are always allowed by the analytics framework. Encoding a value as a UUID give us a consistent mapping for a value, without disclosing the actual value.- Parameters:
value- the value to encode- Returns:
- a UUID representation of the hashed value, or
nullifvaluewasnull
-