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'sEnvironmentmechanisms instead.Differs from the parent class only in thecreateDefaultInstance()method, to ensure a web-capableSecurityManagerinstance is created by default.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description WebIniSecurityManagerFactory()Deprecated.Creates a newWebIniSecurityManagerFactoryinstance which will construct web-capableSecurityManagerinstances.WebIniSecurityManagerFactory(org.apache.shiro.config.Ini config)Deprecated.Creates a newWebIniSecurityManagerFactoryinstance which will construct web-capableSecurityManagerinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.apache.shiro.mgt.SecurityManagercreateDefaultInstance()Deprecated.Simply returnsnewto ensure a web-capableDefaultWebSecurityManager();SecurityManageris 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 newWebIniSecurityManagerFactoryinstance which will construct web-capableSecurityManagerinstances.
-
WebIniSecurityManagerFactory
public WebIniSecurityManagerFactory(org.apache.shiro.config.Ini config)
Deprecated.Creates a newWebIniSecurityManagerFactoryinstance which will construct web-capableSecurityManagerinstances. Uses the givenIniinstance to construct the instance.- Parameters:
config- the Ini configuration that will be used to construct new web-capableSecurityManagerinstances.
-
-
Method Detail
-
createDefaultInstance
protected org.apache.shiro.mgt.SecurityManager createDefaultInstance()
Deprecated.Simply returnsnewto ensure a web-capableDefaultWebSecurityManager();SecurityManageris available by default.- Overrides:
createDefaultInstancein classorg.apache.shiro.config.IniSecurityManagerFactory- Returns:
- a new web-capable
SecurityManagerinstance.
-
-