Class Sid


  • public class Sid
    extends Object
    Author:
    Andrea Di Cesare
    • Constructor Detail

      • Sid

        public Sid()
    • Method Detail

      • randomUUID

        public static UUID randomUUID()
        retrieve a type 4 (pseudo randomly generated) UUID. The UUID is generated using a cryptographically strong pseudo random number generator.
        Returns:
        A randomly generated UUID
      • randomUUID

        public static UUID randomUUID​(SessionOptions options)
        retrieve a type 4 (pseudo randomly generated) UUID, where MSB 3 and 4 of the A byte are used to flag session options The UUID is generated using a cryptographically strong pseudo random number generator weakend by using 2 bits for flagging.
        Parameters:
        options -
        Returns:
        A randomly generated UUID
      • getSessionOptions

        public static SessionOptions getSessionOptions​(UUID uuid)
        Parameters:
        uuid -
        Returns: