TaskBean API
0.5

glogic.jthin.serv
Class ProductSessionManager

java.lang.Object
  extended byglogic.jthin.serv.ProductSessionManager

public class ProductSessionManager
extends java.lang.Object

Manages sessions.

Author:
Sam Taha

Method Summary
 ClientSession attachToSsoSession(ClientContext context)
          Creates the session to be used for future requests.
 void checkProductRequest()
          Every remote call must call this method to check the following: User has a valid session System is available Product available and status of product client upgrade (if any) Updates session data statistics
 ClientSession createSession(Attributes authAttributes, ClientContext context)
          Creates the session to be used for future requests.
 java.lang.String decryptSsoSession(SSOSessionBean sessionBean)
           
 SSOSessionBean encryptSsoSession(java.lang.String stSessionID)
           
 void endSession()
           
static ProductSessionManager getInstance()
           
static void initInstance()
           
static void initInstance(AuthenticationHandler handler)
           
 boolean isActiveSession()
           
 boolean isSSOSessionValid(javax.servlet.http.HttpServletRequest request)
          Tests if web session is authenticated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initInstance

public static void initInstance(AuthenticationHandler handler)

initInstance

public static void initInstance()

getInstance

public static ProductSessionManager getInstance()

attachToSsoSession

public ClientSession attachToSsoSession(ClientContext context)
                                 throws AuthenticationException,
                                        WServiceAccessException
Creates the session to be used for future requests. The product being requested defines whether authentication will be enforced or not.

Returns:
session ID
Throws:
AuthenticationException
WServiceAccessException

createSession

public ClientSession createSession(Attributes authAttributes,
                                   ClientContext context)
                            throws AuthenticationException,
                                   WServiceAccessException
Creates the session to be used for future requests. The product being requested defines whether authentication will be enforced or not.

Returns:
session ID
Throws:
AuthenticationException
WServiceAccessException

isActiveSession

public boolean isActiveSession()

checkProductRequest

public void checkProductRequest()
                         throws WServiceAccessException
Every remote call must call this method to check the following:

Throws:
WServiceAccessException - If there is no session (or valid session) then the exception will be thrown.

isSSOSessionValid

public boolean isSSOSessionValid(javax.servlet.http.HttpServletRequest request)
Tests if web session is authenticated.


encryptSsoSession

public SSOSessionBean encryptSsoSession(java.lang.String stSessionID)

decryptSsoSession

public java.lang.String decryptSsoSession(SSOSessionBean sessionBean)
                                   throws AuthenticationException
Throws:
AuthenticationException

endSession

public void endSession()
                throws WServiceAccessException
Throws:
WServiceAccessException

TaskBean API
0.5

Copyright © Grand Logic, Inc. All Rights Reserved.