org.nakedobjects.runtime.authentication.standard
Class RandomCodeGeneratorUUID

java.lang.Object
  extended by org.nakedobjects.runtime.authentication.standard.RandomCodeGeneratorUUID
All Implemented Interfaces:
RandomCodeGenerator

public class RandomCodeGeneratorUUID
extends java.lang.Object
implements RandomCodeGenerator


Constructor Summary
RandomCodeGeneratorUUID()
           
 
Method Summary
 java.lang.String generateRandomCode()
          Generates a random string in the form XXXX-XX-XX-XX-XXXXXX where X is a hexadecimal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomCodeGeneratorUUID

public RandomCodeGeneratorUUID()
Method Detail

generateRandomCode

public java.lang.String generateRandomCode()
Generates a random string in the form XXXX-XX-XX-XX-XXXXXX where X is a hexadecimal.

Implementation uses Java's own UUID class.

Specified by:
generateRandomCode in interface RandomCodeGenerator
See Also:
for details on the formatting.


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.