Class AnalyticsUtils

java.lang.Object
com.atlassian.diagnostics.internal.analytics.AnalyticsUtils

public class AnalyticsUtils extends Object
  • Constructor Details

    • AnalyticsUtils

      public AnalyticsUtils()
  • Method Details

    • toUuidFormat

      public static String toUuidFormat(String value)
      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 null if value was null