Package org.apache.shiro.config
Class IniSecurityManagerFactory
- java.lang.Object
-
- org.apache.shiro.util.AbstractFactory<T>
-
- org.apache.shiro.config.IniFactorySupport<SecurityManager>
-
- org.apache.shiro.config.IniSecurityManagerFactory
-
- All Implemented Interfaces:
org.apache.shiro.util.Factory<SecurityManager>
@Deprecated public class IniSecurityManagerFactory extends IniFactorySupport<SecurityManager>
Deprecated.use Shiro'sEnvironment
mechanisms instead.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
INI_REALM_NAME
Deprecated.static String
MAIN_SECTION_NAME
Deprecated.static String
SECURITY_MANAGER_NAME
Deprecated.-
Fields inherited from class org.apache.shiro.config.IniFactorySupport
DEFAULT_INI_RESOURCE_PATH
-
-
Constructor Summary
Constructors Constructor Description IniSecurityManagerFactory()
Deprecated.Creates a new instance.IniSecurityManagerFactory(String iniResourcePath)
Deprecated.IniSecurityManagerFactory(org.apache.shiro.config.Ini config)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
applyRealmsToSecurityManager(Collection<Realm> realms, SecurityManager securityManager)
Deprecated.protected SecurityManager
createDefaultInstance()
Deprecated.protected Map<String,?>
createDefaults(org.apache.shiro.config.Ini ini, org.apache.shiro.config.Ini.Section mainSection)
Deprecated.protected SecurityManager
createInstance(org.apache.shiro.config.Ini ini)
Deprecated.protected Realm
createRealm(org.apache.shiro.config.Ini ini)
Deprecated.Creates aRealm
from the Ini instance containing account data.void
destroy()
Deprecated.Map<String,?>
getBeans()
Deprecated.org.apache.shiro.config.ReflectionBuilder
getReflectionBuilder()
Deprecated.Returns the ReflectionBuilder instance used to create SecurityManagers object graph.protected boolean
isAutoApplyRealms(SecurityManager securityManager)
Deprecated.void
setReflectionBuilder(org.apache.shiro.config.ReflectionBuilder builder)
Deprecated.Sets the ReflectionBuilder that will be used to create the SecurityManager based on the contents of the Ini configuration.protected boolean
shouldImplicitlyCreateRealm(org.apache.shiro.config.Ini ini)
Deprecated.Returnstrue
if the Ini contains account data and aRealm
should be implicitlycreated
to reflect the account data,false
if no realm should be implicitly created.-
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
-
-
-
-
Field Detail
-
MAIN_SECTION_NAME
public static final String MAIN_SECTION_NAME
Deprecated.- See Also:
- Constant Field Values
-
SECURITY_MANAGER_NAME
public static final String SECURITY_MANAGER_NAME
Deprecated.- See Also:
- Constant Field Values
-
INI_REALM_NAME
public static final String INI_REALM_NAME
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IniSecurityManagerFactory
public IniSecurityManagerFactory()
Deprecated.Creates a new instance. See theAbstractFactory.getInstance()
JavaDoc for detailed explanation of how an INI source will be resolved to use to build the instance.
-
IniSecurityManagerFactory
public IniSecurityManagerFactory(org.apache.shiro.config.Ini config)
Deprecated.
-
IniSecurityManagerFactory
public IniSecurityManagerFactory(String iniResourcePath)
Deprecated.
-
-
Method Detail
-
destroy
public void destroy()
Deprecated.
-
createDefaultInstance
protected SecurityManager createDefaultInstance()
Deprecated.- Specified by:
createDefaultInstance
in classIniFactorySupport<SecurityManager>
-
createInstance
protected SecurityManager createInstance(org.apache.shiro.config.Ini ini)
Deprecated.- Specified by:
createInstance
in classIniFactorySupport<SecurityManager>
-
isAutoApplyRealms
protected boolean isAutoApplyRealms(SecurityManager securityManager)
Deprecated.
-
createDefaults
protected Map<String,?> createDefaults(org.apache.shiro.config.Ini ini, org.apache.shiro.config.Ini.Section mainSection)
Deprecated.
-
applyRealmsToSecurityManager
protected void applyRealmsToSecurityManager(Collection<Realm> realms, SecurityManager securityManager)
Deprecated.
-
shouldImplicitlyCreateRealm
protected boolean shouldImplicitlyCreateRealm(org.apache.shiro.config.Ini ini)
Deprecated.Returnstrue
if the Ini contains account data and aRealm
should be implicitlycreated
to reflect the account data,false
if no realm should be implicitly created.- Parameters:
ini
- the Ini instance to inspect for account data resulting in an implicitly created realm.- Returns:
true
if the Ini contains account data and aRealm
should be implicitlycreated
to reflect the account data,false
if no realm should be implicitly created.
-
createRealm
protected Realm createRealm(org.apache.shiro.config.Ini ini)
Deprecated.Creates aRealm
from the Ini instance containing account data.- Parameters:
ini
- the Ini instance from which to acquire the account data.- Returns:
- a new Realm instance reflecting the account data discovered in the
Ini
.
-
getReflectionBuilder
public org.apache.shiro.config.ReflectionBuilder getReflectionBuilder()
Deprecated.Returns the ReflectionBuilder instance used to create SecurityManagers object graph.- Returns:
- ReflectionBuilder instance used to create SecurityManagers object graph.
- Since:
- 1.4
-
setReflectionBuilder
public void setReflectionBuilder(org.apache.shiro.config.ReflectionBuilder builder)
Deprecated.Sets the ReflectionBuilder that will be used to create the SecurityManager based on the contents of the Ini configuration.- Parameters:
builder
- The ReflectionBuilder used to parse the Ini configuration.- Since:
- 1.4
-
-