diff --git a/config/src/main/java/org/springframework/security/config/UserDetailsServiceInjectionBeanPostProcessor.java b/config/src/main/java/org/springframework/security/config/UserDetailsServiceInjectionBeanPostProcessor.java index e47c3aedb2..1f5029ebdf 100644 --- a/config/src/main/java/org/springframework/security/config/UserDetailsServiceInjectionBeanPostProcessor.java +++ b/config/src/main/java/org/springframework/security/config/UserDetailsServiceInjectionBeanPostProcessor.java @@ -12,9 +12,9 @@ import org.springframework.beans.factory.config.BeanPostProcessor; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org.springframework.beans.factory.config.RuntimeBeanReference; import org.springframework.beans.factory.support.RootBeanDefinition; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationProvider; import org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper; import org.springframework.security.core.userdetails.UserDetailsService; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider; import org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices; import org.springframework.util.Assert; diff --git a/config/src/main/java/org/springframework/security/config/X509BeanDefinitionParser.java b/config/src/main/java/org/springframework/security/config/X509BeanDefinitionParser.java index 6fc2c4ff67..f3981f6f47 100644 --- a/config/src/main/java/org/springframework/security/config/X509BeanDefinitionParser.java +++ b/config/src/main/java/org/springframework/security/config/X509BeanDefinitionParser.java @@ -1,9 +1,9 @@ package org.springframework.security.config; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider; import org.springframework.security.web.authentication.preauth.PreAuthenticatedProcessingFilterEntryPoint; import org.springframework.security.web.authentication.preauth.x509.SubjectDnX509PrincipalExtractor; import org.springframework.security.web.authentication.preauth.x509.X509PreAuthenticatedProcessingFilter; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationProvider; import org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper; import org.springframework.beans.factory.xml.BeanDefinitionParser; import org.springframework.beans.factory.xml.ParserContext; diff --git a/core/src/test/java/org/springframework/security/authentication/preauth/UserDetailsByNameServiceWrapperTests.java b/core/src/test/java/org/springframework/security/core/userdetails/UserDetailsByNameServiceWrapperTests.java similarity index 81% rename from core/src/test/java/org/springframework/security/authentication/preauth/UserDetailsByNameServiceWrapperTests.java rename to core/src/test/java/org/springframework/security/core/userdetails/UserDetailsByNameServiceWrapperTests.java index ebd3a3dbd2..08b4afaf20 100755 --- a/core/src/test/java/org/springframework/security/authentication/preauth/UserDetailsByNameServiceWrapperTests.java +++ b/core/src/test/java/org/springframework/security/core/userdetails/UserDetailsByNameServiceWrapperTests.java @@ -1,9 +1,9 @@ -package org.springframework.security.authentication.preauth; +package org.springframework.security.core.userdetails; import junit.framework.TestCase; import org.springframework.dao.DataAccessException; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationToken; +import org.springframework.security.authentication.TestingAuthenticationToken; import org.springframework.security.core.authority.AuthorityUtils; import org.springframework.security.core.userdetails.User; import org.springframework.security.core.userdetails.UserDetails; @@ -42,9 +42,9 @@ public class UserDetailsByNameServiceWrapperTests extends TestCase { } }); svc.afterPropertiesSet(); - UserDetails result1 = svc.loadUserDetails(new PreAuthenticatedAuthenticationToken("dummy", "dummy")); + UserDetails result1 = svc.loadUserDetails(new TestingAuthenticationToken("dummy", "dummy")); assertEquals("Result doesn't match original user", user, result1); - UserDetails result2 = svc.loadUserDetails(new PreAuthenticatedAuthenticationToken("dummy2", "dummy")); + UserDetails result2 = svc.loadUserDetails(new TestingAuthenticationToken("dummy2", "dummy")); assertNull("Result should have been null", result2); } diff --git a/itest/context/src/test/resources/filter-chain-performance-app-context.xml b/itest/context/src/test/resources/filter-chain-performance-app-context.xml index aabb0ac0c7..d986ebe804 100644 --- a/itest/context/src/test/resources/filter-chain-performance-app-context.xml +++ b/itest/context/src/test/resources/filter-chain-performance-app-context.xml @@ -71,7 +71,7 @@ - + diff --git a/portlet/src/main/java/org/springframework/security/portlet/PortletProcessingInterceptor.java b/portlet/src/main/java/org/springframework/security/portlet/PortletProcessingInterceptor.java index 4425275568..aaee3a38bc 100644 --- a/portlet/src/main/java/org/springframework/security/portlet/PortletProcessingInterceptor.java +++ b/portlet/src/main/java/org/springframework/security/portlet/PortletProcessingInterceptor.java @@ -40,12 +40,12 @@ import org.springframework.beans.factory.InitializingBean; import org.springframework.security.authentication.AuthenticationDetailsSource; import org.springframework.security.authentication.AuthenticationDetailsSourceImpl; import org.springframework.security.authentication.AuthenticationManager; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.security.core.Authentication; import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.web.authentication.AbstractProcessingFilter; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.util.Assert; import org.springframework.web.portlet.HandlerInterceptor; import org.springframework.web.portlet.ModelAndView; diff --git a/portlet/src/test/java/org/springframework/security/portlet/PortletProcessingInterceptorTests.java b/portlet/src/test/java/org/springframework/security/portlet/PortletProcessingInterceptorTests.java index 963beeefc7..0fac061557 100644 --- a/portlet/src/test/java/org/springframework/security/portlet/PortletProcessingInterceptorTests.java +++ b/portlet/src/test/java/org/springframework/security/portlet/PortletProcessingInterceptorTests.java @@ -32,11 +32,11 @@ import org.springframework.mock.web.portlet.MockActionResponse; import org.springframework.mock.web.portlet.MockRenderRequest; import org.springframework.mock.web.portlet.MockRenderResponse; import org.springframework.security.web.authentication.AbstractProcessingFilter; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.authentication.BadCredentialsException; import org.springframework.security.authentication.TestingAuthenticationToken; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.security.core.Authentication; import org.springframework.security.core.authority.AuthorityUtils; import org.springframework.security.core.context.SecurityContextHolder; diff --git a/portlet/src/test/java/org/springframework/security/portlet/PortletSessionContextIntegrationInterceptorTests.java b/portlet/src/test/java/org/springframework/security/portlet/PortletSessionContextIntegrationInterceptorTests.java index 92bd7a5501..8a7180f845 100644 --- a/portlet/src/test/java/org/springframework/security/portlet/PortletSessionContextIntegrationInterceptorTests.java +++ b/portlet/src/test/java/org/springframework/security/portlet/PortletSessionContextIntegrationInterceptorTests.java @@ -24,12 +24,12 @@ import org.springframework.mock.web.portlet.MockActionRequest; import org.springframework.mock.web.portlet.MockActionResponse; import org.springframework.mock.web.portlet.MockRenderRequest; import org.springframework.mock.web.portlet.MockRenderResponse; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.security.core.authority.AuthorityUtils; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.context.SecurityContextImpl; import org.springframework.security.core.userdetails.User; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken; /** * Tests {@link PortletSessionContextIntegrationInterceptor}. diff --git a/portlet/src/test/java/org/springframework/security/portlet/PortletTestUtils.java b/portlet/src/test/java/org/springframework/security/portlet/PortletTestUtils.java index 28ff4841b0..13ec038065 100644 --- a/portlet/src/test/java/org/springframework/security/portlet/PortletTestUtils.java +++ b/portlet/src/test/java/org/springframework/security/portlet/PortletTestUtils.java @@ -24,10 +24,10 @@ import org.springframework.mock.web.portlet.MockPortletRequest; import org.springframework.mock.web.portlet.MockRenderRequest; import org.springframework.mock.web.portlet.MockRenderResponse; import org.springframework.security.authentication.TestingAuthenticationToken; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.security.core.authority.AuthorityUtils; import org.springframework.security.core.userdetails.User; import org.springframework.security.core.userdetails.UserDetails; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken; /** * Utilities for testing Portlet (JSR 168) based security. diff --git a/samples/portlet/src/main/resources/portlet/securityContextPortlet.xml b/samples/portlet/src/main/resources/portlet/securityContextPortlet.xml index 428a71b1b7..8d72285a57 100644 --- a/samples/portlet/src/main/resources/portlet/securityContextPortlet.xml +++ b/samples/portlet/src/main/resources/portlet/securityContextPortlet.xml @@ -60,16 +60,16 @@ - + - + - -
Custom Voters It is also possible to implement a custom @@ -337,19 +272,7 @@ boolean supports(Class clazz); ROLE_AUTHENTICATED configuration attribute
ACL-Aware AfterInvocationProviders - - PLEASE NOTE: Acegi Security 1.0.3 contains a preview of a new - ACL module. The new ACL module is a significant rewrite of the - existing ACL module. The new module can be found under the - org.springframework.security.acls package, with - the old ACL module under - org.springframework.security.acl. We encourage - users to consider testing with the new ACL module and build - applications with it. The old ACL module should be considered - deprecated and may be removed from a future release. The following - information relates to the new ACL package, and is thus - recommended. - + A common services layer method we've all written at one stage or another looks like this: @@ -362,11 +285,11 @@ boolean supports(Class clazz); not suffice. This is because the identity of the Contact is all that is available before the secure object is invoked. The - AclAfterInvocationProvider delivers a solution, + AclEntryAfterInvocationProvider delivers a solution, and is configured as follows: + class="org.springframework.security.acls.afterinvocation.AclEntryAfterInvocationProvider"> @@ -378,25 +301,25 @@ boolean supports(Class clazz); ]]> In the above example, the Contact will be retrieved and passed to the - AclEntryAfterInvocationProvider. The provider - will thrown an AccessDeniedException if one of + AclEntryAfterInvocationProvider. The provider + will thrown an AccessDeniedException if one of the listed requirePermissions is not held by the Authentication. The - AclEntryAfterInvocationProvider queries the - AclService to determine the ACL that applies for + AclEntryAfterInvocationProvider queries the + acl service to determine the ACL that applies for this domain object to this Authentication. Similar to the - AclEntryAfterInvocationProvider is - AclEntryAfterInvocationCollectionFilteringProvider. + AclEntryAfterInvocationProvider is + AclEntryAfterInvocationCollectionFilteringProvider. It is designed to remove Collection or array elements for which a principal does not have access. It never thrown - an AccessDeniedException - simply silently + an AccessDeniedException - simply silently removes the offending elements. The provider is configured as follows: + class="org.springframework.security.acls.afterinvocation.AclEntryAfterInvocationCollectionFilteringProvider"> @@ -416,92 +339,10 @@ boolean supports(Class clazz); The Contacts sample application demonstrates these two AfterInvocationProviders.
- -
- ACL-Aware AfterInvocationProviders (old ACL module) - - PLEASE NOTE: Acegi Security 1.0.3 contains a preview of a new - ACL module. The new ACL module is a significant rewrite of the - existing ACL module. The new module can be found under the - org.springframework.security.acls package, with - the old ACL module under - org.springframework.security.acl. We encourage - users to consider testing with the new ACL module and build - applications with it. The old ACL module should be considered - deprecated and may be removed from a future release. - - A common services layer method we've all written at one stage - or another looks like this: - - public Contact getById(Integer id); - - Quite often, only principals with permission to read the - Contact should be allowed to obtain it. In this - situation the AccessDecisionManager approach - provided by the AbstractSecurityInterceptor will - not suffice. This is because the identity of the - Contact is all that is available before the - secure object is invoked. The - BasicAclAfterInvocationProvider delivers a - solution, and is configured as follows: - - - - - - - - - - -]]> - - In the above example, the Contact will be - retrieved and passed to the - BasicAclEntryAfterInvocationProvider. The - provider will thrown an AccessDeniedException if - one of the listed requirePermissions is not held - by the Authentication. The - BasicAclEntryAfterInvocationProvider queries the - AclManager to determine the ACL that applies for - this domain object to this Authentication. - - Similar to the - BasicAclEntryAfterInvocationProvider is - BasicAclEntryAfterInvocationCollectionFilteringProvider. - It is designed to remove Collection or array - elements for which a principal does not have access. It never thrown - an AccessDeniedException - simply silently - removes the offending elements. The provider is configured as - follows: - - - - - - - - - -]]> - As you can imagine, the returned Object - must be a Collection or array for this provider - to operate. It will remove any element if the - AclManager indicates the - Authentication does not hold one of the listed - requirePermissions. - - The Contacts sample application demonstrates these two - AfterInvocationProviders. -
-
Authorization Tag Libraries - +
+ Authorization Tag Libraries AuthorizeTag is used to include content if the current principal holds certain diff --git a/src/docbkx/basic-authentication.xml b/src/docbkx/basic-authentication.xml index 1abb7fe044..9cbaebe28f 100644 --- a/src/docbkx/basic-authentication.xml +++ b/src/docbkx/basic-authentication.xml @@ -28,13 +28,13 @@ collaborator: - <bean id="basicProcessingFilter" class="org.springframework.security.ui.basicauth.BasicProcessingFilter"> + <bean id="basicProcessingFilter" class="org.springframework.security.web.authentication.www.BasicProcessingFilter"> <property name="authenticationManager"><ref bean="authenticationManager"/></property> <property name="authenticationEntryPoint"><ref bean="authenticationEntryPoint"/></property> </bean> <bean id="authenticationEntryPoint" - class="org.springframework.security.ui.basicauth.BasicProcessingFilterEntryPoint"> + class="org.springframework.security.web.authentication.www.BasicProcessingFilterEntryPoint"> <property name="realmName"><value>Name Of Your Realm</value></property> </bean> diff --git a/src/docbkx/cas-auth-provider.xml b/src/docbkx/cas-auth-provider.xml index b31a83c194..3ebfafc299 100644 --- a/src/docbkx/cas-auth-provider.xml +++ b/src/docbkx/cas-auth-provider.xml @@ -274,7 +274,7 @@ to your application context. This represents your service: + ]]> @@ -294,7 +294,7 @@ - + @@ -302,7 +302,7 @@ + class="org.springframework.security.cas.web.CasProcessingFilterEntryPoint"> @@ -335,7 +335,7 @@ Next you need to add a CasAuthenticationProvider and its collaborators: + diff --git a/src/docbkx/channel-security.xml b/src/docbkx/channel-security.xml index 9cc477315d..aa3c3321b2 100644 --- a/src/docbkx/channel-security.xml +++ b/src/docbkx/channel-security.xml @@ -42,7 +42,7 @@ To confiure channel security explicitly, you would define the following the filter in your application context: + @@ -54,7 +54,7 @@ - + @@ -63,8 +63,8 @@ - -]]> + +]]> Like FilterSecurityInterceptor, Apache Ant style paths are also supported by the diff --git a/src/docbkx/common-auth-services.xml b/src/docbkx/common-auth-services.xml index 92528d62f5..f03903f6bb 100644 --- a/src/docbkx/common-auth-services.xml +++ b/src/docbkx/common-auth-services.xml @@ -46,7 +46,7 @@ + class="org.springframework.security.web.FilterChainProxy"> @@ -124,7 +124,7 @@ the example we're using in this chapter: <bean id="authenticationManager" - class="org.springframework.security.providers.ProviderManager"> + class="org.springframework.security.authentication.ProviderManager"> <property name="providers"> <list> <ref local="daoAuthenticationProvider"/> @@ -187,17 +187,17 @@ + class="org.springframework.security.web.access.ExceptionTranslationFilter"> - + + class="org.springframework.security.web.authentication.AuthenticationProcessingFilterEntryPoint"> < value="false"/> ]]> @@ -335,7 +335,7 @@ - + ]]> @@ -396,13 +396,13 @@ following to web.xml: <listener> - <listener-class>org.springframework.security.ui.session.HttpSessionEventPublisher</listener-class> + <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class> </listener> In addition, you will need to add the - org.springframework.security.concurrent.ConcurrentSessionFilter + org.springframework.security.web.authentication.concurrent.ConcurrentSessionFilter to your FilterChainProxy. The ConcurrentSessionFilter requires two properties, sessionRegistry, which generally points @@ -425,7 +425,7 @@ + class="org.springframework.security.authentication.ProviderManager"> @@ -433,10 +433,10 @@ + class="org.springframework.security.authentication.concurrent.ConcurrentSessionControllerImpl"> - + ]]> diff --git a/src/docbkx/dao-auth-provider.xml b/src/docbkx/dao-auth-provider.xml index d355230eaa..fa809ea9b6 100644 --- a/src/docbkx/dao-auth-provider.xml +++ b/src/docbkx/dao-auth-provider.xml @@ -33,7 +33,7 @@ + class="org.springframework.security.authentication.dao.DaoAuthenticationProvider"> @@ -71,7 +71,7 @@ follows: + class="org.springframework.security.authentication.dao.DaoAuthenticationProvider"> @@ -85,7 +85,7 @@ - + ]]> diff --git a/src/docbkx/digest-authentication.xml b/src/docbkx/digest-authentication.xml index c5dd17962f..81e4b039e4 100644 --- a/src/docbkx/digest-authentication.xml +++ b/src/docbkx/digest-authentication.xml @@ -92,14 +92,14 @@ + class="org.springframework.security.web.authentication.www.DigestProcessingFilter"> + class="org.springframework.security.web.authentication.www.DigestProcessingFilterEntryPoint"> diff --git a/src/docbkx/domain-acls.xml b/src/docbkx/domain-acls.xml index 0474f163d2..3655e61b65 100644 --- a/src/docbkx/domain-acls.xml +++ b/src/docbkx/domain-acls.xml @@ -6,13 +6,6 @@ Overview - PLEASE NOTE: Before release 2.0.0, Spring Security was known as Acegi Security. An ACL - module was provided with the old Acegi Security releases under the - org.[acegisecurity/springsecurity].acl package. This old package - is now deprecated and will be removed in a future release of Spring Security. This - chapter covers the new ACL module, which is officially recommended from Spring Security - 2.0.0 and above, and can be found under the - org.springframework.security.acls package. Complex applications often will find the need to define access permissions not simply at a web request or method invocation level. Instead, security decisions need to comprise both who (Authentication), where diff --git a/src/docbkx/form-authentication.xml b/src/docbkx/form-authentication.xml index 85597c05d3..68e5d045ff 100644 --- a/src/docbkx/form-authentication.xml +++ b/src/docbkx/form-authentication.xml @@ -22,7 +22,7 @@ AuthenticationProcessingFilter to your application context: + class="org.springframework.security.web.authentication.AuthenticationProcessingFilter"> diff --git a/src/docbkx/jaas-auth-provider.xml b/src/docbkx/jaas-auth-provider.xml index 5902e619ac..11062bda95 100644 --- a/src/docbkx/jaas-auth-provider.xml +++ b/src/docbkx/jaas-auth-provider.xml @@ -32,18 +32,18 @@ JAASTest { above JAAS login configuration file: + class="org.springframework.security.authentication.jaas.JaasAuthenticationProvider"> - - + + - + diff --git a/src/docbkx/ldap-auth-provider.xml b/src/docbkx/ldap-auth-provider.xml index 26df1ad8e4..60a1dad34d 100644 --- a/src/docbkx/ldap-auth-provider.xml +++ b/src/docbkx/ldap-auth-provider.xml @@ -196,7 +196,7 @@ The main LDAP provider class is - org.springframework.security.providers.ldap.LdapAuthenticationProvider. + org.springframework.security.ldap.authentication.LdapAuthenticationProvider. This bean doesn't actually do much itself but delegates the work to two other beans, an LdapAuthenticator and an @@ -261,7 +261,7 @@ BindAuthenticator The class - org.springframework.security.providers.ldap.authenticator.BindAuthenticator + org.springframework.security.ldap.authentication.BindAuthenticator implements the bind authentication strategy. It simply attempts to bind as the user.
@@ -270,7 +270,7 @@ PasswordComparisonAuthenticator The class - org.springframework.security.providers.ldap.authenticator.PasswordComparisonAuthenticator + org.springframework.security.ldap.authentication.PasswordComparisonAuthenticator implements the password comparison authentication strategy.
@@ -350,9 +350,9 @@ + class="org.springframework.security.ldap.authentication.LdapAuthenticationProvider"> - + uid={0},ou=people @@ -360,7 +360,7 @@ - + diff --git a/web/src/main/java/org/springframework/security/web/authentication/preauth/AbstractPreAuthenticatedProcessingFilter.java b/web/src/main/java/org/springframework/security/web/authentication/preauth/AbstractPreAuthenticatedProcessingFilter.java index 2659967165..8e16bcbf93 100755 --- a/web/src/main/java/org/springframework/security/web/authentication/preauth/AbstractPreAuthenticatedProcessingFilter.java +++ b/web/src/main/java/org/springframework/security/web/authentication/preauth/AbstractPreAuthenticatedProcessingFilter.java @@ -13,7 +13,6 @@ import org.springframework.security.web.authentication.WebAuthenticationDetailsS import org.springframework.security.authentication.AuthenticationDetailsSource; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.authentication.event.InteractiveAuthenticationSuccessEvent; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.security.core.Authentication; import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.context.SecurityContextHolder; diff --git a/core/src/main/java/org/springframework/security/authentication/preauth/PreAuthenticatedAuthenticationProvider.java b/web/src/main/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationProvider.java similarity index 95% rename from core/src/main/java/org/springframework/security/authentication/preauth/PreAuthenticatedAuthenticationProvider.java rename to web/src/main/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationProvider.java index bd4bdf9b14..2c3fd56836 100644 --- a/core/src/main/java/org/springframework/security/authentication/preauth/PreAuthenticatedAuthenticationProvider.java +++ b/web/src/main/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationProvider.java @@ -1,4 +1,4 @@ -package org.springframework.security.authentication.preauth; +package org.springframework.security.web.authentication.preauth; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -17,7 +17,7 @@ import org.springframework.util.Assert; /** *

* Processes a pre-authenticated authentication request. The request will - * typically originate from a {@link org.springframework.security.ui.preauth.AbstractPreAuthenticatedProcessingFilter} + * typically originate from a {@link org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter} * subclass. * *

diff --git a/core/src/main/java/org/springframework/security/authentication/preauth/PreAuthenticatedAuthenticationToken.java b/web/src/main/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationToken.java similarity index 94% rename from core/src/main/java/org/springframework/security/authentication/preauth/PreAuthenticatedAuthenticationToken.java rename to web/src/main/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationToken.java index 1b0e96e4cd..21d735be00 100755 --- a/core/src/main/java/org/springframework/security/authentication/preauth/PreAuthenticatedAuthenticationToken.java +++ b/web/src/main/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationToken.java @@ -1,4 +1,4 @@ -package org.springframework.security.authentication.preauth; +package org.springframework.security.web.authentication.preauth; import java.util.Arrays; import java.util.List; diff --git a/core/src/main/java/org/springframework/security/authentication/preauth/PreAuthenticatedGrantedAuthoritiesUserDetailsService.java b/web/src/main/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedGrantedAuthoritiesUserDetailsService.java similarity index 95% rename from core/src/main/java/org/springframework/security/authentication/preauth/PreAuthenticatedGrantedAuthoritiesUserDetailsService.java rename to web/src/main/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedGrantedAuthoritiesUserDetailsService.java index 91b38f0c6e..8d0b1e3ad1 100755 --- a/core/src/main/java/org/springframework/security/authentication/preauth/PreAuthenticatedGrantedAuthoritiesUserDetailsService.java +++ b/web/src/main/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedGrantedAuthoritiesUserDetailsService.java @@ -1,4 +1,4 @@ -package org.springframework.security.authentication.preauth; +package org.springframework.security.web.authentication.preauth; import java.util.List; diff --git a/web/src/main/java/org/springframework/security/web/authentication/preauth/websphere/WebSphere2SpringSecurityPropagationInterceptor.java b/web/src/main/java/org/springframework/security/web/authentication/preauth/websphere/WebSphere2SpringSecurityPropagationInterceptor.java index 5ffe1b4733..7d72085d89 100755 --- a/web/src/main/java/org/springframework/security/web/authentication/preauth/websphere/WebSphere2SpringSecurityPropagationInterceptor.java +++ b/web/src/main/java/org/springframework/security/web/authentication/preauth/websphere/WebSphere2SpringSecurityPropagationInterceptor.java @@ -6,9 +6,9 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.security.authentication.AuthenticationDetailsSource; import org.springframework.security.authentication.AuthenticationManager; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.util.Assert; /** diff --git a/core/src/test/java/org/springframework/security/authentication/preauth/PreAuthenticatedAuthenticationProviderTests.java b/web/src/test/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationProviderTests.java similarity index 93% rename from core/src/test/java/org/springframework/security/authentication/preauth/PreAuthenticatedAuthenticationProviderTests.java rename to web/src/test/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationProviderTests.java index 91d3bd16f4..7938ca0e35 100755 --- a/core/src/test/java/org/springframework/security/authentication/preauth/PreAuthenticatedAuthenticationProviderTests.java +++ b/web/src/test/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationProviderTests.java @@ -1,4 +1,4 @@ -package org.springframework.security.authentication.preauth; +package org.springframework.security.web.authentication.preauth; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; @@ -8,14 +8,14 @@ import static org.junit.Assert.assertTrue; import org.junit.Test; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationProvider; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.security.core.Authentication; import org.springframework.security.core.authority.AuthorityUtils; import org.springframework.security.core.userdetails.AuthenticationUserDetailsService; import org.springframework.security.core.userdetails.User; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UsernameNotFoundException; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken; /** * diff --git a/core/src/test/java/org/springframework/security/authentication/preauth/PreAuthenticatedAuthenticationTokenTests.java b/web/src/test/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationTokenTests.java similarity index 90% rename from core/src/test/java/org/springframework/security/authentication/preauth/PreAuthenticatedAuthenticationTokenTests.java rename to web/src/test/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationTokenTests.java index 99eb0cfd63..e1015d53d3 100755 --- a/core/src/test/java/org/springframework/security/authentication/preauth/PreAuthenticatedAuthenticationTokenTests.java +++ b/web/src/test/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationTokenTests.java @@ -1,12 +1,12 @@ -package org.springframework.security.authentication.preauth; +package org.springframework.security.web.authentication.preauth; import java.util.List; import junit.framework.TestCase; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.AuthorityUtils; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken; /** * diff --git a/core/src/test/java/org/springframework/security/authentication/preauth/PreAuthenticatedGrantedAuthoritiesUserDetailsServiceTests.java b/web/src/test/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedGrantedAuthoritiesUserDetailsServiceTests.java similarity index 89% rename from core/src/test/java/org/springframework/security/authentication/preauth/PreAuthenticatedGrantedAuthoritiesUserDetailsServiceTests.java rename to web/src/test/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedGrantedAuthoritiesUserDetailsServiceTests.java index 657bba24ee..d8ceb18fc4 100755 --- a/core/src/test/java/org/springframework/security/authentication/preauth/PreAuthenticatedGrantedAuthoritiesUserDetailsServiceTests.java +++ b/web/src/test/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedGrantedAuthoritiesUserDetailsServiceTests.java @@ -1,16 +1,16 @@ -package org.springframework.security.authentication.preauth; +package org.springframework.security.web.authentication.preauth; import static org.junit.Assert.*; import java.util.List; import org.junit.Test; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationToken; -import org.springframework.security.authentication.preauth.PreAuthenticatedGrantedAuthoritiesUserDetailsService; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.AuthorityUtils; import org.springframework.security.core.authority.GrantedAuthoritiesContainer; import org.springframework.security.core.userdetails.UserDetails; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedGrantedAuthoritiesUserDetailsService; /** * diff --git a/web/src/test/java/org/springframework/security/web/authentication/preauth/websphere/WebSphere2SpringSecurityPropagationInterceptorTests.java b/web/src/test/java/org/springframework/security/web/authentication/preauth/websphere/WebSphere2SpringSecurityPropagationInterceptorTests.java index 5cdf1adec0..914703e6d8 100644 --- a/web/src/test/java/org/springframework/security/web/authentication/preauth/websphere/WebSphere2SpringSecurityPropagationInterceptorTests.java +++ b/web/src/test/java/org/springframework/security/web/authentication/preauth/websphere/WebSphere2SpringSecurityPropagationInterceptorTests.java @@ -8,7 +8,6 @@ import org.junit.After; import org.junit.Test; import org.springframework.security.authentication.AuthenticationDetailsSource; import org.springframework.security.authentication.AuthenticationManager; -import org.springframework.security.authentication.preauth.PreAuthenticatedAuthenticationProvider; import org.springframework.security.core.Authentication; import org.springframework.security.core.authority.AuthorityUtils; import org.springframework.security.core.context.SecurityContext; @@ -17,6 +16,7 @@ import org.springframework.security.core.context.SecurityContextImpl; import org.springframework.security.core.userdetails.AuthenticationUserDetailsService; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsChecker; +import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider; /** *