瀏覽代碼

SEC-1001: Move core tiger code into core and adjust pom files

Luke Taylor 17 年之前
父節點
當前提交
7cc0965383
共有 62 個文件被更改,包括 81 次插入539 次删除
  1. 1 1
      acl/pom.xml
  2. 1 1
      adapters/catalina/pom.xml
  3. 1 1
      adapters/jboss/pom.xml
  4. 1 1
      adapters/jetty/pom.xml
  5. 1 1
      adapters/pom.xml
  6. 1 1
      adapters/resin/pom.xml
  7. 1 1
      cas/pom.xml
  8. 1 1
      core-tiger/pom.xml
  9. 41 35
      core/pom.xml
  10. 0 0
      core/src/main/java/org/springframework/security/annotation/Jsr250MethodDefinitionSource.java
  11. 0 0
      core/src/main/java/org/springframework/security/annotation/Jsr250SecurityConfig.java
  12. 0 0
      core/src/main/java/org/springframework/security/annotation/Jsr250Voter.java
  13. 0 0
      core/src/main/java/org/springframework/security/annotation/Secured.java
  14. 0 0
      core/src/main/java/org/springframework/security/annotation/SecuredMethodDefinitionSource.java
  15. 0 0
      core/src/test/java/org/springframework/security/annotation/BusinessService.java
  16. 0 0
      core/src/test/java/org/springframework/security/annotation/BusinessServiceImpl.java
  17. 0 0
      core/src/test/java/org/springframework/security/annotation/Department.java
  18. 0 0
      core/src/test/java/org/springframework/security/annotation/DepartmentService.java
  19. 0 0
      core/src/test/java/org/springframework/security/annotation/DepartmentServiceImpl.java
  20. 0 0
      core/src/test/java/org/springframework/security/annotation/Entity.java
  21. 0 0
      core/src/test/java/org/springframework/security/annotation/Jsr250BusinessServiceImpl.java
  22. 0 0
      core/src/test/java/org/springframework/security/annotation/Jsr250MethodDefinitionSourceTests.java
  23. 0 0
      core/src/test/java/org/springframework/security/annotation/MethodDefinitionSourceEditorTigerTests.java
  24. 0 0
      core/src/test/java/org/springframework/security/annotation/SecuredMethodDefinitionSourceTests.java
  25. 0 0
      core/src/test/java/org/springframework/security/annotation/test/Entity.java
  26. 0 0
      core/src/test/java/org/springframework/security/annotation/test/Organisation.java
  27. 0 0
      core/src/test/java/org/springframework/security/annotation/test/OrganisationService.java
  28. 1 4
      core/src/test/java/org/springframework/security/annotation/test/OrganisationServiceImpl.java
  29. 0 0
      core/src/test/java/org/springframework/security/annotation/test/Person.java
  30. 1 4
      core/src/test/java/org/springframework/security/annotation/test/PersonService.java
  31. 0 0
      core/src/test/java/org/springframework/security/annotation/test/PersonServiceImpl.java
  32. 0 0
      core/src/test/java/org/springframework/security/annotation/test/Service.java
  33. 0 5
      core/src/test/java/org/springframework/security/annotation/test/ServiceImpl.java
  34. 0 0
      core/src/test/java/org/springframework/security/config/GlobalMethodSecurityBeanDefinitionParserTests.java
  35. 0 0
      core/src/test/java/org/springframework/security/config/Jsr250AnnotationDrivenBeanDefinitionParserTests.java
  36. 0 0
      core/src/test/java/org/springframework/security/config/SecuredAnnotationDrivenBeanDefinitionParserTests.java
  37. 0 11
      itest/pom.xml
  38. 1 1
      ntlm/pom.xml
  39. 2 2
      openid/pom.xml
  40. 6 27
      pom.xml
  41. 1 1
      portlet/pom.xml
  42. 0 4
      samples/annotations/.cvsignore
  43. 0 33
      samples/annotations/pom.xml
  44. 0 50
      samples/annotations/src/main/java/sample/annotations/BankService.java
  45. 0 34
      samples/annotations/src/main/java/sample/annotations/BankServiceImpl.java
  46. 0 77
      samples/annotations/src/main/java/sample/annotations/Main.java
  47. 0 99
      samples/annotations/src/main/resources/applicationContext-annotations.xml
  48. 0 99
      samples/annotations/src/test/java/samples/annotations/BankTests.java
  49. 1 1
      samples/cas/client/pom.xml
  50. 1 1
      samples/cas/pom.xml
  51. 1 1
      samples/cas/server/pom.xml
  52. 1 1
      samples/contacts/pom.xml
  53. 1 1
      samples/dms/pom.xml
  54. 1 6
      samples/ldap/pom.xml
  55. 1 1
      samples/openid/pom.xml
  56. 1 1
      samples/pom.xml
  57. 1 1
      samples/portlet/pom.xml
  58. 1 6
      samples/preauth/pom.xml
  59. 4 9
      samples/tutorial/pom.xml
  60. 1 6
      sandbox/heavyduty/pom.xml
  61. 3 8
      sandbox/webflow/pom.xml
  62. 2 2
      taglibs/pom.xml

