Class AutoReseedRandom

java.lang.Object
java.util.Random
java.security.SecureRandom
org.exoplatform.web.security.security.AutoReseedRandom
All Implemented Interfaces:
Serializable, Runnable, RandomGenerator

public class AutoReseedRandom extends SecureRandom implements Runnable
Subclass of SecureRandom which is able to reseed itself every reseedingPeriod milliseconds. All methods inherited from SecureRandom are passed to delegate. When reseeding the delegate is recreated. The reseeding happens in a new Thread not to block the Thread in which any of the next* methods is called.
See Also: