org.apache.shiro.session.mgt
Interface ValidatingSession

All Superinterfaces:
Session
All Known Implementing Classes:
SimpleSession

public interface ValidatingSession
extends Session

A ValidatingSession is a Session that is capable of determining it is valid or not and is able to validate itself if necessary.

Validation is usually an exercise of determining when the session was last accessed or modified and determining if that time is longer than a specified allowed duration.

Since:
0.9

Method Summary
 boolean isValid()
           
 void validate()
           
 
Methods inherited from interface org.apache.shiro.session.Session
getAttribute, getAttributeKeys, getHost, getId, getLastAccessTime, getStartTimestamp, getTimeout, removeAttribute, setAttribute, setTimeout, stop, touch
 

Method Detail

isValid

boolean isValid()

validate

void validate()
              throws InvalidSessionException
Throws:
InvalidSessionException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.