org.jboss.mq.security
Class SessionIDGenerator

java.lang.Object
  extended byorg.jboss.mq.security.SessionIDGenerator

public class SessionIDGenerator
extends java.lang.Object

Generator of session id for ConnecttionToken. There should be nonguessabe and none repeting as long as the server is alive. This could by all mean be made much more secure!


Constructor Summary
SessionIDGenerator()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 java.lang.String nextSessionId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionIDGenerator

public SessionIDGenerator()
Method Detail

nextSessionId

public java.lang.String nextSessionId()
                               throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception