Class WebIniSecurityManagerFactory

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

@Deprecated public class WebIniSecurityManagerFactory extends org.apache.shiro.ini.IniSecurityManagerFactory
Deprecated.
use Shiro's Environment mechanisms instead.
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.ini.IniSecurityManagerFactory

    INI_REALM_NAME, MAIN_SECTION_NAME, SECURITY_MANAGER_NAME

    Fields inherited from class org.apache.shiro.ini.IniFactorySupport

    DEFAULT_INI_RESOURCE_PATH
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Creates a new WebIniSecurityManagerFactory instance which will construct web-capable SecurityManager instances.
    WebIniSecurityManagerFactory(org.apache.shiro.config.Ini config)
    Deprecated.
    Creates a new WebIniSecurityManagerFactory instance which will construct web-capable SecurityManager instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.shiro.mgt.SecurityManager
    Deprecated.
    Simply returns new DefaultWebSecurityManager(); to ensure a web-capable SecurityManager is available by default.
    protected Map<String,?>
    createDefaults(org.apache.shiro.config.Ini ini, org.apache.shiro.config.Ini.Section mainSection)
    Deprecated.
     

    Methods inherited from class org.apache.shiro.ini.IniSecurityManagerFactory

    applyRealmsToSecurityManager, createInstance, createRealm, destroy, getBeans, getReflectionBuilder, isAutoApplyRealms, setReflectionBuilder, shouldImplicitlyCreateRealm

    Methods inherited from class org.apache.shiro.ini.IniFactorySupport

    createInstance, getDefaults, getIni, loadDefaultClassPathIni, resolveIni, setDefaults, 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 Details

    • WebIniSecurityManagerFactory

      Deprecated.
      Creates a new WebIniSecurityManagerFactory instance which will construct web-capable SecurityManager instances.
    • WebIniSecurityManagerFactory

      public WebIniSecurityManagerFactory(org.apache.shiro.config.Ini config)
      Deprecated.
      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 Details

    • createDefaultInstance

      protected org.apache.shiro.mgt.SecurityManager createDefaultInstance()
      Deprecated.
      Simply returns new DefaultWebSecurityManager(); to ensure a web-capable SecurityManager is available by default.
      Overrides:
      createDefaultInstance in class org.apache.shiro.ini.IniSecurityManagerFactory
      Returns:
      a new web-capable SecurityManager instance.
    • createDefaults

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