public class RandomSessionIdGenerator extends Object implements SessionIdGenerator
Random
instance to generate random IDs. The default Random
implementation is a SecureRandom
with the SHA1PRNG
algorithm.Constructor and Description |
---|
RandomSessionIdGenerator() |
Modifier and Type | Method and Description |
---|---|
Serializable |
generateId(Session session)
Returns the String value of the configured
Random 's nextLong() invocation. |
Random |
getRandom() |
void |
setRandom(Random random) |
public RandomSessionIdGenerator()
public Serializable generateId(Session session)
Random
's nextLong()
invocation.generateId
in interface SessionIdGenerator
session
- the Session
instance to which the ID will be applied.Random
's Random.nextLong()
invocation.Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.