Package org.apache.shiro.session.mgt
Interface ValidatingSession
-
- All Superinterfaces:
Session
- All Known Implementing Classes:
SimpleSession
public interface ValidatingSession extends Session
AValidatingSession
is aSession
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
-
-