+ 1 - 1
acl/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <artifactId>spring-security-parent</artifactId>
         <groupId>org.springframework.security</groupId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.springframework.security</groupId>

+ 1 - 1
adapters/catalina/pom.xml

@@ -3,7 +3,7 @@
   <parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-adapters</artifactId>
-    <version>2.0.5-SNAPSHOT</version>
+    <version>2.5.0-SNAPSHOT</version>
   </parent>
   <artifactId>spring-security-catalina</artifactId>
   <name>Spring Security - Catalina adapter</name>

+ 1 - 1
adapters/jboss/pom.xml

@@ -3,7 +3,7 @@
   <parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-adapters</artifactId>
-    <version>2.0.5-SNAPSHOT</version>
+    <version>2.5.0-SNAPSHOT</version>
   </parent>
   <artifactId>spring-security-jboss</artifactId>
   <name>Spring Security - JBoss adapter</name>

+ 1 - 1
adapters/jetty/pom.xml

@@ -3,7 +3,7 @@
   <parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-adapters</artifactId>
-    <version>2.0.5-SNAPSHOT</version>
+    <version>2.5.0-SNAPSHOT</version>
   </parent>
   <artifactId>spring-security-jetty</artifactId>
   <name>Spring Security - Jetty adapter</name>

+ 1 - 1
adapters/pom.xml

@@ -3,7 +3,7 @@
   <parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-parent</artifactId>
-    <version>2.0.5-SNAPSHOT</version>
+    <version>2.5.0-SNAPSHOT</version>
   </parent>
   <artifactId>spring-security-adapters</artifactId>
   <name>Spring Security - Adapters</name>

+ 1 - 1
adapters/resin/pom.xml

@@ -3,7 +3,7 @@
   <parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-adapters</artifactId>
-    <version>2.0.5-SNAPSHOT</version>
+    <version>2.5.0-SNAPSHOT</version>
   </parent>
   <artifactId>spring-security-resin</artifactId>
   <name>Spring Security - Resin adapter</name>

+ 1 - 1
cas/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-parent</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <artifactId>spring-security-cas-client</artifactId>
     <name>Spring Security - CAS support</name>

+ 1 - 1
core-tiger/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-parent</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <packaging>bundle</packaging>    
     <artifactId>spring-security-core-tiger</artifactId>

+ 41 - 35
core/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-parent</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <packaging>bundle</packaging>
     <artifactId>spring-security-core</artifactId>
@@ -47,27 +47,27 @@
             <artifactId>spring-mock</artifactId>
             <optional>true</optional>
         </dependency>
-	    <dependency>
-	        <groupId>org.aspectj</groupId>
-		<artifactId>aspectjrt</artifactId>
-		<optional>true</optional>
-	    </dependency>
-	    <dependency>
-	        <groupId>org.aspectj</groupId>
-		<artifactId>aspectjweaver</artifactId>
-		<optional>true</optional>
-	    </dependency>	    
+        <dependency>
+            <groupId>org.aspectj</groupId>
+        <artifactId>aspectjrt</artifactId>
+        <optional>true</optional>
+        </dependency>
+        <dependency>
+            <groupId>org.aspectj</groupId>
+        <artifactId>aspectjweaver</artifactId>
+        <optional>true</optional>
+        </dependency>
         <dependency>
             <groupId>org.springframework.ldap</groupId>
             <artifactId>spring-ldap</artifactId>
             <optional>true</optional>
         </dependency>
