org.exist.security
Class UUIDGenerator

java.lang.Object
  extended by org.exist.security.UUIDGenerator

public class UUIDGenerator
extends Object

UUID or GUID generator. The random code is generated by java's UUID-class (when available Java5+), safehaus' UUIDGenerator (when evailable) or javaexchange's RandomGUID as a fallback. (code in exist available)

Author:
Dannes Wessels

Constructor Summary
UUIDGenerator()
           
 
Method Summary
static String getUUID()
          Generate random UUID code.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUIDGenerator

public UUIDGenerator()
Method Detail

getUUID

public static String getUUID()
Generate random UUID code.

Returns:
UUID code, formatted as f271ec43-bf1f-4030-a269-b11576538f71


Copyright (C) Wolfgang Meier. All rights reserved.