Package org.apache.shiro.web.config
Class WebIniSecurityManagerFactory
- java.lang.Object
-
- org.apache.shiro.util.AbstractFactory<T>
-
- org.apache.shiro.config.IniFactorySupport<org.apache.shiro.mgt.SecurityManager>
-
- org.apache.shiro.config.IniSecurityManagerFactory
-
- org.apache.shiro.web.config.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'sEnvironment
mechanisms instead.Differs from the parent class only in thecreateDefaultInstance()
method, to ensure a web-capableSecurityManager
instance is created by default.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description WebIniSecurityManagerFactory()
Deprecated.Creates a newWebIniSecurityManagerFactory
instance which will construct web-capableSecurityManager
instances.WebIniSecurityManagerFactory(org.apache.shiro.config.Ini config)
Deprecated.Creates a newWebIniSecurityManagerFactory
instance which will construct web-capableSecurityManager
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 returnsnew
to ensure a web-capableDefaultWebSecurityManager
();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
-
-
-
-
Constructor Detail
-
WebIniSecurityManagerFactory
public WebIniSecurityManagerFactory()
Deprecated.Creates a newWebIniSecurityManagerFactory
instance which will construct web-capableSecurityManager
instances.
-
WebIniSecurityManagerFactory
public WebIniSecurityManagerFactory(org.apache.shiro.config.Ini config)
Deprecated.Creates a newWebIniSecurityManagerFactory
instance which will construct web-capableSecurityManager
instances. Uses the givenIni
instance to construct the instance.- Parameters:
config
- the Ini configuration that will be used to construct new web-capableSecurityManager
instances.
-
-
Method Detail
-
createDefaultInstance
protected org.apache.shiro.mgt.SecurityManager createDefaultInstance()
Deprecated.Simply returnsnew
to ensure a web-capableDefaultWebSecurityManager
();SecurityManager
is available by default.- Overrides:
createDefaultInstance
in classorg.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 classorg.apache.shiro.config.IniSecurityManagerFactory
-
-