org.apache.shiro.session.mgt
Interface SessionFactory
- All Known Implementing Classes: 
 - SimpleSessionFactory
 
public interface SessionFactory
A simple factory class that instantiates concrete Session instances.  This is mainly a
 mechanism to allow instances to be created at runtime if they need to be different the
 defaults.  It is not used by end-users of the framework, but rather those configuring Shiro to work in an
 application, and is typically injected into the SecurityManager or a
 SessionManager.
- Since:
 
  - 1.0
 
 
createSession
Session createSession(SessionContext initData)
- Creates a new 
Session instance based on the specified contextual initialization data.
- Parameters:
 initData - the initialization data to be used during Session creation.
- Returns:
 - a new 
Session instance. - Since:
 
  - 1.0
 
 
 
Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.