public final class FndKeyGen
extends java.lang.Object
See: http://www.ietf.org/internet-drafts/draft-mealling-uuid-urn-05.txt
The format of generated keys are compatible with Microsoft standard for GUIDs. The class supports two types of UUIDs: time-based UUIDs (version 1) and randomly generated UUIDs (version 4). Time-based UUIDs are unique and fast, but possible to guess. Randomly generated UUIDs are secure (impossible to guess), but slower at startup and slower at run-time. Their uniqueness depends on quality of implementation of java.security.SecureRandom.Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] arg) |
static java.lang.String |
newId()
Return a
String that contains globally unique id. |
static java.lang.String |
newRandomId()
Return a
String that contains globally unique id. |
public static java.lang.String newId()
String
that contains globally unique id.public static java.lang.String newRandomId()
String
that contains globally unique id.public static void main(java.lang.String[] arg) throws java.lang.Exception
java.lang.Exception