public class IniSecurityManagerFactory extends IniFactorySupport<SecurityManager>
Modifier and Type | Field and Description |
---|---|
static String |
INI_REALM_NAME |
static String |
MAIN_SECTION_NAME |
static String |
SECURITY_MANAGER_NAME |
DEFAULT_INI_RESOURCE_PATH
Constructor and Description |
---|
IniSecurityManagerFactory()
Creates a new instance.
|
IniSecurityManagerFactory(Ini config) |
IniSecurityManagerFactory(String iniResourcePath) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyRealmsToSecurityManager(Collection<Realm> realms,
SecurityManager securityManager) |
protected SecurityManager |
createDefaultInstance() |
protected Map<String,?> |
createDefaults(Ini ini,
Ini.Section mainSection) |
protected SecurityManager |
createInstance(Ini ini) |
protected Realm |
createRealm(Ini ini)
Creates a
Realm from the Ini instance containing account data. |
Map<String,?> |
getBeans() |
protected boolean |
isAutoApplyRealms(SecurityManager securityManager) |
protected boolean |
shouldImplicitlyCreateRealm(Ini ini)
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, getIni, loadDefaultClassPathIni, resolveIni, 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)
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
.Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.