org.jsecurity.spring
Class SpringJSecurityFilter
java.lang.Object
org.jsecurity.web.servlet.ServletContextSupport
org.jsecurity.web.servlet.OncePerRequestFilter
org.jsecurity.web.servlet.JSecurityFilter
org.jsecurity.spring.SpringJSecurityFilter
- All Implemented Interfaces:
- Filter, Nameable
public class SpringJSecurityFilter
- extends JSecurityFilter
Extension of JSecurityFilter that uses SpringIniWebConfiguration to configure JSecurity in a Spring web
environment.
Using this class in web.xml essentially enables the following:
<filter>
<filter-name>JSecurityFilter</filter-name>
<filter-class>org.jsecurity.web.servlet.JSecurityFilter</filter-class>
<init-param>
<param-name>configClassName</param-name>
<param-value>org.jsecurity.spring.SpringIniWebConfiguration<param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>
... normal .ini config ...
<param-value>
</init-param>
<filter>
That is, you don't have to specify the additional configClassName init-param.
- Since:
- 0.2
- Author:
- Les Hazlewood, Jeremy Haile
| Methods inherited from class org.jsecurity.web.servlet.JSecurityFilter |
applyEmbeddedConfig, applyFilterConfig, applyInitParams, applyUrlConfig, configure, destroy, doFilterInternal, ensureSecurityManager, getConfiguration, getInetAddress, getSecurityManager, isHttpSessions, onFilterConfigSet, setConfiguration, setSecurityManager |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringJSecurityFilter
public SpringJSecurityFilter()
- Default constructor, merely calls
this.configClassName = SpringIniWebConfiguration.class.getName()}.
Copyright © 2004-2008 JSecurity.