-	    <dependency>
-	        <groupId>cglib</groupId>
-		    <artifactId>cglib-nodep</artifactId>
-		    <scope>test</scope>
-		    <optional>true</optional>
-	    </dependency>	    
+        <dependency>
+            <groupId>cglib</groupId>
+            <artifactId>cglib-nodep</artifactId>
+            <scope>test</scope>
+            <optional>true</optional>
+        </dependency>
         <dependency>
             <groupId>net.sf.ehcache</groupId>
             <artifactId>ehcache</artifactId>
@@ -95,7 +95,7 @@
             <artifactId>jaxen</artifactId>
             <version>1.1.1</version>
             <optional>true</optional>
-        </dependency>        
+        </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
             <artifactId>servlet-api</artifactId>
@@ -122,6 +122,12 @@
             <scope>compile</scope>
             <optional>true</optional>
         </dependency>
+        <dependency>
+            <groupId>org.apache.tomcat</groupId>
+            <artifactId>annotations-api</artifactId>
+            <version>6.0.14</version>
+            <optional>true</optional>
+        </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>
@@ -141,14 +147,14 @@
             <optional>true</optional>
         </dependency>
     </dependencies>
-    
+
     <properties>
-      	<spring.osgi.export>
-      	    org.springframework.security.*;version=${pom.version}
-      	</spring.osgi.export>
+          <spring.osgi.export>
+              org.springframework.security.*;version=${pom.version}
+          </spring.osgi.export>
 
-    	<spring.osgi.import>
-    	    !com.ibm.websphere.security,
+        <spring.osgi.import>
+            !com.ibm.websphere.security,
             javax.servlet.*;version="[2.4.0, 3.0.0)";resolution:=optional,
             net.sf.ehcache.*;version="[1.4.1, 2.0.0)";resolution:=optional,
             org.aopalliance.*;version="[1.0.0, 2.0.0)",
@@ -180,19 +186,19 @@
             javax.sql.*,
             javax.xml.parsers.*,
             org.w3c.dom.*,
-            org.xml.sax.*,            
-        	*;resolution:=optional    	    
-    	</spring.osgi.import>
+            org.xml.sax.*,
+            *;resolution:=optional
+        </spring.osgi.import>
 
-    	<spring.osgi.private.pkg>
-    	    !org.springframework.security.*
-    	</spring.osgi.private.pkg>
-<!--    	
-    	<spring.osgi.include.res>
-    	    src/main/resources
-    	</spring.osgi.include.res>
+        <spring.osgi.private.pkg>
+            !org.springframework.security.*
+        </spring.osgi.private.pkg>
+<!--
+        <spring.osgi.include.res>
+            src/main/resources
+        </spring.osgi.include.res>
 -->
-    	<spring.osgi.symbolic.name>org.springframework.security.core</spring.osgi.symbolic.name>        
+        <spring.osgi.symbolic.name>org.springframework.security.core</spring.osgi.symbolic.name>
     </properties>
 
 </project>

+ 0 - 0
core-tiger/src/main/java/org/springframework/security/annotation/Jsr250MethodDefinitionSource.java → core/src/main/java/org/springframework/security/annotation/Jsr250MethodDefinitionSource.java


+ 0 - 0
core-tiger/src/main/java/org/springframework/security/annotation/Jsr250SecurityConfig.java → core/src/main/java/org/springframework/security/annotation/Jsr250SecurityConfig.java


+ 0 - 0
core-tiger/src/main/java/org/springframework/security/annotation/Jsr250Voter.java → core/src/main/java/org/springframework/security/annotation/Jsr250Voter.java


+ 0 - 0
core-tiger/src/main/java/org/springframework/security/annotation/Secured.java → core/src/main/java/org/springframework/security/annotation/Secured.java


