org.apache.shiro.web.config
Class WebIniSecurityManagerFactory

java.lang.Object
  extended by org.apache.shiro.util.AbstractFactory<T>
      extended by org.apache.shiro.config.IniFactorySupport<SecurityManager>
          extended by org.apache.shiro.config.IniSecurityManagerFactory
              extended by org.apache.shiro.web.config.WebIniSecurityManagerFactory
All Implemented Interfaces:
Factory<SecurityManager>

public class WebIniSecurityManagerFactory
extends IniSecurityManagerFactory

Differs from the parent class only in the createDefaultInstance() method, to ensure a web-capable SecurityManager instance is created by default.

Since:
1.0

Field Summary
 
Fields inherited from class org.apache.shiro.config.IniSecurityManagerFactory
INI_REALM_NAME, MAIN_SECTION_NAME, SECURITY_MANAGER_NAME
 
Fields inherited from class org.apache.shiro.config.IniFactorySupport
DEFAULT_INI_RESOURCE_PATH
 
Constructor Summary
WebIniSecurityManagerFactory()
          Creates a new WebIniSecurityManagerFactory instance which will construct web-capable SecurityManager instances.
WebIniSecurityManagerFactory(Ini config)
          Creates a new WebIniSecurityManagerFactory instance which will construct web-capable SecurityManager instances.
 
Method Summary
protected  SecurityManager createDefaultInstance()
          Simply returns new DefaultWebSecurityManager(); to ensure a web-capable SecurityManager is available by default.
protected  Map<String,?> createDefaults(Ini ini, Ini.Section mainSection)
           
 
Methods inherited from class org.apache.shiro.config.IniSecurityManagerFactory
applyRealmsToSecurityManager, createInstance, createRealm, getBeans, isAutoApplyRealms, shouldImplicitlyCreateRealm
 
Methods inherited from class org.apache.shiro.config.IniFactorySupport
createInstance, getIni, loadDefaultClassPathIni, resolveIni, setIni
 
Methods inherited from class org.apache.shiro.util.AbstractFactory
getInstance, isSingleton, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebIniSecurityManagerFactory

public WebIniSecurityManagerFactory()
Creates a new WebIniSecurityManagerFactory instance which will construct web-capable SecurityManager instances.


WebIniSecurityManagerFactory

public WebIniSecurityManagerFactory(Ini config)
Creates a new WebIniSecurityManagerFactory instance which will construct web-capable SecurityManager instances. Uses the given Ini instance to construct the instance.

Parameters:
config - the Ini configuration that will be used to construct new web-capable SecurityManager instances.
Method Detail

createDefaultInstance

protected SecurityManager createDefaultInstance()
Simply returns new DefaultWebSecurityManager(); to ensure a web-capable SecurityManager is available by default.

Overrides:
createDefaultInstance in class IniSecurityManagerFactory
Returns:
a new web-capable SecurityManager instance.

createDefaults

protected Map<String,?> createDefaults(Ini ini,
                                       Ini.Section mainSection)
Overrides:
createDefaults in class IniSecurityManagerFactory


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