public abstract class SessionIdGeneratorBase extends Object implements SessionIdGenerator
Constructor and Description |
---|
SessionIdGeneratorBase() |
Modifier and Type | Method and Description |
---|---|
String |
generateSessionId()
Generate and return a new session identifier.
|
String |
getJvmRoute()
Return the node identifier associated with this node which will be
included in the generated session ID.
|
protected void |
getRandomBytes(byte[] bytes) |
int |
getSessionIdLength()
Return the number of bytes for a session ID
|
void |
setJvmRoute(String jvmRoute)
Specify the node identifier associated with this node which will be
included in the generated session ID.
|
void |
setSecureRandomAlgorithm(String secureRandomAlgorithm)
Specify a non-default algorithm to use to generate random numbers.
|
void |
setSecureRandomClass(String secureRandomClass)
Specify a non-default @{link
SecureRandom implementation to use. |
void |
setSecureRandomProvider(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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateSessionId
public void setSecureRandomClass(String secureRandomClass)
SecureRandom
implementation to use.secureRandomClass
- The fully-qualified class namepublic void setSecureRandomAlgorithm(String secureRandomAlgorithm)
secureRandomAlgorithm
- The name of the algorithmpublic void setSecureRandomProvider(String secureRandomProvider)
secureRandomProvider
- The name of the providerpublic String getJvmRoute()
getJvmRoute
in interface SessionIdGenerator
public void setJvmRoute(String jvmRoute)
setJvmRoute
in interface SessionIdGenerator
jvmRoute
- The node identifierpublic int getSessionIdLength()
getSessionIdLength
in interface SessionIdGenerator
public void setSessionIdLength(int sessionIdLength)
setSessionIdLength
in interface SessionIdGenerator
sessionIdLength
- Number of bytespublic String generateSessionId()
generateSessionId
in interface SessionIdGenerator
protected void getRandomBytes(byte[] bytes)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.