+ 0 - 0
core-tiger/src/main/java/org/springframework/security/annotation/SecuredMethodDefinitionSource.java → core/src/main/java/org/springframework/security/annotation/SecuredMethodDefinitionSource.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/BusinessService.java → core/src/test/java/org/springframework/security/annotation/BusinessService.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/BusinessServiceImpl.java → core/src/test/java/org/springframework/security/annotation/BusinessServiceImpl.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/Department.java → core/src/test/java/org/springframework/security/annotation/Department.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/DepartmentService.java → core/src/test/java/org/springframework/security/annotation/DepartmentService.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/DepartmentServiceImpl.java → core/src/test/java/org/springframework/security/annotation/DepartmentServiceImpl.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/Entity.java → core/src/test/java/org/springframework/security/annotation/Entity.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/Jsr250BusinessServiceImpl.java → core/src/test/java/org/springframework/security/annotation/Jsr250BusinessServiceImpl.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/Jsr250MethodDefinitionSourceTests.java → core/src/test/java/org/springframework/security/annotation/Jsr250MethodDefinitionSourceTests.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/MethodDefinitionSourceEditorTigerTests.java → core/src/test/java/org/springframework/security/annotation/MethodDefinitionSourceEditorTigerTests.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/SecuredMethodDefinitionSourceTests.java → core/src/test/java/org/springframework/security/annotation/SecuredMethodDefinitionSourceTests.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/test/Entity.java → core/src/test/java/org/springframework/security/annotation/test/Entity.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/test/Organisation.java → core/src/test/java/org/springframework/security/annotation/test/Organisation.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/test/OrganisationService.java → core/src/test/java/org/springframework/security/annotation/test/OrganisationService.java


+ 1 - 4
core-tiger/src/test/java/org/springframework/security/annotation/test/OrganisationServiceImpl.java → core/src/test/java/org/springframework/security/annotation/test/OrganisationServiceImpl.java

