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'sEnvironmentmechanisms instead.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringINI_REALM_NAMEDeprecated.static StringMAIN_SECTION_NAMEDeprecated.static StringSECURITY_MANAGER_NAMEDeprecated.-
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 voidapplyRealmsToSecurityManager(Collection<Realm> realms, SecurityManager securityManager)Deprecated.protected SecurityManagercreateDefaultInstance()Deprecated.protected Map<String,?>createDefaults(org.apache.shiro.config.Ini ini, org.apache.shiro.config.Ini.Section mainSection)Deprecated.protected SecurityManagercreateInstance(org.apache.shiro.config.Ini ini)Deprecated.protected RealmcreateRealm(org.apache.shiro.config.Ini ini)Deprecated.Creates aRealmfrom the Ini instance containing account data.voiddestroy()Deprecated.Map<String,?>getBeans()Deprecated.org.apache.shiro.config.ReflectionBuildergetReflectionBuilder()Deprecated.Returns the ReflectionBuilder instance used to create SecurityManagers object graph.protected booleanisAutoApplyRealms(SecurityManager securityManager)Deprecated.voidsetReflectionBuilder(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 booleanshouldImplicitlyCreateRealm(org.apache.shiro.config.Ini ini)Deprecated.Returnstrueif the Ini contains account data and aRealmshould be implicitlycreatedto reflect the account data,falseif 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:
createDefaultInstancein classIniFactorySupport<SecurityManager>
-
createInstance
protected SecurityManager createInstance(org.apache.shiro.config.Ini ini)
Deprecated.- Specified by:
createInstancein 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.Returnstrueif the Ini contains account data and aRealmshould be implicitlycreatedto reflect the account data,falseif no realm should be implicitly created.- Parameters:
ini- the Ini instance to inspect for account data resulting in an implicitly created realm.- Returns:
trueif the Ini contains account data and aRealmshould be implicitlycreatedto reflect the account data,falseif no realm should be implicitly created.
-
createRealm
protected Realm createRealm(org.apache.shiro.config.Ini ini)
Deprecated.Creates aRealmfrom 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
-
-