Class IDGenerator


  • public class IDGenerator
    extends Object
    Code borrowed from AuthenticatorBase.java for generating a secure id's.
    • Field Detail

      • 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 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 Detail

      • IDGenerator

        public IDGenerator()
    • Method Detail

      • generateID

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