Package org.apache.myfaces.util.token
Class SessionIdGenerator
java.lang.Object
org.apache.myfaces.util.token.SessionIdGenerator
NOTE: Class taken from tomcat 7 org.apache.catalina.util.SessionIdGenerator
 and used here as an alternative for server side state token encryption.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGenerate and return a new session identifier.voidgetRandomBytes(byte[] bytes) voidsetJvmRoute(String jvmRoute) Specify the node identifier associated with this node which will be included in the generated session ID.voidsetSecureRandomAlgorithm(String secureRandomAlgorithm) Specify a non-default algorithm to use to generate random numbers.voidsetSecureRandomClass(String secureRandomClass) Specify a non-default @{linkSecureRandomimplementation to use.voidsetSecureRandomProvider(String secureRandomProvider) Specify a non-default provider to use to generate random numbers.voidsetSessionIdLength(int sessionIdLength) Specify the number of bytes for a session ID
- 
Constructor Details- 
SessionIdGeneratorpublic SessionIdGenerator()
 
- 
- 
Method Details- 
setSecureRandomClassSpecify a non-default @{linkSecureRandomimplementation to use.- Parameters:
- secureRandomClass- The fully-qualified class name
 
- 
setSecureRandomAlgorithmSpecify a non-default algorithm to use to generate random numbers.- Parameters:
- secureRandomAlgorithm- The name of the algorithm
 
- 
setSecureRandomProviderSpecify a non-default provider to use to generate random numbers.- Parameters:
- secureRandomProvider- The name of the provider
 
- 
setJvmRouteSpecify the node identifier associated with this node which will be included in the generated session ID.- Parameters:
- jvmRoute- The node identifier
 
- 
setSessionIdLengthpublic void setSessionIdLength(int sessionIdLength) Specify the number of bytes for a session ID- Parameters:
- sessionIdLength- Number of bytes
 
- 
generateSessionIdGenerate and return a new session identifier.
- 
getRandomBytespublic void getRandomBytes(byte[] bytes) 
 
-