org.directwebremoting.impl
Class DefaultSecureIdGenerator

java.lang.Object
  extended by org.directwebremoting.impl.DefaultSecureIdGenerator
All Implemented Interfaces:
IdGenerator

public class DefaultSecureIdGenerator
extends java.lang.Object
implements IdGenerator

An id generator that generates secure (non-predictable) random strings that are guaranteed to be unique for eternity within the scope of the running server, as long as the real-time clock is not adjusted backwards.

Author:
Mike Wilson [mikewse at g mail dot com]

Constructor Summary
DefaultSecureIdGenerator()
           
 
Method Summary
 java.lang.String generate()
          Generates an id string guaranteed to be unique for eternity within the scope of the running server, as long as the real-time clock is not adjusted backwards.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSecureIdGenerator

public DefaultSecureIdGenerator()
Method Detail

generate

public java.lang.String generate()
Generates an id string guaranteed to be unique for eternity within the scope of the running server, as long as the real-time clock is not adjusted backwards. The generated string consists of alphanumerics (A-Z, a-z, 0-9) and symbols *, $ and -.

Specified by:
generate in interface IdGenerator
Returns:
A unique id string
See Also:
IdGenerator.generate()

Copyright 2008