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 Summary
Constructors Constructor Description SessionIdentifierGenerator() -
Method Summary
Modifier and Type Method Description StringnextSessionId()Returns the next session id using aSecureRandom
-
Constructor Details
-
SessionIdentifierGenerator
public SessionIdentifierGenerator()
-
-
Method Details
-
nextSessionId
Returns the next session id using aSecureRandom- Returns:
- the next session id using a
SecureRandom
-