Class Uuid5Util

java.lang.Object
org.apache.nifi.uuid5.Uuid5Util

public class Uuid5Util extends Object
UUID Version 5 generator based on RFC 4122 Section 4.3 with SHA-1 hash algorithm for names
  • Field Details

  • Constructor Details

    • Uuid5Util

      public Uuid5Util()
  • Method Details

    • fromString

      public static String fromString(String name, String namespace)
      Generate UUID Version 5 based on SHA-1 hash of name with optional UUID namespace
      Parameters:
      name - Name for deterministic UUID generation with SHA-1 hash
      namespace - Optional namespace defaults to 0 when not provided
      Returns:
      UUID string consisting of 36 lowercase characters
    • getNameHash

      private static byte[] getNameHash(byte[] name)