Environment
mechanisms instead.@Deprecated public class IniSecurityManagerFactory extends IniFactorySupport<SecurityManager>
Modifier and Type | Field and Description |
---|---|
static String |
INI_REALM_NAME
Deprecated.
|
static String |
MAIN_SECTION_NAME
Deprecated.
|
static String |
SECURITY_MANAGER_NAME
Deprecated.
|
DEFAULT_INI_RESOURCE_PATH
Constructor and Description |
---|
IniSecurityManagerFactory()
Deprecated.
Creates a new instance.
|
IniSecurityManagerFactory(Ini config)
Deprecated.
|
IniSecurityManagerFactory(String iniResourcePath)
Deprecated.
|
Modifier and Type | Method and 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 a
Realm 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.
Returns
true if the Ini contains account data and a Realm should be implicitly
created to reflect the account data, false if no realm should be implicitly
created. |
createInstance, getDefaults, getIni, loadDefaultClassPathIni, resolveIni, setDefaults, setIni
getInstance, isSingleton, setSingleton
public static final String MAIN_SECTION_NAME
public static final String SECURITY_MANAGER_NAME
public static final String INI_REALM_NAME
public IniSecurityManagerFactory()
AbstractFactory.getInstance()
JavaDoc for detailed explanation of how an INI
source will be resolved to use to build the instance.public IniSecurityManagerFactory(Ini config)
public IniSecurityManagerFactory(String iniResourcePath)
public void destroy()
protected SecurityManager createDefaultInstance()
createDefaultInstance
in class IniFactorySupport<SecurityManager>
protected SecurityManager createInstance(Ini ini)
createInstance
in class IniFactorySupport<SecurityManager>
protected boolean isAutoApplyRealms(SecurityManager securityManager)
protected Map<String,?> createDefaults(Ini ini, Ini.Section mainSection)
protected void applyRealmsToSecurityManager(Collection<Realm> realms, SecurityManager securityManager)
protected boolean shouldImplicitlyCreateRealm(Ini ini)
true
if the Ini contains account data and a Realm
should be implicitly
created
to reflect the account data, false
if no realm should be implicitly
created.ini
- the Ini instance to inspect for account data resulting in an implicitly created realm.true
if the Ini contains account data and a Realm
should be implicitly
created
to reflect the account data, false
if no realm should be
implicitly created.protected Realm createRealm(Ini ini)
Realm
from the Ini instance containing account data.ini
- the Ini instance from which to acquire the account data.Ini
.public ReflectionBuilder getReflectionBuilder()
public void setReflectionBuilder(ReflectionBuilder builder)
builder
- The ReflectionBuilder used to parse the Ini configuration.Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.