Class SessionIdentifierGenerator

java.lang.Object
org.kawanfw.sql.api.server.session.SessionIdentifierGenerator

public class SessionIdentifierGenerator
extends Object
Session id generator with 26 long strings.

Uses a static SecureRandom.
Each call to nextSessionId() calls SecureRandom#nextInt(int).
See Open Source Edition source code.

Author:
Nicolas de Pomereu
  • Constructor Details

    • SessionIdentifierGenerator

      public SessionIdentifierGenerator()
  • Method Details

    • nextSessionId

      public String nextSessionId()
      Returns the next session id using a SecureRandom
      Returns:
      the next session id using a SecureRandom