public class IDGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected static Random |
random
A random number generator to use when generating session identifiers.
|
protected static String |
randomClass
The Java class name of the random number generator class to be used when generating session
identifiers.
|
protected static int |
SESSION_ID_BYTES
The number of random bytes to include when generating a session identifier.
|
Constructor and Description |
---|
IDGenerator() |
Modifier and Type | Method and Description |
---|---|
static String |
generateID()
Generate and return a new session identifier.
|
protected static final int SESSION_ID_BYTES
protected static Random random
protected static String randomClass
public static String generateID()
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.