public class SessionIdGenerator
extends java.lang.Object
Constructor and Description |
---|
SessionIdGenerator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateSessionId()
Generate and return a new session identifier.
|
void |
setJvmRoute(java.lang.String jvmRoute)
Specify the node identifier associated with this node which will be
included in the generated session ID.
|
void |
setSecureRandomAlgorithm(java.lang.String secureRandomAlgorithm)
Specify a non-default algorithm to use to generate random numbers.
|
void |
setSecureRandomClass(java.lang.String secureRandomClass)
Specify a non-default @{link
SecureRandom implementation to use. |
void |
setSecureRandomProvider(java.lang.String secureRandomProvider)
Specify a non-default provider to use to generate random numbers.
|
void |
setSessionIdLength(int sessionIdLength)
Specify the number of bytes for a session ID
|
public void setSecureRandomClass(java.lang.String secureRandomClass)
SecureRandom
implementation to use.secureRandomClass
- The fully-qualified class namepublic void setSecureRandomAlgorithm(java.lang.String secureRandomAlgorithm)
secureRandomAlgorithm
- The name of the algorithmpublic void setSecureRandomProvider(java.lang.String secureRandomProvider)
secureRandomProvider
- The name of the providerpublic void setJvmRoute(java.lang.String jvmRoute)
jvmRoute
- The node identifierpublic void setSessionIdLength(int sessionIdLength)
sessionIdLength
- Number of bytespublic java.lang.String generateSessionId()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.