Package org.apache.axis.utils
Class SessionUtils
- java.lang.Object
-
- org.apache.axis.utils.SessionUtils
-
public class SessionUtils extends java.lang.Object
Code borrowed from AuthenticatorBase.java for generating a secure id's.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
log
Field logprotected static java.util.Random
random
A random number generator to use when generating session identifiers.protected static java.lang.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 Summary
Constructors Constructor Description SessionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Long
generateSession()
Generate and return a new session identifier.static java.lang.String
generateSessionId()
Generate and return a new session identifier.
-
-
-
Field Detail
-
log
protected static org.apache.commons.logging.Log log
Field log
-
SESSION_ID_BYTES
protected static final int SESSION_ID_BYTES
The number of random bytes to include when generating a session identifier.- See Also:
- Constant Field Values
-
random
protected static java.util.Random random
A random number generator to use when generating session identifiers.
-
randomClass
protected static java.lang.String randomClass
The Java class name of the random number generator class to be used when generating session identifiers.
-
-