org.talika.tarsis.security
Class SecuritySessionImpl

java.lang.Object
  extended by org.talika.tarsis.security.SecuritySessionImpl
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, SecuritySession

public final class SecuritySessionImpl
extends java.lang.Object
implements SecuritySession, javax.servlet.http.HttpSessionBindingListener, java.io.Serializable

Implementation of SecuritySession interface.

Version:
$Revision: 124 $
Author:
Jose M. Palomar
See Also:
Serialized Form

Constructor Summary
SecuritySessionImpl(User user)
          Creates a new SecuritySessionImpl.
 
Method Summary
 User getUser()
          Returns User of session.
 void invalidate()
          Invalidates session.
 boolean isValid()
          Returns true is session is valid.
 void valueBound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
          Notifies the object that it is being bound to a session and identifies the session.
 void valueUnbound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
          Notifies the object that it is being unbound from a session and identifies the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecuritySessionImpl

public SecuritySessionImpl(User user)
Creates a new SecuritySessionImpl.

Parameters:
user - User user of session.
Method Detail

getUser

public User getUser()
Returns User of session.

Specified by:
getUser in interface SecuritySession
Returns:
User User of session.
See Also:
SecuritySession.getUser()

invalidate

public void invalidate()
Invalidates session.

Specified by:
invalidate in interface SecuritySession
See Also:
SecuritySession.invalidate()

isValid

public boolean isValid()
Returns true is session is valid.

Specified by:
isValid in interface SecuritySession
Returns:
boolean true is session is valid.
See Also:
SecuritySession.isValid()

valueBound

public void valueBound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
Notifies the object that it is being bound to a session and identifies the session. This method do nothing.

Specified by:
valueBound in interface javax.servlet.http.HttpSessionBindingListener
Parameters:
httpSessionBindingEvent - HttpSessionBindingEvent the event that identifies the session.
See Also:
HttpSessionBindingListener.valueBound(HttpSessionBindingEvent)

valueUnbound

public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
Notifies the object that it is being unbound from a session and identifies the session. Invalidates session when its unbound.

Specified by:
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
Parameters:
httpSessionBindingEvent - HttpSessionBindingEvent the event that identifies the session.
See Also:
HttpSessionBindingListener.valueUnbound(HttpSessionBindingEvent)


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.