@@ -16,11 +16,8 @@
 package org.springframework.security.annotation.test;
 
 /**
- * DOCUMENT ME!
  *
- * @author $author$
- * @version $Revision: 1496 $
-  */
+ */
 public class OrganisationServiceImpl extends ServiceImpl<Organisation> implements OrganisationService {
     //~ Methods ========================================================================================================
 

+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/test/Person.java → core/src/test/java/org/springframework/security/annotation/test/Person.java


+ 1 - 4
core-tiger/src/test/java/org/springframework/security/annotation/test/PersonService.java → core/src/test/java/org/springframework/security/annotation/test/PersonService.java

@@ -16,11 +16,8 @@
 package org.springframework.security.annotation.test;
 
 /**
- * DOCUMENT ME!
  *
- * @author $author$
- * @version $Revision: 1496 $
-  */
+ */
 public interface PersonService extends Service<Person> {
     //~ Methods ========================================================================================================
 

+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/test/PersonServiceImpl.java → core/src/test/java/org/springframework/security/annotation/test/PersonServiceImpl.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/annotation/test/Service.java → core/src/test/java/org/springframework/security/annotation/test/Service.java


+ 0 - 5
core-tiger/src/test/java/org/springframework/security/annotation/test/ServiceImpl.java → core/src/test/java/org/springframework/security/annotation/test/ServiceImpl.java

@@ -19,12 +19,7 @@ import java.util.Collection;
 
 
 /**
- * DOCUMENT ME!
  *
- * @author $author$
- * @version $Revision: 1496 $
-  *
- * @param <E> DOCUMENT ME!
  */
 public class ServiceImpl<E extends Entity> implements Service<E> {
     //~ Methods ========================================================================================================

+ 0 - 0
core-tiger/src/test/java/org/springframework/security/config/GlobalMethodSecurityBeanDefinitionParserTests.java → core/src/test/java/org/springframework/security/config/GlobalMethodSecurityBeanDefinitionParserTests.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/config/Jsr250AnnotationDrivenBeanDefinitionParserTests.java → core/src/test/java/org/springframework/security/config/Jsr250AnnotationDrivenBeanDefinitionParserTests.java


+ 0 - 0
core-tiger/src/test/java/org/springframework/security/config/SecuredAnnotationDrivenBeanDefinitionParserTests.java → core/src/test/java/org/springframework/security/config/SecuredAnnotationDrivenBeanDefinitionParserTests.java


+ 0 - 11
itest/pom.xml

@@ -59,17 +59,6 @@
                     <artifactId>commons-logging</artifactId>
                 </exclusion>
             </exclusions>            
-        </dependency>
-        <dependency>
-            <groupId>org.springframework.security</groupId>
-            <artifactId>spring-security-core-tiger</artifactId>
-            <version>${project.version}</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>commons-logging</groupId>
-                    <artifactId>commons-logging</artifactId>
-                </exclusion>
-            </exclusions>            
         </dependency>
 	    <dependency>
 	        <groupId>org.aspectj</groupId>

+ 1 - 1
ntlm/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-parent</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <packaging>jar</packaging>
     <artifactId>spring-security-ntlm</artifactId>

+ 2 - 2
openid/pom.xml

@@ -3,12 +3,12 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-parent</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <artifactId>spring-security-openid</artifactId>
     <name>Spring Security - OpenID support</name>
     <description>Spring Security - Support for OpenID</description>
-    <version>2.0.5-SNAPSHOT</version>
+    <version>2.5.0-SNAPSHOT</version>
     <packaging>bundle</packaging>
 
     <dependencies>

+ 6 - 27
pom.xml

@@ -3,13 +3,12 @@
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-parent</artifactId>
-    <version>2.0.5-SNAPSHOT</version>
+    <version>2.5.0-SNAPSHOT</version>
     <name>Spring Security</name>
     <packaging>pom</packaging>
 
     <modules>
-        <module>core</module>            
-        <module>core-tiger</module>        
+        <module>core</module>    
         <module>adapters</module>
         <module>portlet</module>
         <module>ntlm</module>
@@ -284,30 +283,10 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.0.2</version>
-                <executions>
-                    <execution>
-                        <id>java-1.4-compile</id>
-                        <phase>compile</phase>
-                        <goals>
-                            <goal>compile</goal>
-                        </goals>
-                        <configuration>
-                            <source>1.4</source>
-                            <target>1.4</target>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>java-1.5-compile</id>
-                        <phase>process-test-sources</phase>
-                        <goals>
-                            <goal>testCompile</goal>
-                        </goals>
-                        <configuration>
-                            <source>1.5</source>
-                            <target>1.5</target>
-                        </configuration>
-                    </execution>
-                </executions>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>                
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>

+ 1 - 1
portlet/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-parent</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <artifactId>spring-security-portlet</artifactId>
     <name>Spring Security - Portlet support</name>

+ 0 - 4
samples/annotations/.cvsignore

@@ -1,4 +0,0 @@
-classes
-generated
-reports
-target

+ 0 - 33
samples/annotations/pom.xml

@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <groupId>org.springframework.security</groupId>
-    <artifactId>spring-security-samples</artifactId>
-    <version>2.0-SNAPSHOT</version>
-  </parent>
-  <artifactId>spring-security-sample-annotations</artifactId>
-  <name>Spring Security - Annotations sample</name>
-   <dependencies>
-      <dependency>
-      <groupId>org.springframework.security</groupId>
-      <artifactId>spring-security-core-tiger</artifactId>
-      <version>${project.version}</version>
-      <type>jar</type>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-</project>

+ 0 - 50
samples/annotations/src/main/java/sample/annotations/BankService.java

@@ -1,50 +0,0 @@
-/* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package sample.annotations;
-
-import org.acegisecurity.annotation.Secured;
-
-
-/**
- * <code>BankService</code> sample using Java 5 Annotations.
- *
- * @author Mark St.Godard
- * @version $Id$
- * 
- * @see org.acegisecurity.annotation.Secured
- */
-@Secured({"ROLE_TELLER"})
-public interface BankService {
-    //~ Methods ========================================================================================================
-
-    /**
-     * Get the account balance.
-     *
-     * @param accountNumber The account number
-     *
-     * @return The balance
-     */
-    @Secured({"ROLE_PERMISSION_BALANCE"})
-    public float balance(String accountNumber);
-
-    /**
-     * List accounts
-     *
-     * @return The list of accounts
-     */
-    @Secured({"ROLE_PERMISSION_LIST"})
-    public String[] listAccounts();
-}

+ 0 - 34
samples/annotations/src/main/java/sample/annotations/BankServiceImpl.java

@@ -1,34 +0,0 @@
-/* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package sample.annotations;
-
-/**
- * <code>BankService</code> sample implementation.
- *
- * @author Mark St.Godard
- * @version $Id$
- */
-public class BankServiceImpl implements BankService {
-    //~ Methods ========================================================================================================
-
-    public float balance(String accountNumber) {
-        return 42000000;
-    }
-
-    public String[] listAccounts() {
-        return new String[] {"1", "2", "3"};
-    }
-}

+ 0 - 77
samples/annotations/src/main/java/sample/annotations/Main.java

@@ -1,77 +0,0 @@
-/* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package sample.annotations;
-
-import org.acegisecurity.AccessDeniedException;
-import org.acegisecurity.GrantedAuthority;
-import org.acegisecurity.GrantedAuthorityImpl;
-
-import org.acegisecurity.context.SecurityContextHolder;
-import org.acegisecurity.context.SecurityContextImpl;
-
-import org.acegisecurity.providers.TestingAuthenticationToken;
-
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-
-/**
- * 
-DOCUMENT ME!
- *
- * @author Mark St.Godard
- * @version $Id$
- */
-public class Main {
-    //~ Methods ========================================================================================================
-
-    /**
-     * This can be done in a web app by using a filter or <code>SpringMvcIntegrationInterceptor</code>.
-     */
-    private static void createSecureContext() {
-        TestingAuthenticationToken auth = new TestingAuthenticationToken("test", "test",
-                new GrantedAuthority[] {
-                    new GrantedAuthorityImpl("ROLE_TELLER"), new GrantedAuthorityImpl("ROLE_PERMISSION_LIST")
-                });
-
-        SecurityContextHolder.getContext().setAuthentication(auth);
-    }
-
-    private static void destroySecureContext() {
-        SecurityContextHolder.setContext(new SecurityContextImpl());
-    }
-
-    public static void main(String[] args) throws Exception {
-        createSecureContext();
-
-        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
-                "applicationContext-annotations.xml");
-        BankService service = (BankService) context.getBean("bankService");
-
-        // will succeed
-        service.listAccounts();
-
-        // will fail
-        try {
-            System.out.println(
-                "We expect an AccessDeniedException now, as we do not hold the ROLE_PERMISSION_BALANCE granted authority, and we're using a unanimous access decision manager... ");
-            service.balance("1");
-        } catch (AccessDeniedException e) {
-            e.printStackTrace();
-        }
-
-        destroySecureContext();
-    }
-}

+ 0 - 99
samples/annotations/src/main/resources/applicationContext-annotations.xml

@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
-<!--
- * Copyright 2004 Acegi Technology Pty Limited
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- *
- * $Id$
--->
-
-<beans>
-
-	<!-- =================== SECURITY SYSTEM DEFINITIONS ================== -->
-
-	<!-- RunAsManager -->
-	<bean id="runAsManager" class="org.springframework.security.runas.RunAsManagerImpl">
-     	<property name="key"><value>my_run_as_password</value></property>
- 	</bean>
-
-	<!-- ~~~~~~~~~~~~~~~~~~~~ AUTHENTICATION DEFINITIONS ~~~~~~~~~~~~~~~~~~ -->
-
-	<!-- This authentication provider accepts any presented TestingAuthenticationToken -->
-	<bean id="testingAuthenticationProvider" class="org.springframework.security.providers.TestingAuthenticationProvider"/>
-
-	<!-- The authentication manager that iterates through our only authentication provider -->
-	<bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
-		<property name="providers">
-		  <list>
-		    <ref local="testingAuthenticationProvider"/>
-		  </list>
-		</property>
-	</bean>
-
-	<!-- ~~~~~~~~~~~~~~~~~~~~ AUTHORIZATION DEFINITIONS ~~~~~~~~~~~~~~~~~~~ -->
-
-	<!-- An access decision voter that reads ROLE_* configuaration settings -->
-	<bean id="roleVoter" class="org.springframework.security.vote.RoleVoter"/>
-
-	<!-- A unanimous access decision manager -->
-	<bean id="accessDecisionManager" class="org.springframework.security.vote.UnanimousBased">
-   		<property name="allowIfAllAbstainDecisions"><value>false</value></property>
-		<property name="decisionVoters">
-		  <list>
-		    <ref local="roleVoter"/>
-		  </list>
-		</property>
-	</bean>
-
-	<!-- ===================== SECURITY DEFINITIONS ======================= -->
-
-	<bean id="attributes" class="org.springframework.security.annotation.SecurityAnnotationAttributes"/>
-
-	<bean id="objectDefinitionSource" class="org.springframework.security.intercept.method.MethodDefinitionAttributes">
-		<property name="attributes"><ref local="attributes"/></property>
-	</bean>
-
-	<!-- We don't validate config attributes, as it's unsupported by MethodDefinitionAttributes -->
-	<bean id="securityInterceptor" class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor">
-    	<property name="validateConfigAttributes"><value>false</value></property>
-    	<property name="authenticationManager"><ref local="authenticationManager"/></property>
-    	<property name="accessDecisionManager"><ref local="accessDecisionManager"/></property>
-    	<property name="runAsManager"><ref local="runAsManager"/></property>
- 		<property name="objectDefinitionSource"><ref local="objectDefinitionSource"/></property>
-	</bean>
-
-	<bean id="bankService" class="sample.annotations.BankServiceImpl"/>
-
-	<!--
-		This bean is a postprocessor that will automatically apply relevant advisors
-		to any bean in child factories.
-	-->
-	<bean id="autoproxy"
-		class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator">
-	</bean>
-
-	<!--
-		AOP advisor that will automatically wire the MethodSecurityInterceptor (above)
-		into BankServiceImpl (above). The configuration attributes used are obtained
-		from the securityInterceptor.objectDefinitionSouce, which in the
-		above configuration is a JDK 5 Annotations Attributes-based source.
-	-->
-	<bean id="methodSecurityAdvisor"
-		class="org.springframework.security.intercept.method.aopalliance.MethodDefinitionSourceAdvisor"
-		autowire="constructor" >
-	</bean>
-
-
-</beans>

+ 0 - 99
samples/annotations/src/test/java/samples/annotations/BankTests.java

@@ -1,99 +0,0 @@
-/* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package samples.annotations;
-
-import junit.framework.TestCase;
-
-import org.acegisecurity.AccessDeniedException;
-import org.acegisecurity.GrantedAuthority;
-import org.acegisecurity.GrantedAuthorityImpl;
-
-import org.acegisecurity.context.SecurityContextHolder;
-import org.acegisecurity.context.SecurityContextImpl;
-
-import org.acegisecurity.providers.TestingAuthenticationToken;
-
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-import sample.annotations.BankService;
-
-
-/**
- * Tests security objects.
- *
- * @author Ben Alex
- * @version $Id$
- */
-public class BankTests extends TestCase {
-    //~ Instance fields ================================================================================================
-
-    private BankService service;
-    private ClassPathXmlApplicationContext ctx;
-
-    //~ Constructors ===================================================================================================
-
-    public BankTests() {
-        super();
-    }
-
-    public BankTests(String arg0) {
-        super(arg0);
-    }
-
-    //~ Methods ========================================================================================================
-
-    private static void createSecureContext() {
-        TestingAuthenticationToken auth = new TestingAuthenticationToken("test", "test",
-                new GrantedAuthority[] {
-                    new GrantedAuthorityImpl("ROLE_TELLER"), new GrantedAuthorityImpl("ROLE_PERMISSION_LIST")
-                });
-
-        SecurityContextHolder.getContext().setAuthentication(auth);
-    }
-
-    private static void destroySecureContext() {
-        SecurityContextHolder.setContext(new SecurityContextImpl());
-    }
-
-    public static void main(String[] args) {
-        junit.textui.TestRunner.run(BankTests.class);
-    }
-
-    public final void setUp() throws Exception {
-        super.setUp();
-        ctx = new ClassPathXmlApplicationContext("applicationContext-annotations.xml");
-        service = (BankService) ctx.getBean("bankService");
-    }
-
-    public void testDeniedAccess() throws Exception {
-        createSecureContext();
-
-        try {
-            service.balance("1");
-            fail("Should have thrown AccessDeniedException");
-        } catch (AccessDeniedException expected) {
-            assertTrue(true);
-        }
-
-        destroySecureContext();
-    }
-
-    public void testListAccounts() throws Exception {
-        createSecureContext();
-        service.listAccounts();
-        destroySecureContext();
-    }
-}

+ 1 - 1
samples/cas/client/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-samples-cas</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-samples-cas-client</artifactId>

+ 1 - 1
samples/cas/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-samples</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-samples-cas</artifactId>

+ 1 - 1
samples/cas/server/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-samples-cas</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-samples-cas-server</artifactId>

+ 1 - 1
samples/contacts/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-samples</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <artifactId>spring-security-samples-contacts</artifactId>
     <name>Spring Security - Contacts sample</name>

+ 1 - 1
samples/dms/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-samples</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <artifactId>spring-security-samples-dms</artifactId>
     <name>Spring Security - DMS sample</name>

+ 1 - 6
samples/ldap/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-samples</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-samples-ldap</artifactId>
@@ -15,11 +15,6 @@
             <artifactId>spring-security-core</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.springframework.security</groupId>
-            <artifactId>spring-security-core-tiger</artifactId>
-            <version>${project.version}</version>
-        </dependency>
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-web</artifactId>

+ 1 - 1
samples/openid/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-samples</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-samples-openid</artifactId>

+ 1 - 1
samples/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-parent</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-samples</artifactId>

+ 1 - 1
samples/portlet/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-samples</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-samples-portlet</artifactId>

+ 1 - 6
samples/preauth/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-samples</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-samples-preauth</artifactId>
@@ -15,11 +15,6 @@
             <artifactId>spring-security-core</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.springframework.security</groupId>
-            <artifactId>spring-security-core-tiger</artifactId>
-            <version>${project.version}</version>
-        </dependency>
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-web</artifactId>

+ 4 - 9
samples/tutorial/pom.xml

@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-samples</artifactId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-samples-tutorial</artifactId>
@@ -15,11 +15,6 @@
             <artifactId>spring-security-core</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.springframework.security</groupId>
-            <artifactId>spring-security-core-tiger</artifactId>
-            <version>${project.version}</version>
-        </dependency>
         <dependency>
             <groupId>org.springframework.security</groupId>
             <artifactId>spring-security-taglibs</artifactId>
@@ -47,7 +42,7 @@
             <groupId>javax.servlet</groupId>
             <artifactId>servlet-api</artifactId>
             <scope>provided</scope>
-        </dependency>        
+        </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
             <artifactId>jstl</artifactId>
@@ -62,7 +57,7 @@
             <groupId>log4j</groupId>
             <artifactId>log4j</artifactId>
             <scope>runtime</scope>
-        </dependency>        
+        </dependency>
     </dependencies>
 
     <build>
@@ -102,4 +97,4 @@
         </plugins>
     </build>
 
-</project>
+</project>

+ 1 - 6
sandbox/heavyduty/pom.xml

@@ -4,18 +4,13 @@
     <artifactId>spring-security-heavyduty</artifactId>
     <name>Spring Security - Heavy Duty Sample</name>
     <packaging>war</packaging>
-    <version>2.0.4-SNAPSHOT</version>
+    <version>2.5.0-SNAPSHOT</version>
     <dependencies>
         <dependency>
             <groupId>org.springframework.security</groupId>
             <artifactId>spring-security-core</artifactId>
             <version>${spring.security.version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.springframework.security</groupId>
-            <artifactId>spring-security-core-tiger</artifactId>
-            <version>${spring.security.version}</version>
-        </dependency>
         <dependency>
             <groupId>org.springframework.security</groupId>
             <artifactId>spring-security-taglibs</artifactId>

+ 3 - 8
sandbox/webflow/pom.xml

@@ -10,23 +10,18 @@
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-samples-webflow</artifactId>
     <name>Spring Security - Webflow sample</name>
-    <version>2.0.5-SNAPSHOT</version>
+    <version>2.5.0-SNAPSHOT</version>
     <packaging>war</packaging>
     <dependencies>
         <dependency>
             <groupId>org.springframework.security</groupId>
             <artifactId>spring-security-core</artifactId>
-            <version>2.0.4</version>
-        </dependency>
-        <dependency>
-            <groupId>org.springframework.security</groupId>
-            <artifactId>spring-security-core-tiger</artifactId>
-            <version>2.0.4</version>
+            <version>${project.version}</version>
         </dependency>
         <dependency>
             <groupId>org.springframework.security</groupId>
             <artifactId>spring-security-taglibs</artifactId>
-            <version>2.0.4</version>
+            <version>${project.version}</version>
         </dependency>
         <dependency>
             <groupId>org.springframework.webflow</groupId>

+ 2 - 2
taglibs/pom.xml

@@ -3,13 +3,13 @@
     <parent>
         <artifactId>spring-security-parent</artifactId>
         <groupId>org.springframework.security</groupId>
-        <version>2.0.5-SNAPSHOT</version>
+        <version>2.5.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-taglibs</artifactId>
     <name>Spring Security - JSP taglibs</name>
-    <version>2.0.5-SNAPSHOT</version>
+    <version>2.5.0-SNAPSHOT</version>
     <packaging>jar</packaging>
 
     <dependencies>