org.apache.axis.utils

Class SessionUtils


public class SessionUtils
extends java.lang.Object

Code borrowed from AuthenticatorBase.java for generating a secure id's.

Field Summary

protected static int
SESSION_ID_BYTES
The number of random bytes to include when generating a session identifier.
protected static Log
log
Field log
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.

Method Summary

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

Field Details

SESSION_ID_BYTES

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

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.

Method Details

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 © 2005 Apache Web Services Project. All Rights Reserved.