Class UUIDUtil

java.lang.Object
org.frankframework.util.UUIDUtil

@NullMarked public class UUIDUtil extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SecureRandom
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    asHex(byte[] buf)
    Create a hexadecimal representation of the bytes in the array.
    static String
    Create a unique UUID string containing only digits, with a length of 31 .
    static String
    Creates a Universally Unique Identifier, via the java.util.UUID class (always 36 characters in length).
    static String
    createRandomUUID(boolean removeDashes)
    Creates a Universally Unique Identifier, via the java.util.UUID class (36 characters or 32 characters without dashes).
    static String
    Creates a Universally Unique Identifier, using the host IP address and the java.rmi.server.UID class.
    static String
    Creates a Universally Unique Identifier, using the host IP address and the java.rmi.server.UID class.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • createSimpleUUID

      public static String createSimpleUUID()
      Creates a Universally Unique Identifier, using the host IP address and the java.rmi.server.UID class.
    • createUUID

      public static String createUUID()
      Creates a Universally Unique Identifier, using the host IP address and the java.rmi.server.UID class. This method is currently an alias for createSimpleUUID()
    • createRandomUUID

      public static String createRandomUUID(boolean removeDashes)
      Creates a Universally Unique Identifier, via the java.util.UUID class (36 characters or 32 characters without dashes).
    • createRandomUUID

      public static String createRandomUUID()
      Creates a Universally Unique Identifier, via the java.util.UUID class (always 36 characters in length).
    • asHex

      public static String asHex(byte[] buf)
      Create a hexadecimal representation of the bytes in the array.
      Returns:
      the hexadecimal string representation of the byte array.
    • createNumericUUID

      public static String createNumericUUID()
      Create a unique UUID string containing only digits, with a length of 31 .
      Returns:
      a unique UUID string with length 31 (ipaddress with length 4*3, currentTime with length 13, hashcode with length 6) containing only digits 0-9.