Renamed web.wrapper to web.servletapi. Added some package.html files.

This commit is contained in:
Luke Taylor 2009-10-05 16:59:37 +00:00
parent 673cf300fb
commit 1042305cfe
17 changed files with 37 additions and 16 deletions

View File

@ -19,8 +19,8 @@ import org.springframework.security.web.authentication.UsernamePasswordAuthentic
import org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter;
import org.springframework.security.web.authentication.www.BasicProcessingFilter;
import org.springframework.security.web.context.SecurityContextPersistenceFilter;
import org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter;
import org.springframework.security.web.session.SessionManagementFilter;
import org.springframework.security.web.wrapper.SecurityContextHolderAwareRequestFilter;
public class DefaultFilterChainValidator implements FilterChainProxy.FilterChainValidator {
private Log logger = LogFactory.getLog(getClass());

View File

@ -42,11 +42,11 @@ import org.springframework.security.web.authentication.session.ConcurrentSession
import org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy;
import org.springframework.security.web.context.HttpSessionSecurityContextRepository;
import org.springframework.security.web.context.SecurityContextPersistenceFilter;
import org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter;
import org.springframework.security.web.session.ConcurrentSessionFilter;
import org.springframework.security.web.session.SessionManagementFilter;
import org.springframework.security.web.util.AntUrlPathMatcher;
import org.springframework.security.web.util.UrlMatcher;
import org.springframework.security.web.wrapper.SecurityContextHolderAwareRequestFilter;
import org.springframework.util.StringUtils;
import org.springframework.util.xml.DomUtils;
import org.w3c.dom.Element;

View File

@ -36,7 +36,7 @@ import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.security.web.FilterChainProxy;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationProcessingFilter;
import org.springframework.security.web.context.SecurityContextPersistenceFilter;
import org.springframework.security.web.wrapper.SecurityContextHolderAwareRequestFilter;
import org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter;
/**
* Tests {@link FilterChainProxy}.

View File

@ -69,9 +69,9 @@ import org.springframework.security.web.context.HttpSessionSecurityContextReposi
import org.springframework.security.web.context.SecurityContextPersistenceFilter;
import org.springframework.security.web.savedrequest.HttpSessionRequestCache;
import org.springframework.security.web.savedrequest.RequestCacheAwareFilter;
import org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter;
import org.springframework.security.web.session.ConcurrentSessionFilter;
import org.springframework.security.web.session.SessionManagementFilter;
import org.springframework.security.web.wrapper.SecurityContextHolderAwareRequestFilter;
import org.springframework.util.ReflectionUtils;
/**

View File

@ -24,9 +24,9 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd">
<bean id="mockFilter" class="org.springframework.security.web.wrapper.SecurityContextHolderAwareRequestFilter"/>
<bean id="mockFilter" class="org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter"/>
<bean id="mockFilter2" class="org.springframework.security.web.wrapper.SecurityContextHolderAwareRequestFilter"/>
<bean id="mockFilter2" class="org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter"/>
<!-- These are just here so we have filters of a specific type to check the ordering is as expected -->
<bean id="sif" class="org.springframework.security.web.context.SecurityContextPersistenceFilter"/>

View File

@ -52,7 +52,7 @@
<property name="authenticationManager" ref="authenticationManager"/>
</bean>
<bean id="scharf" class="org.springframework.security.web.wrapper.SecurityContextHolderAwareRequestFilter" />
<bean id="scharf" class="org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter" />
<bean id="preAuthenticatedProcessingFilterEntryPoint"
class="org.springframework.security.web.authentication.Http403ForbiddenEntryPoint"/>

View File

@ -88,8 +88,8 @@
<bean id="roleVoter" class="org.springframework.security.access.vote.RoleVoter"/>
<bean id="securityContextHolderAwareRequestFilter" class="org.springframework.security.web.wrapper.SecurityContextHolderAwareRequestFilter">
<property name="wrapperClass" value="org.springframework.security.web.wrapper.SecurityContextHolderAwareRequestWrapper"/>
<bean id="securityContextHolderAwareRequestFilter" class="org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter">
<property name="wrapperClass" value="org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper"/>
</bean>
</beans>

View File

@ -0,0 +1,5 @@
<html>
<body>
Strategy interface and implementations for handling session-related behaviour for a newly authenticated user.
</body>
</html>

View File

@ -0,0 +1,6 @@
<html>
<body>
Authentication user-interface rendering code. Used to conveniently create an appropriate login page when using namespace
configuration without defining a login page URL.
</body>
</html>

View File

@ -0,0 +1,5 @@
<html>
<body>
Contains WWW-Authenticate based authentication mechanism implementations: Basic and Digest authentication.
</body>
</html>

View File

@ -1,6 +1,8 @@
<html>
<body>
Stores a <code>HttpServletRequest</code> so that it can subsequently be emulated by the
<code>SavedRequestAwareWrapper</code>.
Classes related top the caching of an <code>HttpServletRequest</code> which requires authentication. While the user is
logging in, the request is cached (using the RequestCache implementation) by the ExceptionTranslationFilter.
Once the user has been authenticated, the original request is restored following a redirect to a matching URL, and the
RequestCache is queried to obtain the original (matching) request.
</body>
</html>

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
package org.springframework.security.web.wrapper;
package org.springframework.security.web.servletapi;
import java.io.IOException;

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
package org.springframework.security.web.wrapper;
package org.springframework.security.web.servletapi;
import java.security.Principal;

View File

@ -1,5 +1,5 @@
<html>
<body>
HttpSession events and publisher classes.
Session management filters, HttpSession events and publisher classes.
</body>
</html>

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
package org.springframework.security.web.wrapper;
package org.springframework.security.web.servletapi;
import javax.servlet.FilterChain;
import javax.servlet.http.HttpServletResponse;
@ -24,6 +24,8 @@ import org.jmock.integration.junit4.JUnit4Mockery;
import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter;
import org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper;
/**

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
package org.springframework.security.web.wrapper;
package org.springframework.security.web.servletapi;
import junit.framework.TestCase;
@ -23,6 +23,7 @@ import org.springframework.security.core.Authentication;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper;
/**
* Tests {@link SecurityContextHolderAwareRequestWrapper}.