Class WebIniSecurityManagerFactory

  • All Implemented Interfaces:
    org.apache.shiro.util.Factory<org.apache.shiro.mgt.SecurityManager>

    @Deprecated
    public class WebIniSecurityManagerFactory
    extends org.apache.shiro.config.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.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

      Constructors 
      Constructor Description
      WebIniSecurityManagerFactory()
      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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected org.apache.shiro.mgt.SecurityManager createDefaultInstance()
      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.config.IniSecurityManagerFactory

        applyRealmsToSecurityManager, createInstance, createRealm, destroy, getBeans, getReflectionBuilder, isAutoApplyRealms, setReflectionBuilder, shouldImplicitlyCreateRealm
      • Methods inherited from class org.apache.shiro.config.IniFactorySupport

        createInstance, getDefaults, getIni, loadDefaultClassPathIni, resolveIni, setDefaults, setIni
      • Methods inherited from class org.apache.shiro.util.AbstractFactory

        getInstance, isSingleton, setSingleton
    • Constructor Detail

      • WebIniSecurityManagerFactory

        public 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 Detail

      • 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.config.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.config.IniSecurityManagerFactory