Class Sid
- java.lang.Object
-
- org.restheart.mongodb.db.sessions.Sid
-
public class Sid extends Object
- Author:
- Andrea Di Cesare
-
-
Constructor Summary
Constructors Constructor Description Sid()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SessionOptionsgetSessionOptions(UUID uuid)static UUIDrandomUUID()retrieve a type 4 (pseudo randomly generated) UUID.static UUIDrandomUUID(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 TheUUIDis generated using a cryptographically strong pseudo random number generator weakend by using 2 bits for flagging.
-
-
-
Method Detail
-
randomUUID
public static UUID randomUUID()
retrieve a type 4 (pseudo randomly generated) UUID. TheUUIDis 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 TheUUIDis 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:
-
-