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:
Factory<SecurityManager>
- Direct Known Subclasses:
WebIniSecurityManagerFactory
@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(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(Ini ini, Ini.Section mainSection)
Deprecated.protected SecurityManager
createInstance(Ini ini)
Deprecated.protected Realm
createRealm(Ini ini)
Deprecated.Creates aRealm
from the Ini instance containing account data.void
destroy()
Deprecated.Map<String,?>
getBeans()
Deprecated.ReflectionBuilder
getReflectionBuilder()
Deprecated.Returns the ReflectionBuilder instance used to create SecurityManagers object graph.protected boolean
isAutoApplyRealms(SecurityManager securityManager)
Deprecated.void
setReflectionBuilder(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(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(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(Ini ini)
Deprecated.- Specified by:
createInstance
in classIniFactorySupport<SecurityManager>
-
isAutoApplyRealms
protected boolean isAutoApplyRealms(SecurityManager securityManager)
Deprecated.
-
createDefaults
protected Map<String,?> createDefaults(Ini ini, Ini.Section mainSection)
Deprecated.
-
applyRealmsToSecurityManager
protected void applyRealmsToSecurityManager(Collection<Realm> realms, SecurityManager securityManager)
Deprecated.
-
shouldImplicitlyCreateRealm
protected boolean shouldImplicitlyCreateRealm(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(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 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(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
-
-