Class SessionUtils

java.lang.Object
org.apache.axis.utils.SessionUtils

public class SessionUtils extends 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
    Field log
    protected static Random
    A random number generator to use when generating session identifiers.
    protected static String
    The Java class name of the random number generator class to be used when generating session identifiers.
    protected static final int
    The number of random bytes to include when generating a session identifier.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Long
    Generate and return a new session identifier.
    static String
    Generate and return a new session identifier.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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:
    • 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.
  • Constructor Details

    • SessionUtils

      public SessionUtils()
  • Method Details

    • generateSessionId

      public static String generateSessionId()
      Generate and return a new session identifier.
      Returns:
      a new session id
    • generateSession

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