|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.common.util.UUIDGenerator
Adapted from ejb plugin key generated. The implementation of UUID key generator based on the algorithm from Floyd Marinescu's EJB Design Patterns.
Field Summary | |
private static char[] |
hexDigits
Hex digits |
private java.lang.String |
midValue
cached middle value |
private java.security.SecureRandom |
seeder
secure random to provide nonrepeating seed |
Constructor Summary | |
UUIDGenerator()
|
Method Summary | |
java.lang.String |
generateKey()
|
private java.lang.String |
toHex(int value,
int length)
Converts int value to string hex representation |
private static int |
toInt(byte[] bytes)
Constructs int value from byte array |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final char[] hexDigits
private java.security.SecureRandom seeder
private java.lang.String midValue
Constructor Detail |
public UUIDGenerator()
Method Detail |
public java.lang.String generateKey()
private java.lang.String toHex(int value, int length)
private static int toInt(byte[] bytes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |