|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.wadi.impl.TomcatSessionIdFactory
An IdGenerator borrowed from Tomcat
Field Summary | |
protected Log |
_log
|
protected String |
algorithm
The message digest algorithm to be used when generating session identifiers. |
protected static String |
DEFAULT_ALGORITHM
The default message digest algorithm to use if we cannot use the requested one. |
protected String |
devRandomSource
|
protected MessageDigest |
digest
Return the MessageDigest implementation to be used when creating session identifiers. |
protected String |
entropy
A String initialization parameter used to increase the entropy of the initialization of our random number generator. |
protected Log |
log
|
protected Random |
random
A random number generator to use when generating session identifiers. |
protected String |
randomClass
The Java class name of the random number generator class to be used when generating session identifiers. |
protected DataInputStream |
randomIS
|
protected static int |
SESSION_ID_BYTES
The number of random bytes to include when generating a session identifier. |
protected org.codehaus.wadi.impl.TomcatSessionIdFactory.StringManager |
sm
|
protected org.codehaus.wadi.impl.TomcatSessionIdFactory.Support |
support
|
Constructor Summary | |
TomcatSessionIdFactory()
|
Method Summary | |
String |
create()
|
protected String |
generateSessionId()
Generate and return a new session identifier. |
MessageDigest |
getDigest()
Return the MessageDigest object to be used for calculating session identifiers. |
String |
getEntropy()
Return the entropy increaser value, or compute a semi-useful value if this String has not yet been set. |
Random |
getRandom()
Return the random number generator instance we should use for generating session identifiers. |
protected void |
getRandomBytes(byte[] bytes)
|
int |
getSessionIdLength()
|
void |
setEntropy(String entropy)
Set the entropy increaser value. |
void |
setRandomFile(String s)
Use /dev/random-type special device. |
void |
setSessionIdLength(int l)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final Log _log
protected final Log log
protected org.codehaus.wadi.impl.TomcatSessionIdFactory.StringManager sm
protected org.codehaus.wadi.impl.TomcatSessionIdFactory.Support support
protected DataInputStream randomIS
protected String devRandomSource
protected static final String DEFAULT_ALGORITHM
protected static final int SESSION_ID_BYTES
protected String algorithm
java.security.MessageDigest
class on your platform.
protected MessageDigest digest
protected Random random
protected String randomClass
protected String entropy
Constructor Detail |
public TomcatSessionIdFactory()
Method Detail |
public String create()
create
in interface SessionIdFactory
public int getSessionIdLength()
getSessionIdLength
in interface SessionIdFactory
public void setSessionIdLength(int l)
setSessionIdLength
in interface SessionIdFactory
public String getEntropy()
public void setEntropy(String entropy)
entropy
- The new entropy increaser valuepublic Random getRandom()
public void setRandomFile(String s)
protected String generateSessionId()
public MessageDigest getDigest()
protected void getRandomBytes(byte[] bytes)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |