org.apache.axis.utils

Class SessionUtils

public class SessionUtils extends Object

Code borrowed from AuthenticatorBase.java for generating a secure id's.
Field Summary
protected static Loglog
Field log
protected static Randomrandom
A random number generator to use when generating session identifiers.
protected static StringrandomClass
The Java class name of the random number generator class to be used when generating session identifiers.
protected static intSESSION_ID_BYTES
The number of random bytes to include when generating a session identifier.
Method Summary
static LonggenerateSession()
Generate and return a new session identifier.
static StringgenerateSessionId()
Generate and return a new session identifier.

Field Detail

log

protected static Log log
Field log

random

protected static Random random
A random number generator to use when generating session identifiers.

randomClass

protected static String randomClass
The Java class name of the random number generator class to be used when generating session identifiers.

SESSION_ID_BYTES

protected static final int SESSION_ID_BYTES
The number of random bytes to include when generating a session identifier.

Method Detail

generateSession

public static Long generateSession()
Generate and return a new session identifier.

Returns: a new session.

generateSessionId

public static String generateSessionId()
Generate and return a new session identifier.

Returns: a new session id

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.