Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8273642

The UUID class does not implement RFC4122 fully (UUID type 5 is missing).

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      ADDITIONAL SYSTEM INFORMATION :
      All systems, All operating systems, All Java versions since 1.5

      A DESCRIPTION OF THE PROBLEM :
      The java.util.UUID class ( https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/util/UUID.html ) says it implements RFC 4122 ( https://www.ietf.org/rfc/rfc4122.txt ).

      The problem I would like to have fixed is that this class only implements UUID type 1,2,3 and 4.
      UUID type 5 (essentially type 3 with SHA-1 instead of MD5) is part of RFC4122 (see section 4.1.3 ) is missing from this implementation.

      The effect is that if you want this type of UUID all over the internet you find the advise to copy and past some code into your project, which I consider to be a bad solution.
       
      I kindly ask your to implement this UUID type also.
      This should be quite simple as it essentially is the same as the Type 3 code with just a different hashing algorithm.



        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: