Package org.apache.shiro.session.mgt
package org.apache.shiro.session.mgt
SessionManager components supporting enterprise session management.-
ClassDescriptionAbstract implementation supporting the
NativeSessionManagerinterface, supportingSessionListeners and application of theglobalSessionTimeout.Base abstract class of theSessionManagerinterface, enabling configuration of an application-wideglobalSessionTimeout.Default business-tier implementation of theValidatingSessionManagerinterface.Default implementation of theSessionContextinterface which provides getters and setters that wrap interaction with the underlying backing context map.Default implementation of theSessionKeyinterface, which allows setting and retrieval of a concretesessionIdthat theSessionManagerimplementation can use to look up aSessioninstance.Default business-tier implementation of aValidatingSessionManager.A DelegatingSession is a client-tier representation of a server sideSession.SessionValidationScheduler implementation that uses aScheduledExecutorServiceto callValidatingSessionManager.validateSessions()everysessionValidationIntervalmilliseconds.Implementation of theSessioninterface that proxies anotherSession, but does not allow any 'write' operations to the underlying session.ANativesession manager is one that manages sessions natively - that is, it is directly responsible for the creation, persistence and removal ofSessioninstances and their lifecycles.ASessionContextis a 'bucket' of data presented to aSessionFactorywhich interprets this data to constructSessioninstances.A simple factory class that instantiates concreteSessioninstances.ASessionKeyis a key that allows look-up of any particularSessioninstance.A SessionManager manages the creation, maintenance, and clean-up of all applicationSessions.Interface that should be implemented by classes that can control validating sessions on a regular basis.SimpleSessionJavaBeans-compatible POJO implementation, intended to be used on the business/server tier.SessionFactoryimplementation that generatesSimpleSessioninstances.AValidatingSessionis aSessionthat is capable of determining it is valid or not and is able to validate itself if necessary.A ValidatingSessionManager is a SessionManager that can proactively validate any or all sessions that may be expired.