public final class UuidUtil extends Object
UUID.
Creates UUID of different quality of randomness,
which are based on cryptographically weak Random
and strong SecureRandom pseudo random number generators.
| Modifier and Type | Field and Description |
|---|---|
static UUID |
NIL_UUID
The nil UUID is special form of UUID that is specified to have all
128 bits set to zero as described in the RFC 4122.
|
| Modifier and Type | Method and Description |
|---|---|
static UUID |
newSecureUUID()
Static factory to retrieve a type 4 (pseudo randomly generated) UUID.
|
static String |
newSecureUuidString()
Static factory to retrieve a type 4 (pseudo randomly generated) UUID based string.
|
static UUID |
newUnsecureUUID()
Static factory to retrieve a type 4 (pseudo randomly generated) UUID.
|
static String |
newUnsecureUuidString()
Static factory to retrieve a type 4 (pseudo randomly generated) UUID based string.
|
public static final UUID NIL_UUID
public static String newUnsecureUuidString()
UUID string is generated using a cryptographically weak pseudo random number generator.UUID base stringpublic static String newSecureUuidString()
UUID string is generated using a cryptographically strong pseudo random number generator.UUID base stringpublic static UUID newUnsecureUUID()
UUID is generated using a cryptographically weak pseudo random number generator.UUIDpublic static UUID newSecureUUID()
UUID is generated using a cryptographically strong pseudo random number generator.UUIDCopyright © 2019 Hazelcast, Inc.. All rights reserved.