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>
public class WebIniSecurityManagerFactory
- extends IniSecurityManagerFactory
Differs from the parent class only in the createDefaultInstance() method, to
ensure a web-capable SecurityManager instance is created by default.
- Since:
- 1.0
|
Constructor Summary |
WebIniSecurityManagerFactory()
Creates a new WebIniSecurityManagerFactory instance which will construct web-capable
SecurityManager instances. |
WebIniSecurityManagerFactory(Ini config)
Creates a new WebIniSecurityManagerFactory instance which will construct web-capable
SecurityManager instances. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebIniSecurityManagerFactory
public WebIniSecurityManagerFactory()
- Creates a new
WebIniSecurityManagerFactory instance which will construct web-capable
SecurityManager instances.
WebIniSecurityManagerFactory
public WebIniSecurityManagerFactory(Ini config)
- 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.
createDefaultInstance
protected SecurityManager createDefaultInstance()
- Simply returns
new DefaultWebSecurityManager(); to ensure a web-capable
SecurityManager is available by default.
- Overrides:
createDefaultInstance in class IniSecurityManagerFactory
- Returns:
- a new web-capable
SecurityManager instance.
createDefaults
protected Map<String,?> createDefaults(Ini ini,
Ini.Section mainSection)
- Overrides:
createDefaults in class IniSecurityManagerFactory
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.