Class Sid
java.lang.Object
org.restheart.mongodb.db.sessions.Sid
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionOptionsgetSessionOptions(UUID uuid) static UUIDretrieve 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.
-
Constructor Details
-
Sid
public Sid()
-
-
Method Details
-
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
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
- Parameters:
uuid-- Returns:
-