org.nees.util.sessions
Class AuthenticatedSessionFactory

java.lang.Object
  extended byorg.nees.util.sessions.SessionFactory
      extended byorg.nees.util.sessions.AuthenticatedSessionFactory
Direct Known Subclasses:
NFMSClientSideAuthenticatedSessionFactory, NFMSDebugSessionFactory, NFMSOGSISessionFactory, NFMSServerSideAuthenticatedSessionFactory, NMDSSessionFactory

public abstract class AuthenticatedSessionFactory
extends SessionFactory

Creates authenticated sessions for a user with a given identity.


Constructor Summary
AuthenticatedSessionFactory()
          Don't specify the user identity yet.
AuthenticatedSessionFactory(AuthenticIdentity id)
           
 
Method Summary
 AuthenticIdentity getIdentity()
           
 Session newSession(AuthenticIdentity id)
          Set the identity and return a sesssion.
 void setIdentity(AuthenticIdentity id)
          Set the user identity
 
Methods inherited from class org.nees.util.sessions.SessionFactory
newSession, releaseSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticatedSessionFactory

public AuthenticatedSessionFactory()
Don't specify the user identity yet.


AuthenticatedSessionFactory

public AuthenticatedSessionFactory(AuthenticIdentity id)
Parameters:
id - the user's identity
Method Detail

setIdentity

public void setIdentity(AuthenticIdentity id)
Set the user identity


getIdentity

public AuthenticIdentity getIdentity()
Returns:
the user's identity

newSession

public Session newSession(AuthenticIdentity id)
                   throws SessionCreationException
Set the identity and return a sesssion.

Throws:
SessionCreationException