org.springframework.webflow.util
Class RandomGuidUidGenerator

java.lang.Object
  extended by org.springframework.webflow.util.RandomGuidUidGenerator
All Implemented Interfaces:
java.io.Serializable, UidGenerator

public class RandomGuidUidGenerator
extends java.lang.Object
implements UidGenerator, java.io.Serializable

A key generator that uses the RandomGuid support class. The default implementation used by the webflow system.

Author:
Keith Donald
See Also:
Serialized Form

Constructor Summary
RandomGuidUidGenerator()
           
 
Method Summary
 java.io.Serializable generateUid()
          Generate a new unique id.
 boolean isSecure()
          Returns whether or not the generated random numbers are secure, meaning cryptographically strong.
 java.io.Serializable parseUid(java.lang.String encodedUid)
          Convert the string-encoded uid into its original object form.
 void setSecure(boolean secure)
          Sets whether or not the generated random numbers should be secure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomGuidUidGenerator

public RandomGuidUidGenerator()
Method Detail

isSecure

public boolean isSecure()
Returns whether or not the generated random numbers are secure, meaning cryptographically strong.


setSecure

public void setSecure(boolean secure)
Sets whether or not the generated random numbers should be secure. If set to true, generated GUIDs are cryptographically strong.


generateUid

public java.io.Serializable generateUid()
Description copied from interface: UidGenerator
Generate a new unique id.

Specified by:
generateUid in interface UidGenerator
Returns:
a serializable id, guaranteed to be unique in some context

parseUid

public java.io.Serializable parseUid(java.lang.String encodedUid)
Description copied from interface: UidGenerator
Convert the string-encoded uid into its original object form.

Specified by:
parseUid in interface UidGenerator
Parameters:
encodedUid - the string encoded uid
Returns:
the converted uid


Copyright © 2004-2007. All Rights Reserved.