|
JSecurity | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsecurity.config.ResourceConfiguration
org.jsecurity.config.TextConfiguration
org.jsecurity.config.IniConfiguration
org.jsecurity.web.config.IniWebConfiguration
org.jsecurity.spring.SpringWebConfiguration
public class SpringWebConfiguration
JSecurity configuration that relies on Spring to define and initialize the JSecurity SecurityManager
instance (and all of its dependencies) and makes it avaialble to this filter by performing a Spring bean
lookup. The URL/filter behavior is still loaded according to the behavior of the parent class
IniWebConfiguration
The behavior used by this filter is as follow:
SecurityManager - if there is one instance, use that.
If more than one exist, use the one named "securityManager". If none of them are named "securityManager"
throw an exception that says you have to set the init-param to specify the bean name.SecurityManager, look for any beans of type Realm.
If some are found, create a security manager by calling
super.createSecurityManager(Map)
and set the Realms on the default security manager returned.
IniWebConfiguration,
Serialized Form| Field Summary | |
|---|---|
static String |
DEFAULT_SECURITY_MANAGER_BEAN_ID
|
static String |
SECURITY_MANAGER_BEAN_NAME_PARAM_NAME
|
protected String |
securityManagerBeanName
|
| Fields inherited from class org.jsecurity.web.config.IniWebConfiguration |
|---|
chains, filterConfig, FILTERS, pathMatcher, URLS |
| Fields inherited from class org.jsecurity.config.IniConfiguration |
|---|
configUrl, DEFAULT_INI_RESOURCE_PATH, ignoreResourceNotFound, iniResource, MAIN, SESSION_MODE_PROPERTY_NAME |
| Fields inherited from class org.jsecurity.config.ResourceConfiguration |
|---|
securityManager |
| Constructor Summary | |
|---|---|
SpringWebConfiguration()
|
|
| Method Summary | |
|---|---|
protected SecurityManager |
createDefaultSecurityManager()
|
protected SecurityManager |
createDefaultSecurityManagerFromRealms(ApplicationContext appCtx,
Map<String,Map<String,String>> sections)
|
protected SecurityManager |
createSecurityManager(Map<String,Map<String,String>> sections)
|
protected SecurityManager |
getOrCreateSecurityManager(ApplicationContext appCtx,
Map<String,Map<String,String>> sections)
|
String |
getSecurityManagerBeanName()
|
protected SecurityManager |
getSecurityManagerByType(ApplicationContext appCtx)
|
void |
init()
Initializes this object. |
void |
setSecurityManagerBeanName(String securityManagerBeanName)
|
| Methods inherited from class org.jsecurity.web.config.IniWebConfiguration |
|---|
afterSecurityManagerSet, assertFilter, assertFilters, createChains, createDefaultFilters, getChain, getFilterConfig, getFilters, getPathWithinApplication, initFilter, initFilters, newSecurityManagerInstance, pathMatches, setFilterConfig |
| Methods inherited from class org.jsecurity.config.IniConfiguration |
|---|
createSecurityManagerForSection, getConfigUrl, load, load, load, load, process, processIni, setConfigUrl |
| Methods inherited from class org.jsecurity.config.TextConfiguration |
|---|
getConfig, loadTextConfig, setConfig |
| Methods inherited from class org.jsecurity.config.ResourceConfiguration |
|---|
getSecurityManager, setSecurityManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jsecurity.mgt.SecurityManagerFactory |
|---|
getSecurityManager |
| Field Detail |
|---|
public static final String SECURITY_MANAGER_BEAN_NAME_PARAM_NAME
public static final String DEFAULT_SECURITY_MANAGER_BEAN_ID
protected String securityManagerBeanName
| Constructor Detail |
|---|
public SpringWebConfiguration()
| Method Detail |
|---|
public String getSecurityManagerBeanName()
public void setSecurityManagerBeanName(String securityManagerBeanName)
public void init()
throws JSecurityException
Initializable
init in interface Initializableinit in class IniConfigurationJSecurityException - if an exception occurs during initialization.protected SecurityManager createDefaultSecurityManager()
createDefaultSecurityManager in class IniConfigurationprotected SecurityManager createSecurityManager(Map<String,Map<String,String>> sections)
createSecurityManager in class IniConfiguration
protected SecurityManager getOrCreateSecurityManager(ApplicationContext appCtx,
Map<String,Map<String,String>> sections)
protected SecurityManager createDefaultSecurityManagerFromRealms(ApplicationContext appCtx,
Map<String,Map<String,String>> sections)
protected SecurityManager getSecurityManagerByType(ApplicationContext appCtx)
|
JSecurity | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||