Package org.apache.shiro.web.config
Class WebIniSecurityManagerFactory
- java.lang.Object
-
- org.apache.shiro.util.AbstractFactory<T>
-
- org.apache.shiro.config.IniFactorySupport<SecurityManager>
-
- org.apache.shiro.config.IniSecurityManagerFactory
-
- org.apache.shiro.web.config.WebIniSecurityManagerFactory
-
- All Implemented Interfaces:
Factory<SecurityManager>
@Deprecated public class WebIniSecurityManagerFactory extends 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
-
-
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 newWebIniSecurityManagerFactory
instance which will construct web-capableSecurityManager
instances.WebIniSecurityManagerFactory(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 SecurityManager
createDefaultInstance()
Deprecated.Simply returnsnew
to ensure a web-capableDefaultWebSecurityManager
();SecurityManager
is available by default.protected Map<String,?>
createDefaults(Ini ini, 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 newWebIniSecurityManagerFactory
instance which will construct web-capableSecurityManager
instances.
-
WebIniSecurityManagerFactory
public WebIniSecurityManagerFactory(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 SecurityManager createDefaultInstance()
Deprecated.Simply returnsnew
to ensure a web-capableDefaultWebSecurityManager
();SecurityManager
is available by default.- Overrides:
createDefaultInstance
in classIniSecurityManagerFactory
- Returns:
- a new web-capable
SecurityManager
instance.
-
createDefaults
protected Map<String,?> createDefaults(Ini ini, Ini.Section mainSection)
Deprecated.- Overrides:
createDefaults
in classIniSecurityManagerFactory
-
-