Class IniSecurityManagerFactory
java.lang.Object
org.apache.shiro.util.AbstractFactory<SecurityManager>
org.apache.shiro.ini.IniFactorySupport<SecurityManager>
org.apache.shiro.ini.IniSecurityManagerFactory
- All Implemented Interfaces:
org.apache.shiro.lang.util.Factory<SecurityManager>
Deprecated.
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.ini realm name.static final StringDeprecated.main section name.static final StringDeprecated.security manager name.Fields inherited from class org.apache.shiro.ini.IniFactorySupport
DEFAULT_INI_RESOURCE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new instance.IniSecurityManagerFactory(String iniResourcePath) Deprecated.IniSecurityManagerFactory(org.apache.shiro.config.Ini config) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyRealmsToSecurityManager(Collection<Realm> realms, SecurityManager securityManager) Deprecated.protected SecurityManagerDeprecated.create default instance.createDefaults(org.apache.shiro.config.Ini ini, org.apache.shiro.config.Ini.Section mainSection) Deprecated.protected SecurityManagercreateInstance(org.apache.shiro.config.Ini ini) Deprecated.create instance.protected RealmcreateRealm(org.apache.shiro.config.Ini ini) Deprecated.Creates aRealmfrom the Ini instance containing account data.voiddestroy()Deprecated.getBeans()Deprecated.org.apache.shiro.config.ogdl.ReflectionBuilderDeprecated.Returns the ReflectionBuilder instance used to create SecurityManagers object graph.protected booleanisAutoApplyRealms(SecurityManager securityManager) Deprecated.voidsetReflectionBuilder(org.apache.shiro.config.ogdl.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.ini.IniFactorySupport
createInstance, getDefaults, getIni, loadDefaultClassPathIni, resolveIni, setDefaults, setIniMethods inherited from class org.apache.shiro.util.AbstractFactory
getInstance, isSingleton, setSingleton
-
Field Details
-
MAIN_SECTION_NAME
-
SECURITY_MANAGER_NAME
-
INI_REALM_NAME
-
-
Constructor Details
-
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
Deprecated. -
IniSecurityManagerFactory
Deprecated.
-
-
Method Details
-
getBeans
-
destroy
Deprecated. -
createDefaultInstance
Deprecated.Description copied from class:IniFactorySupportcreate default instance.- Specified by:
createDefaultInstancein classIniFactorySupport<SecurityManager>- Returns:
- T
-
createInstance
Deprecated.Description copied from class:IniFactorySupportcreate instance.- Specified by:
createInstancein classIniFactorySupport<SecurityManager>- Parameters:
ini- ini- Returns:
- T
-
isAutoApplyRealms
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
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
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
Deprecated.Returns the ReflectionBuilder instance used to create SecurityManagers object graph.- Returns:
- ReflectionBuilder instance used to create SecurityManagers object graph.
- Since:
- 1.4
-
setReflectionBuilder
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
-
Environmentmechanisms instead.