Browse Source

SEC-540,SEC-541: Changes for maven 2 site generation and use of docbkx.

Luke Taylor 18 years ago
parent
commit
f9e16d6ee3

+ 11 - 0
adapters/cas/src/main/site/site.xml

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<project name="Acegi Security CAS Adapter">
+    <body>
+        <menu ref="parent"/>
+        <menu ref="reports"/>
+    </body>
+
+</project>
+
+

+ 49 - 15
pom.xml

@@ -3,15 +3,17 @@
 	<groupId>org.acegisecurity</groupId>
 	<artifactId>acegi-security-parent</artifactId>
 	<version>1.0.5-SNAPSHOT</version>
-	<name>Acegi Security System for Spring - Parent</name>
+	<name>Acegi Security</name>
 	<packaging>pom</packaging>
 
 	<modules>
 		<module>core</module>
-		<module>core-tiger</module>
-		<module>adapters</module>
+        <module>core-tiger</module>
+        <module>adapters</module>
 		<module>samples</module>
-		<module>doc</module>
+<!--
+        <module>doc</module>
+-->
 	</modules>
 
 	<description>Acegi Security System for Spring</description>
@@ -61,10 +63,11 @@
 		<site>
 			<id>sourceforge.net</id>
 			<name>Acegi Website at Sourceforge</name>
-			<url>
+            <!--<url>file:///Users/luke/acegisite/</url>-->
+            <url>
 				scp://shell.sourceforge.net/home/groups/a/ac/acegisecurity/htdocs/maven2
 			</url>
-		</site>
+        </site>
 	</distributionManagement>
 
 	<repositories>
@@ -86,9 +89,19 @@
 				<enabled>false</enabled>
 			</releases>
 		</repository>
-	</repositories>
+    </repositories>
+
+    <pluginRepositories>
+        <pluginRepository>
+            <id>agilejava.com</id>
+            <url>http://agilejava.com/maven/</url>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+        </pluginRepository>
+    </pluginRepositories>
 
-	<mailingLists>
+    <mailingLists>
 		<mailingList>
 			<name>Acegi Developer List</name>
 			<subscribe>
@@ -366,9 +379,25 @@
 			<plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-site-plugin</artifactId>
-				<version>2.0-beta-5</version>
+				<version>2.0-BETA-5</version>
 			</plugin>
-		</plugins>
+            <plugin>
+                <groupId>com.agilejava.docbkx</groupId>
+                <artifactId>docbkx-maven-plugin</artifactId>
+                <version>2.0.6</version>
+                <dependencies>
+                    <dependency>
+                    <groupId>org.docbook</groupId>
+                    <artifactId>docbook-xml</artifactId>
+                    <version>4.4</version>
+                    <scope>runtime</scope>
+                    </dependency>
+                </dependencies>
+                <configuration>
+                    <targetDirectory>${basedir}/target/site/guide</targetDirectory>
+                </configuration>
+            </plugin>
+        </plugins>
 	</build>
 
 	<reporting>
@@ -382,7 +411,8 @@
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-jxr-plugin</artifactId>
 			</plugin>
-			<plugin>
+<!--
+            <plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-checkstyle-plugin</artifactId>
 				<configuration>
@@ -391,18 +421,22 @@
 					</configLocation>
 				</configuration>
 			</plugin>
-			<plugin>
+-->
+<!--
+            <plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-pmd-plugin</artifactId>
 			</plugin>
+-->
 			<plugin>
 				<groupId>org.codehaus.mojo</groupId>
 				<artifactId>cobertura-maven-plugin</artifactId>
 			</plugin>
-			<plugin>
+
+            <plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-javadoc-plugin</artifactId>
-				<configuration>
+                <configuration>
 					<links>
 						<link>
 							http://java.sun.com/j2se/1.5.0/docs/api
@@ -457,7 +491,7 @@
 				<groupId>org.codehaus.mojo</groupId>
 				<artifactId>taglist-maven-plugin</artifactId>
 			</plugin>
-		</plugins>
+        </plugins>
 	</reporting>
 
 	<dependencyManagement>

+ 0 - 6323
src/docbook/acegi.xml

@@ -1,6323 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
-"http://www.oasis-open.org/docbook/xml/4.2/docbookx.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.
- * 
- * ========================================================================
--->
-<book>
-  <bookinfo>
-    <title>Acegi Security</title>
-
-    <subtitle>Reference Documentation</subtitle>
-
-    <releaseinfo>1.0.4</releaseinfo>
-
-    <authorgroup>
-      <author>
-        <firstname>Ben</firstname>
-
-        <surname>Alex</surname>
-      </author>
-    </authorgroup>
-  </bookinfo>
-
-  <toc></toc>
-
-  <preface id="preface">
-    <title>Preface</title>
-
-    <para>Acegi Security provides a comprehensive security solution for
-    J2EE-based enterprise software applications. As you will discover as you
-    venture through this reference guide, we have tried to provide you a
-    useful and highly configurable security system.</para>
-
-    <para>Security is an ever-moving target, and it's important to pursue a
-    comprehensive, system-wide approach. In security circles we encourage you
-    to adopt "layers of security", so that each layer tries to be as secure as
-    possible in its own right, with successive layers providing additional
-    security. The "tighter" the security of each layer, the more robust and
-    safe your application will be. At the bottom level you'll need to deal
-    with issues such as transport security and system identification, in order
-    to mitigate man-in-the-middle attacks. Next you'll generally utilise
-    firewalls, perhaps with VPNs or IP security to ensure only authorised
-    systems can attempt to connect. In corporate environments you may deploy a
-    DMZ to separate public-facing servers from backend database and
-    application servers. Your operating system will also play a critical part,
-    addressing issues such as running processes as non-privileged users and
-    maximising file system security. An operating system will usually also be
-    configured with its own firewall. Hopefully somewhere along the way you'll
-    be trying to prevent denial of service and brute force attacks against the
-    system. An intrusion detection system will also be especially useful for
-    monitoring and responding to attacks, with such systems able to take
-    protective action such as blocking offending TCP/IP addresses in
-    real-time. Moving to the higher layers, your Java Virtual Machine will
-    hopefully be configured to minimize the permissions granted to different
-    Java types, and then your application will add its own problem
-    domain-specific security configuration. Acegi Security makes this latter
-    area - application security - much easier.</para>
-
-    <para>Of course, you will need to properly address all security layers
-    mentioned above, together with managerial factors that encompass every
-    layer. A non-exhaustive list of such managerial factors would include
-    security bulletin monitoring, patching, personnel vetting, audits, change
-    control, engineering management systems, data backup, disaster recovery,
-    performance benchmarking, load monitoring, centralised logging, incident
-    response procedures etc.</para>
-
-    <para>With Acegi Security being focused on helping you with the enterprise
-    application security layer, you will find that there are as many different
-    requirements as there are business problem domains. A banking application
-    has different needs from an ecommerce application. An ecommerce
-    application has different needs from a corporate sales force automation
-    tool. These custom requirements make application security interesting,
-    challenging and rewarding.</para>
-
-    <para>This reference guide has been largely restructured for the 1.0.0
-    release of Acegi Security. Please read Part I, <link
-    linkend="overall-architecture">Overall Architecture</link>, in its
-    entirety. The remaining parts of the reference guide are structured in a
-    more traditional reference style, designed to be read on an as-required
-    basis.</para>
-
-    <para>We hope that you find this reference guide useful, and we welcome
-    your feedback and <link linkend="jira">suggestions</link>.</para>
-
-    <para>Finally, welcome to the Acegi Security <link
-    linkend="community">community</link>.</para>
-  </preface>
-
-  <part id="overall-architecture">
-    <title>Overall Architecture</title>
-
-    <partintro>
-      <para>Like most software, Acegi Security has certain central interfaces,
-      classes and conceptual abstractions that are commonly used throughout
-      the framework. In this part of the reference guide we will introduce
-      Acegi Security, before examining these central elements that are
-      necessary to successfully planning and executing an Acegi Security
-      integration.</para>
-    </partintro>
-
-    <chapter id="introduction">
-      <title>Introduction</title>
-
-      <sect1 id="what-is-acegi-security">
-        <title>What is Acegi Security?</title>
-
-        <para>Acegi Security provides comprehensive security services for
-        J2EE-based enterprise software applications. There is a particular
-        emphasis on supporting projects built using The Spring Framework,
-        which is the leading J2EE solution for enterprise software
-        development. If you're not using Spring for developing enterprise
-        applications, we warmly encourage you to take a closer look at it.
-        Some familiarity with Spring - and in particular dependency injection
-        principles - will help you get up to speed with Acegi Security more
-        easily.</para>
-
-        <para>People use Acegi Security for many reasons, but most are drawn
-        to the project after finding the security features of J2EE's Servlet
-        Specification or EJB Specification lack the depth required for typical
-        enterprise application scenarios. Whilst mentioning these standards,
-        it's important to recognise that they are not portable at a WAR or EAR
-        level. Therefore, if you switch server environments, it is typically a
-        lot of work to reconfigure your application's security in the new
-        target environment. Using Acegi Security overcomes these problems, and
-        also brings you dozens of other useful, entirely customisable security
-        features.</para>
-
-        <para>As you probably know, security comprises two major operations.
-        The first is known as "authentication", which is the process of
-        establishing a principal is who they claim to be. A "principal"
-        generally means a user, device or some other system which can perform
-        an action in your application. "Authorization" refers to the process
-        of deciding whether a principal is allowed to perform an action in
-        your application. To arrive at the point where an authorization
-        decision is needed, the identity of the principal has already been
-        established by the authentication process. These concepts are common,
-        and not at all specific to Acegi Security.</para>
-
-        <para>At an authentication level, Acegi Security supports a wide range
-        of authentication models. Most of these authentication models are
-        either provided by third parties, or are developed by relevant
-        standards bodies such as the Internet Engineering Task Force. In
-        addition, Acegi Security provides its own set of authentication
-        features. Specifically, Acegi Security currently supports
-        authentication with all of these technologies:</para>
-
-        <itemizedlist spacing="compact">
-          <listitem>
-            <para>HTTP BASIC authentication headers (an IEFT RFC-based
-            standard)</para>
-          </listitem>
-
-          <listitem>
-            <para>HTTP Digest authentication headers (an IEFT RFC-based
-            standard)</para>
-          </listitem>
-
-          <listitem>
-            <para>HTTP X.509 client certificate exchange (an IEFT RFC-based
-            standard)</para>
-          </listitem>
-
-          <listitem>
-            <para>LDAP (a very common approach to cross-platform
-            authentication needs, especially in large environments)</para>
-          </listitem>
-
-          <listitem>
-            <para>Form-based authentication (for simple user interface
-            needs)</para>
-          </listitem>
-
-          <listitem>
-            <para>Computer Associates Siteminder</para>
-          </listitem>
-
-          <listitem>
-            <para>JA-SIG Central Authentication Service (otherwise known as
-            CAS, which is a popular open source single sign on system)</para>
-          </listitem>
-
-          <listitem>
-            <para>Transparent authentication context propagation for Remote
-            Method Invocation (RMI) and HttpInvoker (a Spring remoting
-            protocol)</para>
-          </listitem>
-
-          <listitem>
-            <para>Automatic "remember-me" authentication (so you can tick a
-            box to avoid re-authentication for a predetermined period of
-            time)</para>
-          </listitem>
-
-          <listitem>
-            <para>Anonymous authentication (allowing every call to
-            automatically assume a particular security identity)</para>
-          </listitem>
-
-          <listitem>
-            <para>Run-as authentication (which is useful if one call should
-            proceed with a different security identity)</para>
-          </listitem>
-
-          <listitem>
-            <para>Java Authentication and Authorization Service (JAAS)</para>
-          </listitem>
-
-          <listitem>
-            <para>Container integration with JBoss, Jetty, Resin and Tomcat
-            (so you can still use Container Manager Authentication if
-            desired)</para>
-          </listitem>
-
-          <listitem>
-            <para>Your own authentication systems (see below)</para>
-          </listitem>
-        </itemizedlist>
-
-        <para>Many independent software vendors (ISVs) adopt Acegi Security
-        because of this rich choice of authentication models. Doing so allows
-        them to quickly integrate their solutions with whatever their end
-        clients need, without undertaking a lot of engineering or requiring
-        the client to change their environment. If none of the above
-        authentication mechanisms suit your needs, Acegi Security is an open
-        platform and it is quite simple to write your own authentication
-        mechanism. Many corporate users of Acegi Security need to integrate
-        with "legacy" systems that don't follow any particular security
-        standards, and Acegi Security is happy to "play nicely" with such
-        systems.</para>
-
-        <para>Sometimes the mere process of authentication isn't enough.
-        Sometimes you need to also differentiate security based on the way a
-        principal is interacting with your application. For example, you might
-        want to ensure requests only arrive over HTTPS, in order to protect
-        passwords from eavesdropping or end users from man-in-the-middle
-        attacks. Or, you might want to ensure that an actual human being is
-        making the requests and not some robot or other automated process.
-        This is especially helpful to protect password recovery processes from
-        brute force attacks, or simply to make it harder for people to
-        duplicate your application's key content. To help you achieve these
-        goals, Acegi Security fully supports automatic "channel security",
-        together with JCaptcha integration for human user detection.</para>
-
-        <para>Irrespective of how authentication was undertaken, Acegi
-        Security provides a deep set of authorization capabilities. There are
-        three main areas of interest in respect of authorization, these being
-        authorizing web requests, authorizing methods can be invoked, and
-        authorizing access to individual domain object instances. To help you
-        understand the differences, consider the authorization capabilities
-        found in the Servlet Specification web pattern security, EJB Container
-        Managed Security and file system security respectively. Acegi Security
-        provides deep capabilities in all of these important areas, which
-        we'll explore later in this reference guide.</para>
-      </sect1>
-
-      <sect1 id="history">
-        <title>History</title>
-
-        <para>Acegi Security began in late 2003, when a question was posed on
-        the Spring Developers' mailing list asking whether there had been any
-        consideration given to a Spring-based security implementation. At the
-        time the Spring community was relatively small (especially by today's
-        size!), and indeed Spring itself had only existed as a SourceForge
-        project from early 2003. The response to the question was that it was
-        a worthwhile area, although a lack of time currently prevented its
-        exploration.</para>
-
-        <para>With that in mind, a simple security implementation was built
-        and not released. A few weeks later another member of the Spring
-        community inquired about security, and at the time this code was
-        offered to them. Several other requests followed, and by January 2004
-        around twenty people were using the code. These pioneering users were
-        joined by others who suggested a SourceForge project was in order,
-        which was duly established in March 2004.</para>
-
-        <para>In those early days, the project didn't have any of its own
-        authentication modules. Container Managed Security was relied upon for
-        the authentication process, with Acegi Security instead focusing on
-        authorization. This was suitable at first, but as more and more users
-        requested additional container support, the fundamental limitation of
-        container-specific authentication realm interfaces was experienced.
-        There was also a related issue of adding new JARs to the container's
-        classpath, which was a common source of end user confusion and
-        misconfiguration.</para>
-
-        <para>Acegi Security-specific authentication services were
-        subsequently introduced. Around a year later, the Acegi Security
-        became an official Spring Framework subproject. The 1.0.0 final
-        release was published in May 2006 - after more than two and a half
-        years of active use in numerous production software projects and many
-        hundreds of improvements and community contributions.</para>
-
-        <para>Today Acegi Security enjoys a strong and active open source
-        community. There are thousands of messages about Acegi Security on the
-        support forums. Fourteen developers work on the code itself, with an
-        active community who also regularly share patches and support their
-        peers.</para>
-      </sect1>
-
-      <sect1 id="release-numbering">
-        <title>Release Numbering</title>
-
-        <para>It is useful to understand how Acegi Security release numbers
-        work, as it will help you identify the effort (or lack thereof)
-        involved in migrating to future releases of the project. Officially,
-        we use the Apache Portable Runtime Project versioning guidelines,
-        which can be viewed at
-        <literal>http://apr.apache.org/versioning.html</literal>. We quote the
-        introduction contained on that page for your convenience:</para>
-
-        <para><quote>Versions are denoted using a standard triplet of
-        integers: MAJOR.MINOR.PATCH. The basic intent is that MAJOR versions
-        are incompatible, large-scale upgrades of the API. MINOR versions
-        retain source and binary compatibility with older minor versions, and
-        changes in the PATCH level are perfectly compatible, forwards and
-        backwards.</quote></para>
-      </sect1>
-    </chapter>
-
-    <chapter id="technical-overview">
-      <title>Technical Overview</title>
-
-      <sect1 id="runtime-environment">
-        <title>Runtime Environment</title>
-
-        <para>Acegi Security is written to execute within a standard Java 1.3
-        Runtime Environment. It also supports Java 5.0, although the Java
-        types which are specific to this release are packaged in a separate
-        package with the suffix "tiger" in their JAR filename. As Acegi
-        Security aims to operate in a self-contained manner, there is no need
-        to place any special configuration files into your Java Runtime
-        Environment. In particular, there is no need to configure a special
-        Java Authentication and Authorization Service (JAAS) policy file or
-        place Acegi Security into common classpath locations.</para>
-
-        <para>Similarly, if you are using an EJB Container or Servlet
-        Container there is no need to put any special configuration files
-        anywhere, nor include Acegi Security in a server classloader.</para>
-
-        <para>This above design offers maximum deployment time flexibility, as
-        you can simply copy your target artifact (be it a JAR, WAR or EAR)
-        from one system to another and it will immediately work.</para>
-      </sect1>
-
-      <sect1 id="shared-components">
-        <title>Shared Components</title>
-
-        <para>Let's explore some of the most important shared components in
-        Acegi Security. Components are considered "shared" if they are central
-        to the framework and the framework cannot operate without them. These
-        Java types represent the building blocks of the remaining system, so
-        it's important to understand that they're there, even if you don't
-        need to directly interact with them.</para>
-
-        <para>The most fundamental object is
-        <literal>SecurityContextHolder</literal>. This is where we store
-        details of the present security context of the application, which
-        includes details of the principal currently using the application. By
-        default the <literal>SecurityContextHolder</literal> uses a
-        <literal>ThreadLocal</literal> to store these details, which means
-        that the security context is always available to methods in the same
-        thread of execution, even if the security context is not explicitly
-        passed around as an argument those methods. Using a
-        <literal>ThreadLocal</literal> in this way is quite safe if care is
-        taken to clear the thread after the present principal's request is
-        processed. Of course, Acegi Security takes care of for you
-        automatically so there is no need to worry about it.</para>
-
-        <para>Some applications aren't entirely suitable for using a
-        <literal>ThreadLocal</literal>, because of the specific way they work
-        with threads. For example, a Swing client might want all threads in a
-        Java Virtual Machine to use the same security context. For this
-        situation you would use the
-        <literal>SecurityContextHolder.MODE_GLOBAL</literal>. Other
-        applications might want to have threads spawned by the secure thread
-        also assume the same security identity. This is achieved by using
-        <literal>SecurityContextHolder.MODE_INHERITABLETHREADLOCAL</literal>.
-        You can change the mode from the default
-        <literal>SecurityContextHolder.MODE_THREADLOCAL</literal> in two ways.
-        The first is to set a system property. Alternatively, call a static
-        method on <literal>SecurityContextHolder</literal>. Most applications
-        won't need to change from the default, but if you do, take a look at
-        the JavaDocs for <literal>SecurityContextHolder</literal> to learn
-        more.</para>
-
-        <para>Inside the <literal>SecurityContextHolder</literal> we store
-        details of the principal currently interacting with the application.
-        Acegi Security uses an <literal>Authentication</literal> object to
-        represent this information. Whilst you won't normally need to create
-        an <literal>Authentication</literal> object yourself, it is fairly
-        common for users to query the <literal>Authentication</literal>
-        object. You can use the following code block - from anywhere in your
-        application - to do this:</para>
-
-        <programlisting>Object obj = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
-
-if (obj instanceof UserDetails) {
-  String username = ((UserDetails)obj).getUsername();
-} else {
-  String username = obj.toString();
-}</programlisting>
-
-        <para>The above code introduces a number of interesting relationships
-        and key objects. First, you will notice that there is an intermediate
-        object between <literal>SecurityContextHolder</literal> and
-        <literal>Authentication</literal>. The
-        <literal>SecurityContextHolder.getContext()</literal> method is
-        actually returning a <literal>SecurityContext</literal>. Acegi
-        Security uses a few different <literal>SecurityContext</literal>
-        implementations, such as if we need to store special information
-        related to a request that is not principal-specific. A good example of
-        this is our JCaptcha integration, which needs to know whether the
-        current request came from a human user or not. Because such a decision
-        has nothing at all to do with the principal the request may or may not
-        be authenticated as, we store it in the
-        <literal>SecurityContext</literal>.</para>
-
-        <para>Another item to note from the above code fragment is that you
-        can obtain a principal from the <literal>Authentication</literal>
-        object. The principal is just an <literal>Object</literal>. Most of
-        the time this can be cast into a <literal>UserDetails</literal>
-        object. <literal>UserDetails</literal> is a central interface in Acegi
-        Security. It represents a principal, but in an extensible and
-        application-specific way. Think of <literal>UserDetails</literal> as
-        the adapter between your own user database and what Acegi Security
-        needs inside the <literal>SecurityContextHolder</literal>. Being a
-        representation of something from your own user database, quite often
-        you will cast the <literal>UserDetails</literal> to the original
-        object that your application provided, so you can call
-        business-specific methods (like <literal>getEmail()</literal>,
-        <literal>getEmployeeNumber()</literal> and so on).</para>
-
-        <para>By now you're probably wondering, so when do I provide a
-        <literal>UserDetails</literal> object? How do I do that? I thought you
-        said this thing was declarative and I didn't need to write any Java
-        code - what gives? The short answer is that there is a special
-        interface called <literal>UserDetailsService</literal>. The only
-        method on this interface accepts a <literal>String</literal>-based
-        username argument and returns a <literal>UserDetails</literal>. Most
-        authentication providers that ship with Acegi Security delegate to a
-        <literal>UserDetailsService</literal> as part of the authentication
-        process. The <literal>UserDetailsService</literal> is used to build
-        the <literal>Authentication</literal> object that is stored in the
-        <literal>SecurityContextHolder</literal>. The good news is that we
-        provide a number of <literal>UserDetailsService</literal>
-        implementations, including one that uses an in-memory map and another
-        that uses JDBC. Most users tends to write their own, though, with such
-        implementations often simply sitting on top of an existing Data Access
-        Object (DAO) that represents their employees, customers, or other
-        users of the enterprise application. Remember the advantage that
-        whatever your UserDetailsService returns can always be obtained from
-        the <literal>SecurityContextHolder</literal>, as per the above code
-        fragment.</para>
-
-        <para>Besides the principal, another important method provided by
-        <literal>Authentication</literal> is
-        <literal>getAuthorities(</literal>). This method provides an array of
-        <literal>GrantedAuthority</literal> objects. A
-        <literal>GrantedAuthority</literal> is, not surprisingly, an authority
-        that is granted to the principal. Such authorities are usually
-        "roles", such as <literal>ROLE_ADMINISTRATOR</literal> or
-        <literal>ROLE_HR_SUPERVISOR</literal>. These roles are later on
-        configured for web authorization, method authorization and domain
-        object authorization. Other parts of Acegi Security are capable of
-        interpreting these authorities, and expect them to be present. You
-        will usually return <literal>GrantedAuthority</literal> objects from
-        the <literal>UserDetailsService</literal>.</para>
-
-        <para>Usually the <literal>GrantedAuthority</literal> objects are
-        application-wide permissions. They are not specific to a given domain
-        object. Thus, you wouldn't likely have a
-        <literal>GrantedAuthority</literal> to represent a permission to
-        <literal>Employee</literal> object number 54, because if there are
-        thousands of such authorities you would quickly run out of memory (or,
-        at the very least, cause the application to take a long time to
-        authenticate a user). Of course, Acegi Security is expressly designed
-        to handle this common requirement, but you'd instead use the project's
-        domain object security capabilities for this purpose.</para>
-
-        <para>Last but not least, sometimes you will need to store the
-        <literal>SecurityContext</literal> between HTTP requests. Other times
-        the principal will re-authenticate on every request, although most of
-        the time it will be stored. The
-        <literal>HttpSessionContextIntegrationFilter</literal> is responsible
-        for storing a <literal>SecurityContext</literal> between HTTP
-        requests. As suggested by the name of the class, the
-        <literal>HttpSession</literal> is used to store this information. You
-        should never interact directly with the <literal>HttpSession</literal>
-        for security purposes. There is simply no justification for doing so -
-        always use the <literal>SecurityContextHolder</literal>
-        instead.</para>
-
-        <para>Just to recap, the major building blocks of Acegi Security
-        are:</para>
-
-        <itemizedlist spacing="compact">
-          <listitem>
-            <para><literal>SecurityContextHolder</literal>, to provide any
-            type access to the <literal>SecurityContext</literal>.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>SecurityContext</literal>, to hold the
-            <literal>Authentication</literal> and possibly request-specific
-            security information.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>HttpSessionContextIntegrationFilter</literal>, to
-            store the <literal>SecurityContext</literal> in the
-            <literal>HttpSession</literal> between web requests.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>Authentication</literal>, to represent the
-            principal in an Acegi Security-specific manner.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>GrantedAuthority</literal>, to reflect the
-            application-wide permissions granted to a principal.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>UserDetails</literal>, to provide the necessary
-            information to build an Authentication object from your
-            application's DAOs.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>UserDetailsService</literal>, to create a
-            <literal>UserDetails</literal> when passed in a
-            <literal>String</literal>-based username (or certificate ID or
-            alike).</para>
-          </listitem>
-        </itemizedlist>
-
-        <para>Now that you've gained an understanding of these repeatedly-used
-        components, let's take a closer look at the process of
-        authentication.</para>
-      </sect1>
-
-      <sect1 id="common-authentication">
-        <title>Authentication</title>
-
-        <para>As mentioned in the beginning of this reference guide, Acegi
-        Security can participate in many different authentication
-        environments. Whilst we recommend people use Acegi Security for
-        authentication and not integrate with existing Container Managed
-        Authentication, it is nevertheless supported - as is integrating with
-        your own proprietary authentication system. Let's first explore
-        authentication from the perspective of Acegi Security managing web
-        security entirely on its own, which is illustrative of the most
-        complex and most common situation.</para>
-
-        <para>Consider a typical web application's authentication
-        process:</para>
-
-        <orderedlist>
-          <listitem>
-            <para>You visit the home page, and click on a link.</para>
-          </listitem>
-
-          <listitem>
-            <para>A request goes to the server, and the server decides that
-            you've asked for a protected resource.</para>
-          </listitem>
-
-          <listitem>
-            <para>As you're not presently authenticated, the server sends back
-            a response indicating that you must authenticate. The response
-            will either be a HTTP response code, or a redirect to a particular
-            web page.</para>
-          </listitem>
-
-          <listitem>
-            <para>Depending on the authentication mechanism, your browser will
-            either redirect to the specific web page so that you can fill out
-            the form, or the browser will somehow retrieve your identity (eg a
-            BASIC authentication dialogue box, a cookie, a X509 certificate
-            etc).</para>
-          </listitem>
-
-          <listitem>
-            <para>The browser will send back a response to the server. This
-            will either be a HTTP POST containing the contents of the form
-            that you filled out, or a HTTP header containing your
-            authentication details.</para>
-          </listitem>
-
-          <listitem>
-            <para>Next the server will decide whether or not the presented
-            credentials are valid. If they're valid, the next step will
-            happen. If they're invalid, usually your browser will be asked to
-            try again (so you return to step two above).</para>
-          </listitem>
-
-          <listitem>
-            <para>The original request that you made to cause the
-            authentication process will be retried. Hopefully you've
-            authenticated with sufficient granted authorities to access the
-            protected resource. If you have sufficient access, the request
-            will be successful. Otherwise, you'll receive back a HTTP error
-            code 403, which means "forbidden".</para>
-          </listitem>
-        </orderedlist>
-
-        <para>Acegi Security has distinct classes responsible for most of the
-        steps described above. The main participants (in the order that they
-        are used) are the <literal>ExceptionTranslationFilter</literal>, an
-        <literal>AuthenticationEntryPoint</literal>, an authentication
-        mechanism, and an <literal>AuthenticationProvider</literal>.</para>
-
-        <para><literal>ExceptionTranslationFilter</literal> is an Acegi
-        Security filter that has responsibility for detecting any Acegi
-        Security exceptions that are thrown. Such exceptions will generally be
-        thrown by an <literal>AbstractSecurityInterceptor</literal>, which is
-        the main provider of authorization services. We will discuss
-        <literal>AbstractSecurityInterceptor</literal> in the next section,
-        but for now we just need to know that it produces Java exceptions and
-        knows nothing about HTTP or how to go about authenticating a
-        principal. Instead the <literal>ExceptionTranslationFilter</literal>
-        offers this service, with specific responsibility for either returning
-        error code 403 (if the principal has been authenticated and therefore
-        simply lacks sufficient access - as per step seven above), or
-        launching an <literal>AuthenticationEntryPoint</literal> (if the
-        principal has not been authenticated and therefore we need to go
-        commence step three).</para>
-
-        <para>The <literal>AuthenticationEntryPoint</literal> is responsible
-        for step three in the above list. As you can imagine, each web
-        application will have a default authentication strategy (well, this
-        can be configured like nearly everything else in Acegi Security, but
-        let's keep it simple for now). Each major authentication system will
-        have its own <literal>AuthenticationEntryPoint</literal>
-        implementation, which takes actions such as described in step
-        three.</para>
-
-        <para>After your browser decides to submit your authentication
-        credentials (either as a HTTP form post or HTTP header) there needs to
-        be something on the server that "collects" these authentication
-        details. By now we're at step six in the above list. In Acegi Security
-        was have a special name for the function of collecting authentication
-        details from a user agent (usually a web browser), and that name is
-        "authentication mechanism". After the authentication details are
-        collected from the user agent, an "<literal>Authentication</literal>
-        request" object is built and then presented to an
-        AuthenticationProvider.</para>
-
-        <para>The last played in the Acegi Security authentication process is
-        an <literal>AuthenticationProvider</literal>. Quite simply, it is
-        responsible for taking an <literal>Authentication</literal> request
-        object and deciding whether or not it is valid. The provider will
-        either throw an exception, or return a fully populated
-        <literal>Authentication</literal> object. Remember our good friends,
-        <literal>UserDetails</literal> and
-        <literal>UserDetailsService</literal>? If not, head back to the
-        previous section and refresh your memory. Most
-        <literal>AuthenticationProvider</literal>s will ask a
-        <literal>UserDetailsService</literal> to provide a
-        <literal>UserDetails</literal> object. As mentioned earlier, most
-        application will provide their own
-        <literal>UserDetailsService</literal>, although some will be able to
-        use the JDBC or in-memory implementation that ships with Acegi
-        Security. The resultant <literal>UserDetails</literal> object - and
-        particularly the <literal>GrantedAuthority[]</literal>s contained
-        within the <literal>UserDetails</literal> object - will be used when
-        building the fully populated <literal>Authentication</literal>
-        object.</para>
-
-        <para>After the authentication mechanism receives back the
-        fully-populated <literal>Authentication</literal> object, it will deem
-        the request valid, put the <literal>Authentication</literal> into the
-        <literal>SecurityContextHolder</literal>, and cause the original
-        request to be retried (step seven above). If, on the other hand, the
-        <literal>AuthenticationProvider</literal> rejected the request, the
-        authentication mechanism will ask the user agent to retry (step two
-        above).</para>
-
-        <para>Whilst this describes the typical authentication workflow, the
-        good news is that Acegi Security doesn't mind how you put an
-        <literal>Authentication</literal> inside the
-        <literal>SecurityContextHolder</literal>. The only critical
-        requirement is that the <literal>SecurityContextHolder</literal>
-        contains an <literal>Authentication</literal> that represents a
-        principal before the <literal>AbstractSecurityInterceptor</literal>
-        needs to authorize a request.</para>
-
-        <para>You can (and many users do) write their own filters or MVC
-        controllers to provide interoperability with authentication systems
-        that are not based on Acegi Security. For example, you might be using
-        Container Managed Authentication which makes the current user
-        available from a ThreadLocal or JNDI location. Or you might work for a
-        company that has a legacy proprietary authentication system, which is
-        a corporate "standard" over which you have little control. In such
-        situations it's quite easy to get Acegi Security to work, and still
-        provide authorization capabilities. All you need to do is write a
-        filter (or equivalent) that reads the third-party user information
-        from a location, build an Acegi Security-specific Authentication
-        object, and put it onto the SecurityContextHolder. It's quite easy to
-        do this, and a fully-supported integration approach.</para>
-      </sect1>
-
-      <sect1 id="secure-objects">
-        <title>Secure Objects</title>
-
-        <para>If you're familiar with AOP, you'd be aware there are different
-        types of advice available: before, after, throws and around. An around
-        advice is very useful, because an advisor can elect whether or not to
-        proceed with a method invocation, whether or not to modify the
-        response, and whether or not to throw an exception. Acegi Security
-        provides an around advice for method invocations as well as web
-        requests. We achieve an around advice for method invocations using AOP
-        Alliance, and we achieve an around advice for web requests using a
-        standard Filter.</para>
-
-        <para>For those not familiar with AOP, the key point to understand is
-        that Acegi Security can help you protect method invocations as well as
-        web requests. Most people are interested in securing method
-        invocations on their services layer. This is because the services
-        layer is where most business logic resides in current-generation J2EE
-        applications (for clarification, the author disapproves of this design
-        and instead advocates properly encapsulated domain objects together
-        with the DTO, assembly, facade and transparent persistence patterns,
-        but as anemic domain objects is the present mainstream approach, we'll
-        talk about it here). If you just need to secure method invocations to
-        the services layer, using the Spring's standard AOP platform
-        (otherwise known as AOP Alliance) will be adequate. If you need to
-        secure domain objects directly, you will likely find that AspectJ is
-        worth considering.</para>
-
-        <para>You can elect to perform method authorization using AspectJ or
-        AOP Alliance, or you can elect to perform web request authorization
-        using filters. You can use zero, one, two or three of these approaches
-        together. The mainstream usage is to perform some web request
-        authorization, coupled with some AOP Alliance method invocation
-        authorization on the services layer.</para>
-
-        <para>Acegi Security uses the term "secure object" to refer to any
-        object that can have security applies to it. Each secure object
-        supported by Acegi Security has its own class, which is a subclass of
-        <literal>AbstractSecurityInterceptor</literal>. Importantly, by the
-        time the <literal>AbstractSecurityInterceptor</literal> is run, the
-        <literal>SecurityContextHolder</literal> will contain a valid
-        <literal>Authentication</literal> if the principal has been
-        authenticated.</para>
-
-        <para>The <literal>AbstractSecurityInterceptor</literal> provides a
-        consistent workflow for handling secure object requests. This workflow
-        includes looking up the "configuration attributes" associated with the
-        present request. A "configuration attribute" can be thought of as a
-        String that has special meaning to the classes used by
-        <literal>AbstractSecurityInterceptor</literal>. They're normally
-        configured against your AbstractSecurityInterceptor using XML. Anyway,
-        the <literal>AbstractSecurityInterceptor</literal> will ask an
-        <literal>AccessDecisionManager</literal> "here's the configuration
-        attributes, here's the current <literal>Authentication</literal>
-        object, and here's details of the current request - is this particular
-        principal allowed to perform this particular operation?".</para>
-
-        <para>Assuming <literal>AccessDecisionManager</literal> decides to
-        allow the request, the <literal>AbstractSecurityInterceptor</literal>
-        will normally just proceed with the request. Having said that, on rare
-        occasions users may want to replace the
-        <literal>Authentication</literal> inside the
-        <literal>SecurityContext</literal> with a different
-        <literal>Authentication</literal>, which is handled by the
-        <literal>AccessDecisionManager</literal> calling a
-        <literal>RunAsManager</literal>. This might be useful in reasonably
-        unusual situations, such as if a services layer method needs to call a
-        remote system and present a different identity. Because Acegi Security
-        automatically propagates security identity from one server to another
-        (assuming you're using a properly-configured RMI or HttpInvoker
-        remoting protocol client), this may be useful.</para>
-
-        <para>Following the secure object proceeding and then returning -
-        which may mean a method invocation completing or a filter chain
-        proceeding - the <literal>AbstractSecurityInterceptor</literal> gets
-        one final chance to handle the invocation. At this stage the
-        <literal>AbstractSecurityInterceptor</literal> is interested in
-        possibly modifying the return object. We might want this to happen
-        because an authorization decision couldn't be made "on the way in" to
-        a secure object invocation. Being highly pluggable,
-        <literal>AbstractSecurityInterceptor</literal> will pass control to an
-        <literal>AfterInvocationManager</literal> to actually modify the
-        object if needed. This class even can entirely replace the object, or
-        throw an exception, or not change it in any way.</para>
-
-        <para>Because <literal>AbstractSecurityInterceptor</literal> is the
-        central template class, it seems fitting that the first figure should
-        be devoted to it.</para>
-
-        <para><mediaobject>
-            <imageobject role="html">
-              <imagedata align="center"
-                         fileref="images/SecurityInterception.gif"
-                         format="GIF" />
-            </imageobject>
-
-            <caption>
-              <para>Figure 1: The key "secure object" model</para>
-            </caption>
-          </mediaobject></para>
-
-        <para>Only developers contemplating an entirely new way of
-        intercepting and authorizing requests would need to use secure objects
-        directly. For example, it would be possible to build a new secure
-        object to secure calls to a messaging system. Anything that requires
-        security and also provides a way of intercepting a call (like the AOP
-        around advice semantics) is capable of being made into a secure
-        object. Having said that, most Spring applications will simply use the
-        three currently supported secure object types (AOP Alliance
-        <literal>MethodInvocation</literal>, AspectJ
-        <literal>JoinPoint</literal> and web request
-        <literal>FilterInterceptor</literal>) with complete
-        transparency.</para>
-      </sect1>
-
-      <sect1 id="common-conclusion">
-        <title>Conclusion</title>
-
-        <para>Congratulations! You have enough of a high-level picture of
-        Acegi Security to embark on your project. We've explored the shared
-        components, how authentication works, and reviewed the common
-        authorization concept of a "secure object". Everything that follows in
-        this reference guide may or may not apply to your particular needs,
-        and can be read in any order.</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="supporting-infrastructure">
-      <title>Supporting Infrastructure</title>
-
-      <para>This chapter introduces some of the supplementary and supporting
-      infrastructure used by Acegi Security. If a capability is not directly
-      related to security, yet included in the Acegi Security project, we will
-      discuss it in this chapter.</para>
-
-      <sect1 id="localization">
-        <title>Localization</title>
-
-        <para>Acegi Security supports localization of exception messages that
-        end users are likely to see. If your application is designed for
-        English users, you don't need to do anything as by default all Acegi
-        Security messages are in English. If you need to support other
-        locales, everything you need to know is contained in this
-        section.</para>
-
-        <para>All exception messages can be localized, including messages
-        related to authentication failures and access being denied
-        (authorization failures). Exceptions and logging that is focused on
-        developers or system deployers (including incorrect attributes,
-        interface contract violations, using incorrect constructors, startup
-        time validation, debug-level logging) etc are not localized and
-        instead are hard-coded in English within Acegi Security's code.</para>
-
-        <para>Shipping in the <literal>acegi-security-xx.jar</literal> you
-        will find an <literal>org.acegisecurity</literal> package that in turn
-        contains a <literal>messages.properties</literal> file. This should be
-        referred to by your <literal>ApplicationContext</literal>, as Acegi
-        Security classes implement Spring's
-        <literal>MessageSourceAware</literal> interface and expect the message
-        resolver to be dependency injected at application context startup
-        time. Usually all you need to do is register a bean inside your
-        application context to refer to the messages. An example is shown
-        below:</para>
-
-        <para><programlisting>&lt;bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"&gt;
-  &lt;property name="basename"&gt;&lt;value&gt;org/acegisecurity/messages&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;        </programlisting></para>
-
-        <para>The <literal>messages.properties</literal> is named in
-        accordance with standard resource bundles and represents the default
-        language supported by Acegi Securtiy messages. This default file is in
-        English. If you do not register a message source, Acegi Security will
-        still work correctly and fallback to hard-coded English versions of
-        the messages.</para>
-
-        <para>If you wish to customize the
-        <literal>messages.properties</literal> file, or support other
-        languages, you should copy the file, rename it accordingly, and
-        register it inside the above bean definition. There are not a large
-        number of message keys inside this file, so localization should not be
-        considered a major initiative. If you do perform localization of this
-        file, please consider sharing your work with the community by logging
-        a JIRA task and attaching your appropriately-named localized version
-        of <literal>messages.properties</literal>.</para>
-
-        <para>Rounding out the discussion on localization is the Spring
-        <literal>ThreadLocal</literal> known as
-        <literal>org.springframework.context.i18n.LocaleContextHolder</literal>.
-        You should set the <literal>LocaleContextHolder</literal> to represent
-        the preferred <literal>Locale</literal> of each user. Acegi Security
-        will attempt to locate a message from the message source using the
-        <literal>Locale</literal> obtained from this
-        <literal>ThreadLocal</literal>. Please refer to Spring documentation
-        for further details on using <literal>LocaleContextHolder</literal>
-        and the helper classes that can automatically set it for you (eg
-        <literal>AcceptHeaderLocaleResolver</literal>,
-        <literal>CookieLocaleResolver</literal>,
-        <literal>FixedLocaleResolver</literal>,
-        <literal>SessionLocaleResolver</literal> etc)</para>
-      </sect1>
-
-      <sect1 id="filters">
-        <title>Filters</title>
-
-        <para>Acegi Security uses many filters, as referred to throughout the
-        remainder of this reference guide. You have a choice in how these
-        filters are added to your web application, in that you can use either
-        <literal>FilterToBeanProxy</literal> or
-        <literal>FilterChainProxy</literal>. We'll look at both below.</para>
-
-        <para>Most filters are configured using the
-        <literal>FilterToBeanProxy</literal>. An example configuration from
-        <literal>web.xml</literal> follows:</para>
-
-        <para><programlisting>&lt;filter&gt;
-  &lt;filter-name&gt;Acegi HTTP Request Security Filter&lt;/filter-name&gt;
-  &lt;filter-class&gt;org.acegisecurity.util.FilterToBeanProxy&lt;/filter-class&gt;
-  &lt;init-param&gt;
-    &lt;param-name&gt;targetClass&lt;/param-name&gt;
-    &lt;param-value&gt;org.acegisecurity.ClassThatImplementsFilter&lt;/param-value&gt;
-  &lt;/init-param&gt;
-&lt;/filter&gt;</programlisting></para>
-
-        <para>Notice that the filter in <literal>web.xml</literal> is actually
-        a <literal>FilterToBeanProxy</literal>, and not the filter that will
-        actually implement the logic of the filter. What
-        <literal>FilterToBeanProxy</literal> does is delegate the
-        <literal>Filter</literal>'s methods through to a bean which is
-        obtained from the Spring application context. This enables the bean to
-        benefit from the Spring application context lifecycle support and
-        configuration flexibility. The bean must implement
-        <literal>javax.servlet.Filter</literal>.</para>
-
-        <para>The <literal>FilterToBeanProxy</literal> only requires a single
-        initialization parameter, <literal>targetClass</literal> or
-        <literal>targetBean</literal>. The <literal>targetClass</literal>
-        parameter locates the first object in the application context of the
-        specified class, whilst <literal>targetBean</literal> locates the
-        object by bean name. Like standard Spring web applications, the
-        <literal>FilterToBeanProxy</literal> accesses the application context
-        via<literal>
-        WebApplicationContextUtils.getWebApplicationContext(ServletContext)</literal>,
-        so you should configure a <literal>ContextLoaderListener</literal> in
-        <literal>web.xml</literal>.</para>
-
-        <para>There is a lifecycle issue to consider when hosting
-        <literal>Filter</literal>s in an IoC container instead of a servlet
-        container. Specifically, which container should be responsible for
-        calling the <literal>Filter</literal>'s "startup" and "shutdown"
-        methods? It is noted that the order of initialization and destruction
-        of a <literal>Filter</literal> can vary by servlet container, and this
-        can cause problems if one <literal>Filter</literal> depends on
-        configuration settings established by an earlier initialized
-        <literal>Filter</literal>. The Spring IoC container on the other hand
-        has more comprehensive lifecycle/IoC interfaces (such as
-        <literal>InitializingBean</literal>,
-        <literal>DisposableBean</literal>, <literal>BeanNameAware</literal>,
-        <literal>ApplicationContextAware</literal> and many others) as well as
-        a well-understood interface contract, predictable method invocation
-        ordering, autowiring support, and even options to avoid implementing
-        Spring interfaces (eg the <literal>destroy-method</literal> attribute
-        in Spring XML). For this reason we recommend the use of Spring
-        lifecycle services instead of servlet container lifecycle services
-        wherever possible. By default <literal>FilterToBeanProxy</literal>
-        will not delegate <literal>init(FilterConfig)</literal> and
-        <literal>destroy()</literal> methods through to the proxied bean. If
-        you do require such invocations to be delegated, set the
-        <literal>lifecycle</literal> initialization parameter to
-        <literal>servlet-container-managed</literal>.</para>
-
-        <para>Rather than using <literal>FilterToBeanProxy</literal>, we
-        strongly recommend to use <literal>FilterChainProxy</literal> instead.
-        Whilst <literal>FilterToBeanProxy</literal> is a very useful class,
-        the problem is that the lines of code required for
-        <literal>&lt;filter&gt;</literal> and
-        <literal>&lt;filter-mapping&gt;</literal> entries in
-        <literal>web.xml</literal> explodes when using more than a few
-        filters. To overcome this issue, Acegi Security provides a
-        <literal>FilterChainProxy</literal> class. It is wired using a
-        <literal>FilterToBeanProxy</literal> (just like in the example above),
-        but the target class is
-        <literal>org.acegisecurity.util.FilterChainProxy</literal>. The filter
-        chain is then declared in the application context, using code such as
-        this:</para>
-
-        <para><programlisting>&lt;bean id="filterChainProxy" class="org.acegisecurity.util.FilterChainProxy"&gt;
-  &lt;property name="filterInvocationDefinitionSource"&gt;
-    &lt;value&gt;
-      CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
-      PATTERN_TYPE_APACHE_ANT
-      /webServices/**=httpSessionContextIntegrationFilterWithASCFalse,basicProcessingFilter,exceptionTranslationFilter,filterSecurityInterceptor
-      /**=httpSessionContextIntegrationFilterWithASCTrue,authenticationProcessingFilter,exceptionTranslationFilter,filterSecurityInterceptor
-    &lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;        </programlisting></para>
-
-        <para>You may notice similarities with the way
-        <literal>FilterSecurityInterceptor</literal> is declared. Both regular
-        expressions and Ant Paths are supported, and the most specific URIs
-        appear first. At runtime the <literal>FilterChainProxy</literal> will
-        locate the first URI pattern that matches the current web request.
-        Each of the corresponding configuration attributes represent the name
-        of a bean defined in the application context. The filters will then be
-        invoked in the order they are specified, with standard
-        <literal>FilterChain</literal> behaviour being respected (a
-        <literal>Filter</literal> can elect not to proceed with the chain if
-        it wishes to end processing).</para>
-
-        <para>As you can see, <literal>FilterChainProxy</literal> requires the
-        duplication of filter names for different request patterns (in the
-        above example, <literal>exceptionTranslationFilter</literal> and
-        <literal>filterSecurityInterceptor</literal> are duplicated). This
-        design decision was made to enable <literal>FilterChainProxy</literal>
-        to specify different <literal>Filter</literal> invocation orders for
-        different URI patterns, and also to improve both the expressiveness
-        (in terms of regular expressions, Ant Paths, and any custom
-        <literal>FilterInvocationDefinitionSource</literal> implementations)
-        and clarity of which <literal>Filter</literal>s should be
-        invoked.</para>
-
-        <para>You may have noticed we have declared two
-        <literal>HttpSessionContextIntegrationFilter</literal>s in the filter
-        chain (<literal>ASC</literal> is short for
-        <literal>allowSessionCreation</literal>, a property of
-        <literal>HttpSessionContextIntegrationFilter</literal>). As web
-        services will never present a <literal>jsessionid</literal> on future
-        requests, creating <literal>HttpSession</literal>s for such user
-        agents would be wasteful. If you had a high-volume application which
-        required maximum scalability, we recommend you use the approach shown
-        above. For smaller applications, using a single
-        <literal>HttpSessionContextIntegrationFilter</literal> (with its
-        default <literal>allowSessionCreation</literal> as
-        <literal>true</literal>) would likely be sufficient.</para>
-
-        <para>In relation to lifecycle issues, the
-        <literal>FilterChainProxy</literal> will always delegate
-        <literal>init(FilterConfig)</literal> and <literal>destroy()</literal>
-        methods through to the underlaying <literal>Filter</literal>s if such
-        methods are called against <literal>FilterChainProxy</literal> itself.
-        In this case, <literal>FilterChainProxy</literal> guarantees to only
-        initialize and destroy each <literal>Filter</literal> once,
-        irrespective of how many times it is declared by the
-        <literal>FilterInvocationDefinitionSource</literal>. You control the
-        overall choice as to whether these methods are called or not via the
-        <literal>lifecycle</literal> initialization parameter of the
-        <literal>FilterToBeanProxy</literal> that proxies
-        <literal>FilterChainProxy</literal>. As discussed above, by default
-        any servlet container lifecycle invocations are not delegated through
-        to <literal>FilterChainProxy</literal>.</para>
-
-        <para>The order that filters are defined in <literal>web.xml</literal>
-        is very important. Irrespective of which filters you are actually
-        using, the order of the <literal>&lt;filter-mapping&gt;</literal>s
-        should be as follows:</para>
-
-        <orderedlist>
-          <listitem>
-            <para><literal>ChannelProcessingFilter</literal>, because it might
-            need to redirect to a different protocol</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>ConcurrentSessionFilter</literal>, because it
-            doesn't use any <literal>SecurityContextHolder</literal>
-            functionality but needs to update the
-            <literal>SessionRegistry</literal> to reflect ongoing requests
-            from the principal</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>HttpSessionContextIntegrationFilter</literal>, so a
-            <literal>SecurityContext</literal> can be setup in the
-            <literal>SecurityContextHolder</literal> at the beginning of a web
-            request, and any changes to the <literal>SecurityContext</literal>
-            can be copied to the <literal>HttpSession</literal> when the web
-            request ends (ready for use with the next web request)</para>
-          </listitem>
-
-          <listitem>
-            <para>Authentication processing mechanisms -
-            <literal>AuthenticationProcessingFilter</literal>,
-            <literal>CasProcessingFilter</literal>,
-            <literal>BasicProcessingFilter, HttpRequestIntegrationFilter,
-            JbossIntegrationFilter</literal> etc - so that the
-            <literal>SecurityContextHolder</literal> can be modified to
-            contain a valid <literal>Authentication</literal> request
-            token</para>
-          </listitem>
-
-          <listitem>
-            <para>The
-            <literal>SecurityContextHolderAwareRequestFilter</literal>, if you
-            are using it to install an Acegi Security aware
-            <literal>HttpServletRequestWrapper</literal> into your servlet
-            container</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>RememberMeProcessingFilter</literal>, so that if no
-            earlier authentication processing mechanism updated the
-            <literal>SecurityContextHolder</literal>, and the request presents
-            a cookie that enables remember-me services to take place, a
-            suitable remembered
-            <literal><literal>Authentication</literal></literal> object will
-            be put there</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>AnonymousProcessingFilter</literal>, so that if no
-            earlier authentication processing mechanism updated the
-            <literal>SecurityContextHolder</literal>, an anonymous
-            <literal>Authentication</literal> object will be put there</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>ExceptionTranslationFilter</literal>, to catch any
-            Acegi Security exceptions so that either a HTTP error response can
-            be returned or an appropriate
-            <literal>AuthenticationEntryPoint</literal> can be launched</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>FilterSecurityInterceptor</literal>, to protect web
-            URIs</para>
-          </listitem>
-        </orderedlist>
-
-        <para>All of the above filters use
-        <literal>FilterToBeanProxy</literal> or
-        <literal>FilterChainProxy</literal>. It is recommended that a single
-        <literal>FilterToBeanProxy</literal> proxy through to a single
-        <literal>FilterChainProxy</literal> for each application, with that
-        <literal>FilterChainProxy</literal> defining all of Acegi Security
-        <literal>Filter</literal>s.</para>
-
-        <para>If you're using SiteMesh, ensure Acegi Security filters execute
-        before the SiteMesh filters are called. This enables the
-        <literal>SecurityContextHolder</literal> to be populated in time for
-        use by SiteMesh decorators</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="channel-security">
-      <title>Channel Security</title>
-
-      <sect1 id="channel-security-overview">
-        <title>Overview</title>
-
-        <para>In addition to coordinating the authentication and authorization
-        requirements of your application, Acegi Security is also able to
-        ensure unauthenticated web requests have certain properties. These
-        properties may include being of a particular transport type, having a
-        particular <literal>HttpSession</literal> attribute set and so on. The
-        most common requirement is for your web requests to be received using
-        a particular transport protocol, such as HTTPS.</para>
-
-        <para>An important issue in considering transport security is that of
-        session hijacking. Your web container manages a
-        <literal>HttpSession</literal> by reference to a
-        <literal>jsessionid</literal> that is sent to user agents either via a
-        cookie or URL rewriting. If the <literal>jsessionid</literal> is ever
-        sent over HTTP, there is a possibility that session identifier can be
-        intercepted and used to impersonate the user after they complete the
-        authentication process. This is because most web containers maintain
-        the same session identifier for a given user, even after they switch
-        from HTTP to HTTPS pages.</para>
-
-        <para>If session hijacking is considered too significant a risk for
-        your particular application, the only option is to use HTTPS for every
-        request. This means the <literal>jsessionid</literal> is never sent
-        across an insecure channel. You will need to ensure your
-        <literal>web.xml</literal>-defined
-        <literal>&lt;welcome-file&gt;</literal> points to a HTTPS location,
-        and the application never directs the user to a HTTP location. Acegi
-        Security provides a solution to assist with the latter.</para>
-      </sect1>
-
-      <sect1 id="channel-security-config">
-        <title>Configuration</title>
-
-        <para>To utilise Acegi Security's channel security services, add the
-        following lines to <literal>web.xml</literal>:</para>
-
-        <para><programlisting>
-&lt;filter&gt;
-  &lt;filter-name&gt;Acegi Channel Processing Filter&lt;/filter-name&gt;
-  &lt;filter-class&gt;org.acegisecurity.util.FilterToBeanProxy&lt;/filter-class&gt;
-  &lt;init-param&gt;
-    &lt;param-name&gt;targetClass&lt;/param-name&gt;
-    &lt;param-value&gt;org.acegisecurity.securechannel.ChannelProcessingFilter&lt;/param-value&gt;
-  &lt;/init-param&gt;
-&lt;/filter&gt;
-
-&lt;filter-mapping&gt;
-  &lt;filter-name&gt;Acegi Channel Processing Filter&lt;/filter-name&gt;
-  &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
-&lt;/filter-mapping&gt;
-
-        </programlisting></para>
-
-        <para>As usual when running <literal>FilterToBeanProxy</literal>, you
-        will also need to configure the filter in your application
-        context:</para>
-
-        <para><programlisting>
-&lt;bean id="channelProcessingFilter" class="org.acegisecurity.securechannel.ChannelProcessingFilter"&gt;
-  &lt;property name="channelDecisionManager"&gt;&lt;ref bean="channelDecisionManager"/&gt;&lt;/property&gt;
-  &lt;property name="filterInvocationDefinitionSource"&gt;
-    &lt;value&gt;
-      CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
-      \A/secure/.*\Z=REQUIRES_SECURE_CHANNEL
-      \A/acegilogin.jsp.*\Z=REQUIRES_SECURE_CHANNEL
-      \A/j_acegi_security_check.*\Z=REQUIRES_SECURE_CHANNEL	
-      \A.*\Z=REQUIRES_INSECURE_CHANNEL
-    &lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="channelDecisionManager" class="org.acegisecurity.securechannel.ChannelDecisionManagerImpl"&gt;
-  &lt;property name="channelProcessors"&gt;
-    &lt;list&gt;
-      &lt;ref bean="secureChannelProcessor"/&gt;
-      &lt;ref bean="insecureChannelProcessor"/&gt;
-    &lt;/list&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="secureChannelProcessor" class="org.acegisecurity.securechannel.SecureChannelProcessor"/&gt;
-&lt;bean id="insecureChannelProcessor" class="org.acegisecurity.securechannel.InsecureChannelProcessor"/&gt;
-
-        </programlisting></para>
-
-        <para>Like <literal>FilterSecurityInterceptor</literal>, Apache Ant
-        style paths are also supported by the
-        <literal>ChannelProcessingFilter</literal>.</para>
-
-        <para>The <literal>ChannelProcessingFilter</literal> operates by
-        filtering all web requests and determining the configuration
-        attributes that apply. It then delegates to the
-        <literal>ChannelDecisionManager</literal>. The default implementation,
-        <literal>ChannelDecisionManagerImpl</literal>, should suffice in most
-        cases. It simply delegates through the list of configured
-        <literal>ChannelProcessor</literal> instances. A
-        <literal>ChannelProcessor</literal> will review the request, and if it
-        is unhappy with the request (eg it was received across the incorrect
-        transport protocol), it will perform a redirect, throw an exception or
-        take whatever other action is appropriate.</para>
-
-        <para>Included with Acegi Security are two concrete
-        <literal>ChannelProcessor</literal> implementations:
-        <literal>SecureChannelProcessor</literal> ensures requests with a
-        configuration attribute of <literal>REQUIRES_SECURE_CHANNEL</literal>
-        are received over HTTPS, whilst
-        <literal>InsecureChannelProcessor</literal> ensures requests with a
-        configuration attribute of
-        <literal>REQUIRES_INSECURE_CHANNEL</literal> are received over HTTP.
-        Both implementations delegate to a
-        <literal>ChannelEntryPoint</literal> if the required transport
-        protocol is not used. The two <literal>ChannelEntryPoint</literal>
-        implementations included with Acegi Security simply redirect the
-        request to HTTP and HTTPS as appropriate. Appropriate defaults are
-        assigned to the <literal>ChannelProcessor</literal> implementations
-        for the configuration attribute keywords they respond to and the
-        <literal>ChannelEntryPoint</literal> they delegate to, although you
-        have the ability to override these using the application
-        context.</para>
-
-        <para>Note that the redirections are absolute (eg
-        <literal>http://www.company.com:8080/app/page</literal>), not relative
-        (eg <literal>/app/page</literal>). During testing it was discovered
-        that Internet Explorer 6 Service Pack 1 has a bug whereby it does not
-        respond correctly to a redirection instruction which also changes the
-        port to use. Accordingly, absolute URLs are used in conjunction with
-        bug detection logic in the <literal>PortResolverImpl</literal> that is
-        wired up by default to many Acegi Security beans. Please refer to the
-        JavaDocs for <literal>PortResolverImpl</literal> for further
-        details.</para>
-
-        <para>You should note that using a secure channel is recommended if
-        usernames and passwords are to be kept secure during the login
-        process. If you do decide to use
-        <literal>ChannelProcessingFilter</literal> with form-based login,
-        please ensure that your login page is set to
-        <literal>REQUIRES_SECURE_CHANNEL</literal>, and that the
-        <literal>AuthenticationProcessingFilterEntryPoint.forceHttps</literal>
-        property is <literal>true</literal>.</para>
-      </sect1>
-
-      <sect1 id="channel-security-conclusion">
-        <title>Conclusion</title>
-
-        <para>Once configured, using the channel security filter is very easy.
-        Simply request pages without regard to the protocol (ie HTTP or HTTPS)
-        or port (eg 80, 8080, 443, 8443 etc). Obviously you'll still need a
-        way of making the initial request (probably via the
-        <literal>web.xml</literal> <literal>&lt;welcome-file&gt;</literal> or
-        a well-known home page URL), but once this is done the filter will
-        perform redirects as defined by your application context.</para>
-
-        <para>You can also add your own <literal>ChannelProcessor</literal>
-        implementations to the <literal>ChannelDecisionManagerImpl</literal>.
-        For example, you might set a <literal>HttpSession</literal> attribute
-        when a human user is detected via a "enter the contents of this
-        graphic" procedure. Your <literal>ChannelProcessor</literal> would
-        respond to say <literal>REQUIRES_HUMAN_USER</literal> configuration
-        attributes and redirect to an appropriate entry point to start the
-        human user validation process if the <literal>HttpSession</literal>
-        attribute is not currently set.</para>
-
-        <para>To decide whether a security check belongs in a
-        <literal>ChannelProcessor</literal> or an
-        <literal>AccessDecisionVoter</literal>, remember that the former is
-        designed to handle unauthenticated requests, whilst the latter is
-        designed to handle authenticated requests. The latter therefore has
-        access to the granted authorities of the authenticated principal. In
-        addition, problems detected by a <literal>ChannelProcessor</literal>
-        will generally cause a HTTP/HTTPS redirection so its requirements can
-        be met, whilst problems detected by an
-        <literal>AccessDecisionVoter</literal> will ultimately result in an
-        <literal>AccessDeniedException</literal> (depending on the governing
-        <literal>AccessDecisionManager</literal>).</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="taglib">
-      <title>Tag Libraries</title>
-
-      <sect1 id="taglib-overview">
-        <title>Overview</title>
-
-        <para>Acegi Security comes bundled with several JSP tag libraries that
-        eases JSP writing. The tag libraries are known as
-        <literal>authz</literal> and provide a range of different
-        services.</para>
-      </sect1>
-
-      <sect1 id="taglib-config">
-        <title>Configuration</title>
-
-        <para>All taglib classes are included in the core
-        <literal>acegi-security-xx.jar</literal> file, with the
-        <literal>authz.tld</literal> located in the JAR's
-        <literal>META-INF</literal> directory. This means for JSP 1.2+ web
-        containers you can simply include the JAR in the WAR's
-        <literal>WEB-INF/lib</literal> directory and it will be available. If
-        you're using a JSP 1.1 container, you'll need to declare the JSP
-        taglib in your <literal>web.xml file</literal>, and include
-        <literal>authz.tld</literal> in the <literal>WEB-INF/lib</literal>
-        directory. The following fragment is added to
-        <literal>web.xml</literal>:</para>
-
-        <para><programlisting>&lt;taglib&gt;
-  &lt;taglib-uri&gt;http://acegisecurity.org/authz&lt;/taglib-uri&gt;
-  &lt;taglib-location&gt;/WEB-INF/authz.tld&lt;/taglib-location&gt;
-&lt;/taglib&gt;       </programlisting></para>
-      </sect1>
-
-      <sect1 id="taglib-usage">
-        <title>Usage</title>
-
-        <para>Now that you've configured the tag libraries, refer to the
-        individual reference guide sections for details on how to use
-        them.</para>
-      </sect1>
-    </chapter>
-  </part>
-
-  <part id="authentication">
-    <title>Authentication</title>
-
-    <partintro>
-      <para>In this part of the reference guide we will examine individual
-      authentication mechanisms and their corresponding
-      <literal>AuthenticationProvider</literal>s. We'll also look at how to
-      configure authentication more generally, including if you have several
-      authentication approaches that need to be chained together.</para>
-    </partintro>
-
-    <chapter id="authentication-common-auth-services">
-      <title>Common Authentication Services</title>
-
-      <sect1 id="mechanisms-providers-entry-points">
-        <title>Mechanisms, Providers and Entry Points</title>
-
-        <para>If you're using Acegi Security-provided authentication
-        approaches, you'll usually need to configure a web filter, together
-        with an <literal>AuthenticationProvider</literal> and
-        <literal>AuthenticationEntryPoint</literal>. In this section we are
-        going to explore an example application that needs to support both
-        form-based authentication (ie so a nice HTML page is presented to a
-        user for them to login) plus BASIC authentication (ie so a web service
-        or similar can access protected resources).</para>
-
-        <para>In the web.xml, this application will need a single Acegi
-        Security filter in order to use the FilterChainProxy. Nearly every
-        Acegi Security application will have such an entry, and it looks like
-        this:</para>
-
-        <para><programlisting>&lt;filter&gt;
-  &lt;filter-name&gt;Acegi Filter Chain Proxy&lt;/filter-name&gt;
-  &lt;filter-class&gt;org.acegisecurity.util.FilterToBeanProxy&lt;/filter-class&gt;
-  &lt;init-param&gt;
-    &lt;param-name&gt;targetClass&lt;/param-name&gt;
-    &lt;param-value&gt;org.acegisecurity.util.FilterChainProxy&lt;/param-value&gt;
-  &lt;/init-param&gt;
-&lt;/filter&gt;
-
-&lt;filter-mapping&gt;
-  &lt;filter-name&gt;Acegi Filter Chain Proxy&lt;/filter-name&gt;
-  &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
-&lt;/filter-mapping&gt;</programlisting></para>
-
-        <para>The above declarations will cause every web request to be passed
-        through to Acegi Security's FilterChainProxy. As explained in the
-        filters section of this reference guide, the FilterChainProxy is a
-        generally-useful class that enables web requests to be passed to
-        different filters based on the URL patterns. Those delegated filters
-        are managed inside the application context, so they can benefit from
-        dependency injection. Let's have a look at what the FilterChainProxy
-        bean definition would look like inside your application
-        context:</para>
-
-        <para><programlisting>&lt;bean id="filterChainProxy" class="org.acegisecurity.util.FilterChainProxy"&gt;
-  &lt;property name="filterInvocationDefinitionSource"&gt;
-    &lt;value&gt;
-      CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
-      PATTERN_TYPE_APACHE_ANT
-      /**=httpSessionContextIntegrationFilter,logoutFilter,authenticationProcessingFilter,basicProcessingFilter,securityContextHolderAwareRequestFilter,rememberMeProcessingFilter,anonymousProcessingFilter,switchUserProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor
-    &lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;</programlisting></para>
-
-        <para>Internally Acegi Security will use a
-        <literal>PropertyEditor</literal> to convert the string presented in
-        the above XML fragment into a
-        <literal>FilterInvocationDefinitionSource</literal> object. What's
-        important to note at this stage is that a series of filters will be
-        run - in the order specified by the declaration - and each of those
-        filters are actually the <literal>&lt;bean id&gt;</literal> of another
-        bean inside the application context. So, in our case some extra beans
-        will also appear in the application context, and they'll be named
-        <literal>httpSessionContextIntegrationFilter</literal>,
-        <literal>logoutFilter</literal> and so on. The order that the filters
-        should appear is discussed in the filters section of the reference
-        guide - although they are correct in the above example.</para>
-
-        <para>In our example we have the
-        <literal>AuthenticationProcessingFilter</literal> and
-        <literal>BasicProcessingFilter</literal> being used. These are the
-        "authentication mechanisms" that respond to form-based authentication
-        and BASIC HTTP header-based authentication respectively (we discussed
-        the role of authentication mechanisms earlier in this reference
-        guide). If you weren't using form or BASIC authentication, neither of
-        these beans would be defined. You'd instead define filters applicable
-        to your desired authentication environment, such as
-        <literal>DigestProcessingFilter</literal> or
-        <literal>CasProcessingFilter</literal>. Refer to the individual
-        chapters of this part of the reference guide to learn how to configure
-        each of these authentication mechanisms.</para>
-
-        <para>Recall that
-        <literal>HttpSessionContextIntegrationFilter</literal> keeps the
-        contents of the <literal>SecurityContext</literal> between invocations
-        inside a HTTP session. This means the authentication mechanisms are
-        only used once, being when the principal initially tries to
-        authenticate. The rest of the time the authentication mechanisms sit
-        there and silently pass the request through to the next filter in the
-        chain. That is a practical requirement due to the fact that few
-        authentication approaches present credentials on each and every call
-        (BASIC authentication being a notable exception), but what happens if
-        a principal's account gets cancelled or disabled or otherwise changed
-        (eg an increase or decrease in <literal>GrantedAuthority[]</literal>s)
-        after the initial authentication step? Let's look at how that is
-        handled now.</para>
-
-        <para>The major authorization provider for secure objects has
-        previously been introduced as
-        <literal>AbstractSecurityInterceptor</literal>. This class needs to
-        have access to an <literal>AuthenticationManager</literal>. It also
-        has configurable settings to indicate whether an
-        <literal>Authentication</literal> object should be re-authenticated on
-        each secure object invocation. By default it just accepts any
-        <literal>Authentication</literal> inside the
-        <literal>SecurityContextHolder</literal> is authenticated if
-        <literal>Authentication.isAuthenticated()</literal> returns true. This
-        is great for performance, but not ideal if you want to ensure
-        up-to-the-moment authentication validity. For such cases you'll
-        probably want to set the
-        <literal>AbstractSecurityInterceptor.alwaysReauthenticate</literal>
-        property to true.</para>
-
-        <para>You might be asking yourself, "what's this
-        <literal>AuthenticationManager</literal>?". We haven't explored it
-        before, but we have discussed the concept of an
-        <literal>AuthenticationProvider</literal>. Quite simply, an
-        AuthenticationManager is responsible for passing requests through a
-        chain of AuthenticationProviders. It's a little like the filter chain
-        we discussed earlier, although there are some differences. There is
-        only one AuthenticationManager implementation shipped with Acegi
-        Security, so let's look at how it's configured for the example we're
-        using in this chapter:</para>
-
-        <para><programlisting>&lt;bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager"&gt;
-  &lt;property name="providers"&gt;
-    &lt;list&gt;
-      &lt;ref local="daoAuthenticationProvider"/&gt;
-      &lt;ref local="anonymousAuthenticationProvider"/&gt;
-      &lt;ref local="rememberMeAuthenticationProvider"/&gt;
-    &lt;/list&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;</programlisting></para>
-
-        <para>It's probably worth mentioning at this point that your
-        authentication mechanisms (which are usually filters) are also
-        injected with a reference to the
-        <literal>AuthenticationManager</literal>. So both
-        <literal>AbstractSecurityInterceptor</literal> as well as the
-        authentication mechanisms will use the above
-        <literal>ProviderManager</literal> to poll a list of
-        <literal>AuthenticationProvider</literal>s.</para>
-
-        <para>In our example we have three providers. They are tried in the
-        order shown (which is implied by the use of a <literal>List</literal>
-        instead of a <literal>Set</literal>), with each provider able to
-        attempt authentication, or skip authentication by simply returning
-        <literal>null</literal>. If all implementations return null, the
-        <literal>ProviderManager</literal> will throw a suitable exception. If
-        you're interested in learning more about chaining providers, please
-        refer to the <literal>ProviderManager</literal> JavaDocs.</para>
-
-        <para>The providers to use will sometimes be interchangeable with the
-        authentication mechanisms, whilst at other times they will depend on a
-        specific authentication mechanism. For example, the
-        <literal>DaoAuthenticationProvider</literal> just needs a string-based
-        username and password. Various authentication mechanisms result in the
-        collection of a string-based username and password, including (but not
-        limited to) BASIC and form authentication. Equally, some
-        authentication mechanisms create an authentication request object
-        which can only be interpreted by a single type of
-        <literal>AuthenticationProvider</literal>. An example of this
-        one-to-one mapping would be JA-SIG CAS, which uses the notion of a
-        service ticket which can therefore only be authenticated by
-        <literal>CasAuthenticationProvider</literal>. A further example of a
-        one-to-one mapping would be the LDAP authentication mechanism, which
-        can only be processed an the
-        <literal>LdapAuthenticationProvider</literal>. The specifics of such
-        relationships are detailed in the JavaDocs for each class, plus the
-        authentication approach-specific chapters of this reference guide. You
-        need not be terribly concerned about this implementation detail,
-        because if you forget to register a suitable provider, you'll simply
-        receive a <literal>ProviderNotFoundException</literal> when an attempt
-        to authenticate is made.</para>
-
-        <para>After configuring the correct authentication mechanisms in the
-        <literal>FilterChainProxy</literal>, and ensuring that a corresponding
-        <literal>AuthenticationProvider</literal> is registered in the
-        <literal>ProviderManager</literal>, your last step is to configure an
-        <literal>AuthenticationEntryPoint</literal>. Recall that earlier we
-        discussed the role of <literal>ExceptionTranslationFilter</literal>,
-        which is used when HTTP-based requests should receive back a HTTP
-        header or HTTP redirect in order to start authentication. Continuing
-        on with our earlier example:</para>
-
-        <para><programlisting>&lt;bean id="exceptionTranslationFilter" class="org.acegisecurity.ui.ExceptionTranslationFilter"&gt;
-  &lt;property name="authenticationEntryPoint"&gt;&lt;ref local="authenticationProcessingFilterEntryPoint"/&gt;&lt;/property&gt;
-  &lt;property name="accessDeniedHandler"&gt;
-    &lt;bean class="org.acegisecurity.ui.AccessDeniedHandlerImpl"&gt;
-      &lt;property name="errorPage" value="/accessDenied.jsp"/&gt;
-    &lt;/bean&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="authenticationProcessingFilterEntryPoint" class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint"&gt;
-  &lt;property name="loginFormUrl"&gt;&lt;value&gt;/acegilogin.jsp&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="forceHttps"&gt;&lt;value&gt;false&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;</programlisting></para>
-
-        <para>Notice that the <literal>ExceptionTranslationFilter</literal>
-        requires two collaborators. The first,
-        <literal>AccessDeniedHandlerImpl</literal>, uses a
-        <literal>RequestDispatcher</literal> forward to display the specified
-        access denied error page. We use a forward so that the
-        <literal>SecurityContextHolder</literal> still contains details of the
-        principal, which may be useful for display to the user (in old
-        releases of Acegi Security we relied upon the servlet container to
-        handle a 403 error message, which lacked this useful contextual
-        information). <literal>AccessDeniedHandlerImpl</literal> will also set
-        the HTTP header to 403, which is the official error code to indicate
-        access denied. In the case of the
-        <literal>AuthentionEntryPoint</literal>, here we're setting what
-        action we would like taken when an unauthenticated principal attempts
-        to perform a protected operation. Because in our example we're going
-        to be using form-based authentication, we specify
-        <literal>AuthenticationProcessinFilterEntryPoint</literal> and the URL
-        of the login page. Your application will usually only have one entry
-        point, and most authentication approaches define their own specific
-        <literal>AuthenticationEntryPoint</literal>. Details of which entry
-        point to use for each authentication approach is discussed in the
-        authentication approach-specific chapters of this reference
-        guide.</para>
-      </sect1>
-
-      <sect1 id="userdetails-and-associated-types">
-        <title>UserDetails and Associated Types</title>
-
-        <para>As mentioned in the first part of the reference guide, most
-        authentication providers take advantage of the
-        <literal>UserDetails</literal> and
-        <literal>UserDetailsService</literal> interfaces. The contract for
-        this latter interface consists of a single method:</para>
-
-        <para><programlisting>public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException;</programlisting></para>
-
-        <para>The returned <literal>UserDetails</literal> is an interface that
-        provides getters that guarantee non-null provision of basic
-        authentication information such as the username, password, granted
-        authorities and whether the user is enabled or disabled. Most
-        authentication providers will use a
-        <literal>UserDetailsService</literal>, even if the username and
-        password are not actually used as part of the authentication decision.
-        Generally such provider will be using the returned
-        <literal>UserDetails</literal> object just for its
-        <literal>GrantedAuthority[]</literal> information, because some other
-        system (like LDAP or X509 or CAS etc) has undertaken the
-        responsibility of actually validating the credentials.</para>
-
-        <para>A single concrete implementation of
-        <literal>UserDetails</literal> is provided with Acegi Security, being
-        the <literal>User</literal> class. Acegi Security users will need to
-        decide when writing their <literal>UserDetailsService</literal> what
-        concrete <literal>UserDetails</literal> class to return. In most cases
-        <literal>User</literal> will be used directly or subclassed, although
-        special circumstances (such as object relational mappers) may require
-        users to write their own <literal>UserDetails</literal> implementation
-        from scratch. This is not such an unusual situation, and users should
-        not hesitate to simply return their normal domain object that
-        represents a user of the system. This is especially common given that
-        <literal>UserDetails</literal> is often used to store additional
-        principal-related properties (such as their telephone number and email
-        address), so that they can be easily used by web views.</para>
-
-        <para>Given <literal>UserDetailsService</literal> is so simple to
-        implement, it should be easy for users to retrieve authentication
-        information using a persistence strategy of their choice. Having said
-        that, Acegi Security does include a couple of useful base
-        implementations, which we'll look at below.</para>
-
-        <sect2 id="in-memory-service">
-          <title>In-Memory Authentication</title>
-
-          <para>Whilst it is easy to use create a custom
-          <literal>UserDetailsService</literal> implementation that extracts
-          information from a persistence engine of choice, many applications
-          do not require such complexity. This is particularly true if you're
-          undertaking a rapid prototype or just starting integrating Acegi
-          Security, when you don't really want to spend time configuring
-          databases or writing <literal>UserDetailsService</literal>
-          implementations. For this sort of situation, a simple option is to
-          configure the <literal>InMemoryDaoImpl</literal>
-          implementation:</para>
-
-          <para><programlisting>&lt;bean id="inMemoryDaoImpl" class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl"&gt;
-  &lt;property name="userMap"&gt;
-    &lt;value&gt;
-      marissa=koala,ROLE_TELLER,ROLE_SUPERVISOR
-      dianne=emu,ROLE_TELLER
-      scott=wombat,ROLE_TELLER
-      peter=opal,disabled,ROLE_TELLER
-    &lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;        </programlisting></para>
-
-          <para>In the above example, the <literal>userMap</literal> property
-          contains each of the usernames, passwords, a list of granted
-          authorities and an optional enabled/disabled keyword. Commas are
-          used to delimit each token. The username must appear to the left of
-          the equals sign, and the password must be the first token to the
-          right of the equals sign. The <literal>enabled</literal> and
-          <literal>disabled</literal> keywords (case insensitive) may appear
-          in the second or any subsequent token. Any remaining tokens are
-          treated as granted authorities, which are created as
-          <literal>GrantedAuthorityImpl</literal> objects (this is just for
-          your reference - most application don't need custom
-          <literal>GrantedAuthority</literal> implementations, so using the
-          default implementation in this manner is just fine). Note that if a
-          user has no password and/or no granted authorities, the user will
-          not be created in the in-memory authentication repository.</para>
-
-          <para><literal>InMemoryDaoImpl</literal> also offers a
-          <literal>setUserProperties(Properties)</literal> method, which
-          allows you to externalise the
-          <literal>java.util.Properties</literal> in another Spring configured
-          bean or an external properties file. You might like to use Spring's
-          <literal>PropertiesFactoryBean</literal>, which is useful for
-          loading such external properties files. This setter might prove
-          useful for simple applications that have a larger number of users,
-          or deployment-time configuration changes, but do not wish to use a
-          full database for handling authentication details.</para>
-        </sect2>
-
-        <sect2 id="jdbc-service">
-          <title>JDBC Authentication</title>
-
-          <para>Acegi Security also includes a
-          <literal>UserDetailsService</literal> that can obtain authentication
-          information from a JDBC data source. Internally Spring JDBC is used,
-          so it avoids the complexity of a fully-featured object relational
-          mapper (ORM) just to store user details. If your application does
-          use an ORM tool, you might prefer to write a custom
-          <literal>UserDetailsService</literal> to reuse the mapping files
-          you've probably already created. Returning to
-          <literal>JdbcDaoImpl</literal>, an example configuration is shown
-          below:</para>
-
-          <para><programlisting>&lt;bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
-  &lt;property name="driverClassName"&gt;&lt;value&gt;org.hsqldb.jdbcDriver&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="url"&gt;&lt;value&gt;jdbc:hsqldb:hsql://localhost:9001&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="username"&gt;&lt;value&gt;sa&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="password"&gt;&lt;value&gt;&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="jdbcDaoImpl" class="org.acegisecurity.userdetails.jdbc.JdbcDaoImpl"&gt;
-  &lt;property name="dataSource"&gt;&lt;ref bean="dataSource"/&gt;&lt;/property&gt;
-&lt;/bean&gt;        </programlisting></para>
-
-          <para>You can use different relational database management systems
-          by modifying the <literal>DriverManagerDataSource</literal> shown
-          above. You can also use a global data source obtained from JNDI, as
-          per normal Spring options. Irrespective of the database used and how
-          a <literal>DataSource</literal> is obtained, a standard schema must
-          be used as indicated in <literal>dbinit.txt</literal>. You can
-          download this file from the Acegi Security web site.</para>
-
-          <para>If you default schema is unsuitable for your needs,
-          <literal>JdbcDaoImpl</literal> provides two properties that allow
-          customisation of the SQL statements. You may also subclass the
-          <literal>JdbcDaoImpl</literal> if further customisation is
-          necessary. Please refer to the JavaDocs for details, although please
-          note that the class is not intended for complex custom subclasses.
-          If you have complex needs (such as a special schema or would like a
-          certain <literal>UserDetails</literal> implementation returned),
-          you'd be better off writing your own
-          <literal>UserDetailsService</literal>. The base implementation
-          provided with Acegi Security is intended for typical situations, and
-          does not offer infinite configuration flexibility.</para>
-        </sect2>
-      </sect1>
-
-      <sect1 id="concurrent-sessions">
-        <title>Concurrent Session Handling</title>
-
-        <para>Acegi Security is able to prevent a principal from concurrently
-        authenticating to the same application more than a specified number of
-        times. Many ISVs take advantage of this to enforce licensing, whilst
-        network administrators like this feature because it helps prevent
-        people from sharing login names. You can, for example, stop user
-        "Batman" from logging onto the web application from two different
-        sessions.</para>
-
-        <para>To use concurrent session support, you'll need to add the
-        following to <literal>web.xml</literal>:</para>
-
-        <para><programlisting>&lt;listener&gt;
-  &lt;listener-class&gt;org.acegisecurity.ui.session.HttpSessionEventPublisher&lt;/listener-class&gt;
-&lt;/listener&gt;        </programlisting></para>
-
-        <para>In addition, you will need to add the
-        <literal>org.acegisecurity.concurrent.ConcurrentSessionFilter</literal>
-        to your <literal>FilterChainProxy</literal>. The
-        ConcurrentSessionFilter requires two properties,
-        <literal>sessionRegistry</literal>, which generally points to an
-        instance of <literal>SessionRegistryImpl</literal>, and
-        <literal>expiredUrl</literal>, which points to the page to display
-        when a session has expired.</para>
-
-        <para>The <literal>web.xml</literal>
-        <literal>HttpSessionEventPublisher</literal> causes an
-        <literal>ApplicationEvent</literal> to be published to the Spring
-        <literal>ApplicationContext</literal> every time a
-        <literal>HttpSession</literal> commences or terminates. This is
-        critical, as it allows the <literal>SessionRegistryImpl</literal> to
-        be notified when a session ends.</para>
-
-        <para>You will also need to wire up the
-        <literal>ConcurrentSessionControllerImpl</literal> and refer to it
-        from your <literal>ProviderManager</literal> bean:</para>
-
-        <para><programlisting>&lt;bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager"&gt;
-  &lt;property name="providers"&gt;
-    &lt;!-- your providers go here --&gt;
-  &lt;/property&gt;
-  &lt;property name="sessionController"&gt;&lt;ref bean="concurrentSessionController"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="concurrentSessionController" class="org.acegisecurity.concurrent.ConcurrentSessionControllerImpl"&gt;
-  &lt;property name="maximumSessions"&gt;&lt;value&gt;1&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="sessionRegistry"&gt;&lt;ref local="sessionRegistry"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="sessionRegistry" class="org.acegisecurity.concurrent.SessionRegistryImpl"/&gt;</programlisting></para>
-      </sect1>
-
-      <sect1 id="authentication-taglibs">
-        <title>Authentication Tag Libraries</title>
-
-        <para><literal>AuthenticationTag</literal> is used to simply output a
-        property of the current principal's
-        <literal>Authentication.getPrincipal()</literal> object to the web
-        page.</para>
-
-        <para>The following JSP fragment illustrates how to use the
-        <literal>AuthenticationTag</literal>:</para>
-
-        <para><programlisting>&lt;authz:authentication operation="username"/&gt;</programlisting></para>
-
-        <para>This tag would cause the principal's name to be output. Here we
-        are assuming the <literal>Authentication.getPrincipal()</literal> is a
-        <literal>UserDetails</literal> object, which is generally the case
-        when using the typical
-        <literal>DaoAuthenticationProvider</literal>.</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="dao-provider">
-      <title>DAO Authentication Provider</title>
-
-      <sect1 id="dao-provider-overview">
-        <title>Overview</title>
-
-        <para>Acegi Security includes a production-quality
-        <literal>AuthenticationProvider</literal> implementation called
-        <literal>DaoAuthenticationProvider</literal>. This authentication
-        provider is compatible with all of the authentication mechanisms that
-        generate a <literal>UsernamePasswordAuthenticationToken</literal>, and
-        is probably the most commonly used provider in the framework. Like
-        most of the other authentication providers, the
-        DaoAuthenticationProvider leverages a UserDetailsService in order to
-        lookup the username, password and GrantedAuthority[]s. Unlike most of
-        the other authentication providers that leverage UserDetailsService,
-        this authentication provider actually requires the password to be
-        presented, and the provider will actually evaluate the validity or
-        otherwise of the password presented in an authentication request
-        object.</para>
-      </sect1>
-
-      <sect1 id="dao-provider-config">
-        <title>Configuration</title>
-
-        <para>Aside from adding DaoAuthenticationProvider to your
-        ProviderManager list (as discussed at the start of this part of the
-        reference guide), and ensuring a suitable authentication mechanism is
-        configured to present a UsernamePasswordAuthenticationToken, the
-        configuration of the provider itself is rather simple:</para>
-
-        <para><programlisting>&lt;bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider"&gt;
-  &lt;property name="userDetailsService"&gt;&lt;ref bean="inMemoryDaoImpl"/&gt;&lt;/property&gt;
-  &lt;property name="saltSource"&gt;&lt;ref bean="saltSource"/&gt;&lt;/property&gt;
-  &lt;property name="passwordEncoder"&gt;&lt;ref bean="passwordEncoder"/&gt;&lt;/property&gt;
-&lt;/bean&gt;        </programlisting></para>
-
-        <para>The <literal>PasswordEncoder</literal> and
-        <literal>SaltSource</literal> are optional. A
-        <literal>PasswordEncoder</literal> provides encoding and decoding of
-        passwords presented in the <literal>UserDetails</literal> object that
-        is returned from the configured <literal>UserDetailsService</literal>.
-        A <literal>SaltSource</literal> enables the passwords to be populated
-        with a "salt", which enhances the security of the passwords in the
-        authentication repository. <literal>PasswordEncoder</literal>
-        implementations are provided with Acegi Security covering MD5, SHA and
-        cleartext encodings. Two <literal>SaltSource</literal> implementations
-        are also provided: <literal>SystemWideSaltSource</literal> which
-        encodes all passwords with the same salt, and
-        <literal>ReflectionSaltSource</literal>, which inspects a given
-        property of the returned <literal>UserDetails</literal> object to
-        obtain the salt. Please refer to the JavaDocs for further details on
-        these optional features.</para>
-
-        <para>In addition to the properties above, the
-        <literal>DaoAuthenticationProvider</literal> supports optional caching
-        of <literal>UserDetails</literal> objects. The
-        <literal>UserCache</literal> interface enables the
-        <literal>DaoAuthenticationProvider</literal> to place a
-        <literal>UserDetails</literal> object into the cache, and retrieve it
-        from the cache upon subsequent authentication attempts for the same
-        username. By default the <literal>DaoAuthenticationProvider</literal>
-        uses the <literal>NullUserCache</literal>, which performs no caching.
-        A usable caching implementation is also provided,
-        <literal>EhCacheBasedUserCache</literal>, which is configured as
-        follows:</para>
-
-        <para><programlisting>&lt;bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider"&gt;
-  &lt;property name="userDetailsService"&gt;&lt;ref bean="userDetailsService"/&gt;&lt;/property&gt;
-  &lt;property name="userCache"&gt;&lt;ref bean="userCache"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"&gt;
-  &lt;property name="configLocation"&gt;
-    &lt;value&gt;classpath:/ehcache-failsafe.xml&lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-    
-&lt;bean id="userCacheBackend" class="org.springframework.cache.ehcache.EhCacheFactoryBean"&gt;
-  &lt;property name="cacheManager"&gt;
-    &lt;ref local="cacheManager"/&gt;
-  &lt;/property&gt;
-  &lt;property name="cacheName"&gt;
-    &lt;value&gt;userCache&lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-   
-&lt;bean id="userCache" class="org.acegisecurity.providers.dao.cache.EhCacheBasedUserCache"&gt;
-  &lt;property name="cache"&gt;&lt;ref local="userCacheBackend"/&gt;&lt;/property&gt;
-&lt;/bean&gt;        </programlisting></para>
-
-        <para>All Acegi Security EH-CACHE implementations (including
-        <literal>EhCacheBasedUserCache</literal>) require an EH-CACHE
-        <literal>Cache</literal> object. The <literal>Cache</literal> object
-        can be obtained from wherever you like, although we recommend you use
-        Spring's factory classes as shown in the above configuration. If using
-        Spring's factory classes, please refer to the Spring documentation for
-        further details on how to optimise the cache storage location, memory
-        usage, eviction policies, timeouts etc.</para>
-
-        <para>A design decision was made not to support account locking in the
-        <literal>DaoAuthenticationProvider</literal>, as doing so would have
-        increased the complexity of the <literal>UserDetailsService</literal>
-        interface. For instance, a method would be required to increase the
-        count of unsuccessful authentication attempts. Such functionality
-        could be easily provided by leveraging the application event
-        publishing features discussed below.</para>
-
-        <para><literal>DaoAuthenticationProvider</literal> returns an
-        <literal>Authentication</literal> object which in turn has its
-        <literal>principal</literal> property set. The principal will be
-        either a <literal>String</literal> (which is essentially the username)
-        or a <literal>UserDetails</literal> object (which was looked up from
-        the <literal>UserDetailsService</literal>). By default the
-        <literal>UserDetails</literal> is returned, as this enables
-        applications to add extra properties potentially of use in
-        applications, such as the user's full name, email address etc. If
-        using container adapters, or if your applications were written to
-        operate with <literal>String</literal>s (as was the case for releases
-        prior to Acegi Security 0.6), you should set the
-        <literal>DaoAuthenticationProvider.forcePrincipalAsString</literal>
-        property to <literal>true</literal> in your application context</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="jaas">
-      <title>Java Authentication and Authorization Service (JAAS)
-      Provider</title>
-
-      <sect1 id="jaas-overview">
-        <title>Overview</title>
-
-        <para>Acegi Security provides a package able to delegate
-        authentication requests to the Java Authentication and Authorization
-        Service (JAAS). This package is discussed in detail below.</para>
-
-        <para>Central to JAAS operation are login configuration files. To
-        learn more about JAAS login configuration files, consult the JAAS
-        reference documentation available from Sun Microsystems. We expect you
-        to have a basic understanding of JAAS and its login configuration file
-        syntax in order to understand this section.</para>
-      </sect1>
-
-      <sect1 id="jaas-config">
-        <title>Configuration</title>
-
-        <para>The <literal>JaasAuthenticationProvider</literal> attempts to
-        authenticate a user’s principal and credentials through JAAS.</para>
-
-        <para>Let’s assume we have a JAAS login configuration file,
-        <literal>/WEB-INF/login.conf</literal>, with the following
-        contents:</para>
-
-        <para><programlisting>JAASTest {
-  sample.SampleLoginModule required;
-};</programlisting></para>
-
-        <para>Like all Acegi Security beans, the
-        <literal>JaasAuthenticationProvider</literal> is configured via the
-        application context. The following definitions would correspond to the
-        above JAAS login configuration file:</para>
-
-        <para><programlisting>
-&lt;bean id="jaasAuthenticationProvider" class="org.acegisecurity.providers.jaas.JaasAuthenticationProvider"&gt;
-  &lt;property name="loginConfig"&gt;
-    &lt;value&gt;/WEB-INF/login.conf&lt;/value&gt;
-  &lt;/property&gt;
-  &lt;property name="loginContextName"&gt;
-    &lt;value&gt;JAASTest&lt;/value&gt;
-  &lt;/property&gt;
-  &lt;property name="callbackHandlers"&gt;
-    &lt;list&gt;
-      &lt;bean class="org.acegisecurity.providers.jaas.JaasNameCallbackHandler"/&gt;
-      &lt;bean class="org.acegisecurity.providers.jaas.JaasPasswordCallbackHandler"/&gt;
-    &lt;/list&gt;
-  &lt;/property&gt;
-  &lt;property name="authorityGranters"&gt;
-    &lt;list&gt;
-      &lt;bean class="org.acegisecurity.providers.jaas.TestAuthorityGranter"/&gt;
-    &lt;/list&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-
-          </programlisting></para>
-
-        <para>The <literal>CallbackHandler</literal>s and
-        <literal>AuthorityGranter</literal>s are discussed below.</para>
-
-        <sect2 id="jaas-callbackhandler">
-          <title id="jaas-callback-handler">JAAS CallbackHandler</title>
-
-          <para>Most JAAS <literal>LoginModule</literal>s require a callback
-          of some sort. These callbacks are usually used to obtain the
-          username and password from the user.</para>
-
-          <para>In an Acegi Security deployment, Acegi Security is responsible
-          for this user interaction (via the authentication mechanism). Thus,
-          by the time the authentication request is delegated through to JAAS,
-          Acegi Security's authentication mechanism will already have
-          fully-populated an <literal>Authentication</literal> object
-          containing all the information required by the JAAS
-          <literal>LoginModule</literal>.</para>
-
-          <para>Therefore, the JAAS package for Acegi Security provides two
-          default callback handlers,
-          <literal>JaasNameCallbackHandler</literal> and
-          <literal>JaasPasswordCallbackHandler</literal>. Each of these
-          callback handlers implement
-          <literal>JaasAuthenticationCallbackHandler</literal>. In most cases
-          these callback handlers can simply be used without understanding the
-          internal mechanics.</para>
-
-          <para>For those needing full control over the callback behavior,
-          internally <literal>JaasAutheticationProvider</literal> wraps these
-          <literal>JaasAuthenticationCallbackHandler</literal>s with an
-          <literal>InternalCallbackHandler</literal>. The
-          <literal>InternalCallbackHandler</literal> is the class that
-          actually implements JAAS’ normal <literal>CallbackHandler</literal>
-          interface. Any time that the JAAS <literal>LoginModule</literal> is
-          used, it is passed a list of application context configured
-          <literal>InternalCallbackHandler</literal>s. If the
-          <literal>LoginModule</literal> requests a callback against the
-          <literal>InternalCallbackHandler</literal>s, the callback is in-turn
-          passed to the <literal>JaasAuthenticationCallbackHandler</literal>s
-          being wrapped.</para>
-        </sect2>
-
-        <sect2 id="jaas-authoritygranter">
-          <title id="jaas-authority-granter">JAAS AuthorityGranter</title>
-
-          <para>JAAS works with principals. Even "roles" are represented as
-          principals in JAAS. Acegi Security, on the other hand, works with
-          <literal>Authentication</literal> objects. Each
-          <literal>Authentication</literal> object contains a single
-          principal, and multiple <literal>GrantedAuthority</literal>[]s. To
-          facilitate mapping between these different concepts, Acegi
-          Security's JAAS package includes an
-          <literal>AuthorityGranter</literal> interface.</para>
-
-          <para>An <literal>AuthorityGranter</literal> is responsible for
-          inspecting a JAAS principal and returning a
-          <literal>String</literal>. The
-          <literal>JaasAuthenticationProvider</literal> then creates a
-          <literal>JaasGrantedAuthority</literal> (which implements Acegi
-          Security’s <literal>GrantedAuthority</literal> interface) containing
-          both the <literal>AuthorityGranter</literal>-returned
-          <literal>String</literal> and the JAAS principal that the
-          <literal>AuthorityGranter</literal> was passed. The
-          <literal>JaasAuthenticationProvider</literal> obtains the JAAS
-          principals by firstly successfully authenticating the user’s
-          credentials using the JAAS <literal>LoginModule</literal>, and then
-          accessing the <literal>LoginContext</literal> it returns. A call to
-          <literal>LoginContext.getSubject().getPrincipals()</literal> is
-          made, with each resulting principal passed to each
-          <literal>AuthorityGranter</literal> defined against the
-          <literal>JaasAuthenticationProvider.setAuthorityGranters(List)</literal>
-          property.</para>
-
-          <para>Acegi Security does not include any production
-          <literal>AuthorityGranter</literal>s given that every JAAS principal
-          has an implementation-specific meaning. However, there is a
-          <literal>TestAuthorityGranter</literal> in the unit tests that
-          demonstrates a simple <literal>AuthorityGranter</literal>
-          implementation.</para>
-        </sect2>
-      </sect1>
-    </chapter>
-
-    <chapter id="siteminder">
-      <title>Siteminder Authentication Mechanism</title>
-
-      <sect1 id="siteminder-overview">
-        <title>Overview</title>
-
-        <para>Siteminder is a commercial single sign on solution by Computer
-        Associates.</para>
-
-        <para>Acegi Security provides a filter,
-        <literal>SiteminderAuthenticationProcessingFilter</literal> and
-        provider, <literal>SiteminderAuthenticationProvider</literal> that can
-        be used to process requests that have been pre-authenticated by
-        Siteminder. This filter assumes that you're using Siteminder for
-        <emphasis>authentication</emphasis>, and that you're using Acegi
-        Security for <emphasis>authorization</emphasis>. The use of Siteminder
-        for <emphasis>authorization</emphasis> is not yet directly supported
-        by Acegi Security.</para>
-
-        <para>When using Siteminder, an agent is setup on your web server to
-        intercept a principal's first call to your application. The agent
-        redirects the web request to a single sign-on login page, and once
-        authenticated, your application receives the request. Inside the HTTP
-        request is a header - such as <literal>SM_USER</literal> - which
-        identifies the authenticated principal (please refer to your
-        organization's "single sign-on" group for header details in your
-        particular configuration).</para>
-      </sect1>
-
-      <sect1 id="siteminder-config">
-        <title>Configuration</title>
-
-        <para>The first step in setting up Acegi Security's Siteminder support
-        is to define the authentication mechanism that will inspect the HTTP
-        header discussed earlier. It will be responsible for generating a
-        <literal>UsernamePasswordAuthenticationToken</literal> that is later
-        sent to the <literal>SiteminderAuthenticationProvider</literal>. Let's
-        look at an example:</para>
-
-        <para><programlisting>&lt;bean id="authenticationProcessingFilter" class="org.acegisecurity.ui.webapp.SiteminderAuthenticationProcessingFilter"&gt;
-  &lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt;
-  &lt;property name="authenticationFailureUrl"&gt;&lt;value&gt;/login.jsp?login_error=1&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="defaultTargetUrl"&gt;&lt;value&gt;/security.do?method=getMainMenu&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="filterProcessesUrl"&gt;&lt;value&gt;/j_acegi_security_check&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="siteminderUsernameHeaderKey"&gt;&lt;value&gt;SM_USER&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="formUsernameParameterKey"&gt;&lt;value&gt;j_username&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;</programlisting></para>
-
-        <para>In our example above, the bean is being provided an
-        <literal>AuthenticationManager</literal>, as is normally needed by
-        authentication mechanisms. Several URLs are also specified, with the
-        values being self-explanatory. It's important to also specify the HTTP
-        header that Acegi Security should inspect. If you additionally want to
-        support form-based authentication (i.e. in your development
-        environment where Siteminder is not installed), specify the form's
-        username parameter as well - just don't do this in production!</para>
-
-        <para>Note that you'll need a
-        <literal><literal>SiteminderAuthenticationProvider</literal></literal>
-        configured against your <literal>ProviderManager</literal> in order to
-        use the Siteminder authentication mechanism. Normally an
-        <literal>AuthenticationProvider</literal> expects the password
-        property to match what it retrieves from the
-        <literal>UserDetailsSource</literal>, but in this case, authentication
-        has already been handled by Siteminder, so password property is not
-        even relevant. This may sound like a security weakness, but remember
-        that users have to authenticate with Siteminder before your
-        application ever receives the requests, so the purpose of your custom
-        <literal>UserDetailsService</literal> should simply be to build the
-        complete <literal>Authentication</literal> object (ie with suitable
-        <literal>GrantedAuthority[]</literal>s).</para>
-
-        <para>Advanced tip and word to the wise: If you additionally want to
-        support form-based authentication in your development environment
-        (where Siteminder is typically not installed), specify the form's
-        username parameter as well. Just don't do this in production!</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="runas">
-      <title>Run-As Authentication Replacement</title>
-
-      <sect1 id="runas-overview">
-        <title>Overview</title>
-
-        <para>The <literal>AbstractSecurityInterceptor</literal> is able to
-        temporarily replace the <literal>Authentication</literal> object in
-        the <literal>SecurityContext</literal> and
-        <literal>SecurityContextHolder</literal> during the secure object
-        callback phase. This only occurs if the original
-        <literal>Authentication</literal> object was successfully processed by
-        the <literal>AuthenticationManager</literal> and
-        <literal>AccessDecisionManager</literal>. The
-        <literal>RunAsManager</literal> will indicate the replacement
-        <literal>Authentication</literal> object, if any, that should be used
-        during the <literal>SecurityInterceptorCallback</literal>.</para>
-
-        <para>By temporarily replacing the <literal>Authentication</literal>
-        object during the secure object callback phase, the secured invocation
-        will be able to call other objects which require different
-        authentication and authorization credentials. It will also be able to
-        perform any internal security checks for specific
-        <literal>GrantedAuthority</literal> objects. Because Acegi Security
-        provides a number of helper classes that automatically configure
-        remoting protocols based on the contents of the
-        <literal>SecurityContextHolder</literal>, these run-as replacements
-        are particularly useful when calling remote web services</para>
-      </sect1>
-
-      <sect1 id="runas-config">
-        <title>Configuration</title>
-
-        <para>A <literal>RunAsManager</literal> interface is provided by Acegi
-        Security:</para>
-
-        <para><programlisting>public Authentication buildRunAs(Authentication authentication, Object object, ConfigAttributeDefinition config);
-public boolean supports(ConfigAttribute attribute);
-public boolean supports(Class clazz);</programlisting></para>
-
-        <para>The first method returns the <literal>Authentication</literal>
-        object that should replace the existing
-        <literal>Authentication</literal> object for the duration of the
-        method invocation. If the method returns <literal>null</literal>, it
-        indicates no replacement should be made. The second method is used by
-        the <literal>AbstractSecurityInterceptor</literal> as part of its
-        startup validation of configuration attributes. The
-        <literal>supports(Class)</literal> method is called by a security
-        interceptor implementation to ensure the configured
-        <literal>RunAsManager</literal> supports the type of secure object
-        that the security interceptor will present.</para>
-
-        <para>One concrete implementation of a <literal>RunAsManager</literal>
-        is provided with Acegi Security. The
-        <literal>RunAsManagerImpl</literal> class returns a replacement
-        <literal>RunAsUserToken</literal> if any
-        <literal>ConfigAttribute</literal> starts with
-        <literal>RUN_AS_</literal>. If any such
-        <literal>ConfigAttribute</literal> is found, the replacement
-        <literal>RunAsUserToken</literal> will contain the same principal,
-        credentials and granted authorities as the original
-        <literal>Authentication</literal> object, along with a new
-        <literal>GrantedAuthorityImpl</literal> for each
-        <literal>RUN_AS_</literal> <literal>ConfigAttribute</literal>. Each
-        new <literal>GrantedAuthorityImpl</literal> will be prefixed with
-        <literal>ROLE_</literal>, followed by the <literal>RUN_AS</literal>
-        <literal>ConfigAttribute</literal>. For example, a
-        <literal>RUN_AS_SERVER</literal> will result in the replacement
-        <literal>RunAsUserToken</literal> containing a
-        <literal>ROLE_RUN_AS_SERVER</literal> granted authority.</para>
-
-        <para>The replacement <literal>RunAsUserToken</literal> is just like
-        any other <literal>Authentication</literal> object. It needs to be
-        authenticated by the <literal>AuthenticationManager</literal>,
-        probably via delegation to a suitable
-        <literal>AuthenticationProvider</literal>. The
-        <literal>RunAsImplAuthenticationProvider</literal> performs such
-        authentication. It simply accepts as valid any
-        <literal>RunAsUserToken</literal> presented.</para>
-
-        <para>To ensure malicious code does not create a
-        <literal>RunAsUserToken</literal> and present it for guaranteed
-        acceptance by the <literal>RunAsImplAuthenticationProvider</literal>,
-        the hash of a key is stored in all generated tokens. The
-        <literal>RunAsManagerImpl</literal> and
-        <literal>RunAsImplAuthenticationProvider</literal> is created in the
-        bean context with the same key:</para>
-
-        <para><programlisting>
-&lt;bean id="runAsManager" class="org.acegisecurity.runas.RunAsManagerImpl"&gt;
-  &lt;property name="key"&gt;&lt;value&gt;my_run_as_password&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="runAsAuthenticationProvider" class="org.acegisecurity.runas.RunAsImplAuthenticationProvider"&gt;
-  &lt;property name="key"&gt;&lt;value&gt;my_run_as_password&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-        </programlisting></para>
-
-        <para>By using the same key, each <literal>RunAsUserToken</literal>
-        can be validated it was created by an approved
-        <literal>RunAsManagerImpl</literal>. The
-        <literal>RunAsUserToken</literal> is immutable after creation for
-        security reasons</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="form">
-      <title>Form Authentication Mechanism</title>
-
-      <sect1 id="form-overview">
-        <title>Overview</title>
-
-        <para>HTTP Form Authentication involves using the
-        <literal>AuthenticationProcessingFilter</literal> to process a login
-        form. This is the most common way that application authenticate end
-        users. Form-based authentication is entirely compatible with the DAO
-        and JAAS authentication providers.</para>
-      </sect1>
-
-      <sect1 id="form-config">
-        <title>Configuration</title>
-
-        <para>The login form simply contains <literal>j_username</literal> and
-        <literal>j_password</literal> input fields, and posts to a URL that is
-        monitored by the filter (by default
-        <literal>j_acegi_security_check</literal>). The filter is defined in
-        <literal>web.xml</literal> behind a
-        <literal>FilterToBeanProxy</literal> as follows:</para>
-
-        <para><programlisting>&lt;filter&gt;
-  &lt;filter-name&gt;Acegi Authentication Processing Filter&lt;/filter-name&gt;
-  &lt;filter-class&gt;org.acegisecurity.util.FilterToBeanProxy&lt;/filter-class&gt;
-  &lt;init-param&gt;
-    &lt;param-name&gt;targetClass&lt;/param-name&gt;
-    &lt;param-value&gt;org.acegisecurity.ui.webapp.AuthenticationProcessingFilter&lt;/param-value&gt;
-  &lt;/init-param&gt;
-&lt;/filter&gt;
-
-&lt;filter-mapping&gt;
-  &lt;filter-name&gt;Acegi Authentication Processing Filter&lt;/filter-name&gt;
-  &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
-&lt;/filter-mapping&gt;</programlisting></para>
-
-        <para>For a discussion of <literal>FilterToBeanProxy</literal>, please
-        refer to the Filters section. The application context will need to
-        define the <literal>AuthenticationProcessingFilter</literal>:</para>
-
-        <para><programlisting>&lt;bean id="authenticationProcessingFilter" class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter"&gt;
-  &lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt;
-  &lt;property name="authenticationFailureUrl"&gt;&lt;value&gt;/acegilogin.jsp?login_error=1&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="defaultTargetUrl"&gt;&lt;value&gt;/&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="filterProcessesUrl"&gt;&lt;value&gt;/j_acegi_security_check&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;        </programlisting></para>
-
-        <para>The configured <literal>AuthenticationManager</literal>
-        processes each authentication request. If authentication fails, the
-        browser will be redirected to the
-        <literal>authenticationFailureUrl</literal>. The
-        <literal>AuthenticationException</literal> will be placed into the
-        <literal>HttpSession</literal> attribute indicated by
-        <literal>AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY</literal>,
-        enabling a reason to be provided to the user on the error page.</para>
-
-        <para>If authentication is successful, the resulting
-        <literal>Authentication</literal> object will be placed into the
-        <literal>SecurityContextHolder</literal>.</para>
-
-        <para>Once the <literal>SecurityContextHolder</literal> has been
-        updated, the browser will need to be redirected to the target URL. The
-        target URL is usually indicated by the <literal>HttpSession</literal>
-        attribute specified by
-        <literal>AbstractProcessingFilter.ACEGI_SECURITY_TARGET_URL_KEY</literal>.
-        This attribute is automatically set by the
-        <literal>ExceptionTranslationFilter</literal> when an
-        <literal>AuthenticationException</literal> occurs, so that after login
-        is completed the user can return to what they were trying to access.
-        If for some reason the <literal>HttpSession</literal> does not
-        indicate the target URL, the browser will be redirected to the
-        <literal>defaultTargetUrl</literal> property.</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="basic">
-      <title>BASIC Authentication Mechanism</title>
-
-      <sect1 id="basic-overview">
-        <title>Overview</title>
-
-        <para>Acegi Security provides a
-        <literal>BasicProcessingFilter</literal> which is capable of
-        processing basic authentication credentials presented in HTTP headers.
-        This can be used for authenticating calls made by Spring remoting
-        protocols (such as Hessian and Burlap), as well as normal user agents
-        (such as Internet Explorer and Navigator). The standard governing HTTP
-        Basic Authentication is defined by RFC 1945, Section 11, and the
-        <literal>BasicProcessingFilter</literal> conforms with this RFC. Basic
-        Authentication is an attractive approach to authentication, because it
-        is very widely deployed in user agents and implementation is extremely
-        simple (it's just a Base64 encoding of the username:password,
-        specified in a HTTP header).</para>
-      </sect1>
-
-      <sect1 id="basic-config">
-        <title>Configuration</title>
-
-        <para>To implement HTTP Basic Authentication, it is necessary to
-        define <literal>BasicProcessingFilter</literal> in the filter chain.
-        The application context will need to define the
-        <literal>BasicProcessingFilter</literal> and its required
-        collaborator:</para>
-
-        <para><programlisting>
-&lt;bean id="basicProcessingFilter" class="org.acegisecurity.ui.basicauth.BasicProcessingFilter"&gt;
-  &lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt;
-  &lt;property name="authenticationEntryPoint"&gt;&lt;ref bean="authenticationEntryPoint"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="authenticationEntryPoint" class="org.acegisecurity.ui.basicauth.BasicProcessingFilterEntryPoint"&gt;
-  &lt;property name="realmName"&gt;&lt;value&gt;Name Of Your Realm&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-        </programlisting></para>
-
-        <para>The configured <literal>AuthenticationManager</literal>
-        processes each authentication request. If authentication fails, the
-        configured <literal>AuthenticationEntryPoint</literal> will be used to
-        retry the authentication process. Usually you will use the
-        <literal>BasicProcessingFilterEntryPoint</literal>, which returns a
-        401 response with a suitable header to retry HTTP Basic
-        authentication. If authentication is successful, the resulting
-        <literal>Authentication</literal> object will be placed into the
-        <literal>SecurityContextHolder</literal>.</para>
-
-        <para>If the authentication event was successful, or authentication
-        was not attempted because the HTTP header did not contain a supported
-        authentication request, the filter chain will continue as normal. The
-        only time the filter chain will be interrupted is if authentication
-        fails and the <literal>AuthenticationEntryPoint</literal> is called,
-        as discussed in the previous paragraph</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="digest">
-      <title>Digest Authentication</title>
-
-      <sect1 id="digest-overview">
-        <title>Overview</title>
-
-        <para>Acegi Security provides a
-        <literal>DigestProcessingFilter</literal> which is capable of
-        processing digest authentication credentials presented in HTTP
-        headers. Digest Authentication attempts to solve many of the
-        weaknesses of Basic authentication, specifically by ensuring
-        credentials are never sent in clear text across the wire. Many user
-        agents support Digest Authentication, including FireFox and Internet
-        Explorer. The standard governing HTTP Digest Authentication is defined
-        by RFC 2617, which updates an earlier version of the Digest
-        Authentication standard prescribed by RFC 2069. Most user agents
-        implement RFC 2617. Acegi Security
-        <literal>DigestProcessingFilter</literal> is compatible with the
-        "<literal>auth</literal>" quality of protection
-        (<literal>qop</literal>) prescribed by RFC 2617, which also provides
-        backward compatibility with RFC 2069. Digest Authentication is a
-        highly attractive option if you need to use unencrypted HTTP (ie no
-        TLS/HTTPS) and wish to maximise security of the authentication
-        process. Indeed Digest Authentication is a mandatory requirement for
-        the WebDAV protocol, as noted by RFC 2518 Section 17.1, so we should
-        expect to see it increasingly deployed and replacing Basic
-        Authentication.</para>
-
-        <para>Digest Authentication is definitely the most secure choice
-        between Form Authentication, Basic Authentication and Digest
-        Authentication, although extra security also means more complex user
-        agent implementations. Central to Digest Authentication is a "nonce".
-        This is a value the server generates. Acegi Security's nonce adopts
-        the following format:</para>
-
-        <para><programlisting>base64(expirationTime + ":" + md5Hex(expirationTime + ":" + key))
-
-expirationTime:   The date and time when the nonce expires, expressed in milliseconds
-key:              A private key to prevent modification of the nonce token
-</programlisting></para>
-
-        <para>The <literal>DigestProcessingFilterEntryPoint</literal> has a
-        property specifying the <literal>key</literal> used for generating the
-        nonce tokens, along with a <literal>nonceValiditySeconds</literal>
-        property for determining the expiration time (default 300, which
-        equals five minutes). Whist ever the nonce is valid, the digest is
-        computed by concatenating various strings including the username,
-        password, nonce, URI being requested, a client-generated nonce (merely
-        a random value which the user agent generates each request), the realm
-        name etc, then performing an MD5 hash. Both the server and user agent
-        perform this digest computation, resulting in different hash codes if
-        they disagree on an included value (eg password). In Acegi Security
-        implementation, if the server-generated nonce has merely expired (but
-        the digest was otherwise valid), the
-        <literal>DigestProcessingFilterEntryPoint</literal> will send a
-        <literal>"stale=true"</literal> header. This tells the user agent
-        there is no need to disturb the user (as the password and username etc
-        is correct), but simply to try again using a new nonce.</para>
-
-        <para>An appropriate value for
-        <literal>DigestProcessingFilterEntryPoint</literal>'s
-        <literal>nonceValiditySeconds</literal> parameter will depend on your
-        application. Extremely secure applications should note that an
-        intercepted authentication header can be used to impersonate the
-        principal until the <literal>expirationTime</literal> contained in the
-        nonce is reached. This is the key principle when selecting an
-        appropriate setting, but it would be unusual for immensely secure
-        applications to not be running over TLS/HTTPS in the first
-        instance.</para>
-
-        <para>Because of the more complex implementation of Digest
-        Authentication, there are often user agent issues. For example,
-        Internet Explorer fails to present an "<literal>opaque</literal>"
-        token on subsequent requests in the same session. Acegi Security
-        filters therefore encapsulate all state information into the
-        "<literal>nonce</literal>" token instead. In our testing, Acegi
-        Security implementation works reliably with FireFox and Internet
-        Explorer, correctly handling nonce timeouts etc.</para>
-      </sect1>
-
-      <sect1 id="digest-config">
-        <title>Configuration</title>
-
-        <para>Now that we've reviewed the theory, let's see how to use it. To
-        implement HTTP Digest Authentication, it is necessary to define
-        <literal>DigestProcessingFilter</literal> in the fitler chain. The
-        application context will need to define the
-        <literal>DigestProcessingFilter</literal> and its required
-        collaborators:</para>
-
-        <para><programlisting>
-&lt;bean id="digestProcessingFilter" class="org.acegisecurity.ui.digestauth.DigestProcessingFilter"&gt;
-  &lt;property name="userDetailsService"&gt;&lt;ref local="jdbcDaoImpl"/&gt;&lt;/property&gt;
-  &lt;property name="authenticationEntryPoint"&gt;&lt;ref local="digestProcessingFilterEntryPoint"/&gt;&lt;/property&gt;
-  &lt;property name="userCache"&gt;&lt;ref local="userCache"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="digestProcessingFilterEntryPoint" class="org.acegisecurity.ui.digestauth.DigestProcessingFilterEntryPoint"&gt;
-  &lt;property name="realmName"&gt;&lt;value&gt;Contacts Realm via Digest Authentication&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="key"&gt;&lt;value&gt;acegi&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="nonceValiditySeconds"&gt;&lt;value&gt;10&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-        </programlisting></para>
-
-        <para>The configured <literal>UserDetailsService</literal> is needed
-        because <literal>DigestProcessingFilter</literal> must have direct
-        access to the clear text password of a user. Digest Authentication
-        will NOT work if you are using encoded passwords in your DAO. The DAO
-        collaborator, along with the <literal>UserCache</literal>, are
-        typically shared directly with a
-        <literal>DaoAuthenticationProvider</literal>. The
-        <literal>authenticationEntryPoint</literal> property must be
-        <literal>DigestProcessingFilterEntryPoint</literal>, so that
-        <literal>DigestProcessingFilter</literal> can obtain the correct
-        <literal>realmName</literal> and <literal>key</literal> for digest
-        calculations.</para>
-
-        <para>Like <literal>BasicAuthenticationFilter</literal>, if
-        authentication is successful an <literal>Authentication</literal>
-        request token will be placed into the
-        <literal>SecurityContextHolder</literal>. If the authentication event
-        was successful, or authentication was not attempted because the HTTP
-        header did not contain a Digest Authentication request, the filter
-        chain will continue as normal. The only time the filter chain will be
-        interrupted is if authentication fails and the
-        <literal>AuthenticationEntryPoint</literal> is called, as discussed in
-        the previous paragraph.</para>
-
-        <para>Digest Authentication's RFC offers a range of additional
-        features to further increase security. For example, the nonce can be
-        changed on every request. Despite this, Acegi Security implementation
-        was designed to minimise the complexity of the implementation (and the
-        doubtless user agent incompatibilities that would emerge), and avoid
-        needing to store server-side state. You are invited to review RFC 2617
-        if you wish to explore these features in more detail. As far as we are
-        aware, Acegi Security implementation does comply with the minimum
-        standards of this RFC.</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="anonymous">
-      <title>Anonymous Authentication</title>
-
-      <sect1 id="anonymous-overview">
-        <title>Overview</title>
-
-        <para>Particularly in the case of web request URI security, sometimes
-        it is more convenient to assign configuration attributes against every
-        possible secure object invocation. Put differently, sometimes it is
-        nice to say <literal>ROLE_SOMETHING</literal> is required by default
-        and only allow certain exceptions to this rule, such as for login,
-        logout and home pages of an application. There are also other
-        situations where anonymous authentication would be desired, such as
-        when an auditing interceptor queries the
-        <literal>SecurityContextHolder</literal> to identify which principal
-        was responsible for a given operation. Such classes can be authored
-        with more robustness if they know the
-        <literal>SecurityContextHolder</literal> always contains an
-        <literal>Authentication</literal> object, and never
-        <literal>null</literal>.</para>
-      </sect1>
-
-      <sect1 id="anonymous-config">
-        <title>Configuration</title>
-
-        <para>Acegi Security provides three classes that together provide an
-        anonymous authentication feature.
-        <literal>AnonymousAuthenticationToken</literal> is an implementation
-        of <literal>Authentication</literal>, and stores the
-        <literal>GrantedAuthority</literal>[]s which apply to the anonymous
-        principal. There is a corresponding
-        <literal>AnonymousAuthenticationProvider</literal>, which is chained
-        into the <literal>ProviderManager</literal> so that
-        <literal>AnonymousAuthenticationTokens</literal> are accepted.
-        Finally, there is an AnonymousProcessingFilter, which is chained after
-        the normal authentication mechanisms and automatically add an
-        <literal>AnonymousAuthenticationToken</literal> to the
-        <literal>SecurityContextHolder</literal> if there is no existing
-        <literal>Authentication</literal> held there. The definition of the
-        filter and authentication provider appears as follows:</para>
-
-        <para><programlisting>
-&lt;bean id="anonymousProcessingFilter" class="org.acegisecurity.providers.anonymous.AnonymousProcessingFilter"&gt;
-  &lt;property name="key"&gt;&lt;value&gt;foobar&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="userAttribute"&gt;&lt;value&gt;anonymousUser,ROLE_ANONYMOUS&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="anonymousAuthenticationProvider" class="org.acegisecurity.providers.anonymous.AnonymousAuthenticationProvider"&gt;
-  &lt;property name="key"&gt;&lt;value&gt;foobar&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-        </programlisting></para>
-
-        <para>The <literal>key</literal> is shared between the filter and
-        authentication provider, so that tokens created by the former are
-        accepted by the latter. The <literal>userAttribute</literal> is
-        expressed in the form of
-        <literal>usernameInTheAuthenticationToken,grantedAuthority[,grantedAuthority]</literal>.
-        This is the same syntax as used after the equals sign for
-        <literal>InMemoryDaoImpl</literal>'s <literal>userMap</literal>
-        property.</para>
-
-        <para>As explained earlier, the benefit of anonymous authentication is
-        that all URI patterns can have security applied to them. For
-        example:</para>
-
-        <para><programlisting>
-&lt;bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor"&gt;
-  &lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt;
-  &lt;property name="accessDecisionManager"&gt;&lt;ref local="httpRequestAccessDecisionManager"/&gt;&lt;/property&gt;
-  &lt;property name="objectDefinitionSource"&gt;
-    &lt;value&gt;
-      CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
-      PATTERN_TYPE_APACHE_ANT
-      /index.jsp=ROLE_ANONYMOUS,ROLE_USER
-      /hello.htm=ROLE_ANONYMOUS,ROLE_USER
-      /logoff.jsp=ROLE_ANONYMOUS,ROLE_USER
-      /acegilogin.jsp*=ROLE_ANONYMOUS,ROLE_USER
-      /**=ROLE_USER
-    &lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-
-        </programlisting>Rounding out the anonymous authentication discussion
-        is the <literal>AuthenticationTrustResolver</literal> interface, with
-        its corresponding <literal>AuthenticationTrustResolverImpl</literal>
-        implementation. This interface provides an
-        <literal>isAnonymous(Authentication)</literal> method, which allows
-        interested classes to take into account this special type of
-        authentication status. The
-        <literal>ExceptionTranslationFilter</literal> uses this interface in
-        processing <literal>AccessDeniedException</literal>s. If an
-        <literal>AccessDeniedException</literal> is thrown, and the
-        authentication is of an anonymous type, instead of throwing a 403
-        (forbidden) response, the filter will instead commence the
-        <literal>AuthenticationEntryPoint</literal> so the principal can
-        authenticate properly. This is a necessary distinction, otherwise
-        principals would always be deemed "authenticated" and never be given
-        an opportunity to login via form, basic, digest or some other normal
-        authentication mechanism</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="remember-me">
-      <title>Remember-Me Authentication</title>
-
-      <sect1 id="remember-me-overview">
-        <title>Overview</title>
-
-        <para>Remember-me authentication refers to web sites being able to
-        remember the identity of a principal between sessions. This is
-        typically accomplished by sending a cookie to the browser, with the
-        cookie being detected during future sessions and causing automated
-        login to take place. Acegi Security provides the necessary hooks so
-        that such operations can take place, along with providing a concrete
-        implementation that uses hashing to preserve the security of
-        cookie-based tokens.</para>
-      </sect1>
-
-      <sect1 id="remember-me-config">
-        <title>Configuration</title>
-
-        <para>Remember-me authentication is not used with basic
-        authentication, given it is often not used with
-        <literal>HttpSession</literal>s. Remember-me is used with
-        <literal>AuthenticationProcessingFilter</literal>, and is implemented
-        via hooks in the <literal>AbstractProcessingFilter</literal>
-        superclass. The hooks will invoke a concrete
-        <literal>RememberMeServices</literal> at the appropriate times. The
-        interface looks like this:</para>
-
-        <para><programlisting>public Authentication autoLogin(HttpServletRequest request, HttpServletResponse response);
-public void loginFail(HttpServletRequest request, HttpServletResponse response);
-public void loginSuccess(HttpServletRequest request, HttpServletResponse response, Authentication successfulAuthentication);</programlisting></para>
-
-        <para>Please refer to JavaDocs for a fuller discussion on what the
-        methods do, although note at this stage
-        <literal>AbstractProcessingFilter</literal> only calls the
-        <literal>loginFail()</literal> and <literal>loginSuccess()</literal>
-        methods. The <literal>autoLogin()</literal> method is called by
-        <literal>RememberMeProcessingFilter</literal> whenever the
-        <literal>SecurityContextHolder</literal> does not contain an
-        <literal>Authentication</literal>. This interface therefore provides
-        the underlaying remember-me implementation with sufficient
-        notification of authentication-related events, and delegates to the
-        implementation whenever a candidate web request might contain a cookie
-        and wish to be remembered.</para>
-
-        <para>This design allows any number of remember-me implementation
-        strategies. In the interests of simplicity and avoiding the need for
-        DAO implementations that specify write and create methods, Acegi
-        Security's only concrete implementation,
-        <literal>TokenBasedRememberMeServices</literal>, uses hashing to
-        achieve a useful remember-me strategy. In essence a cookie is sent to
-        the browser upon successful interactive authentication, with that
-        cookie being composed as follows:</para>
-
-        <para><programlisting>base64(username + ":" + expirationTime + ":" + md5Hex(username + ":" + expirationTime + ":" password + ":" + key))
-
-username:         As identifiable to TokenBasedRememberMeServices.getUserDetailsService()
-password:         That matches the relevant UserDetails retrieved from TokenBasedRememberMeServices.getUserDetailsService()
-expirationTime:   The date and time when the remember-me token expires, expressed in milliseconds
-key:              A private key to prevent modification of the remember-me token
-</programlisting></para>
-
-        <para>As such the remember-me token is valid only for the period
-        specified, and provided that the username, password and key does not
-        change. Notably, this has a potential security issue in that a
-        captured remember-me token will be usable from any user agent until
-        such time as the token expires. This is the same issue as with digest
-        authentication. If a principal is aware a token has been captured,
-        they can easily change their password and immediately invalidate all
-        remember-me tokens on issue. However, if more significant security is
-        needed a rolling token approach should be used (this would require a
-        database) or remember-me services should simply not be used.</para>
-
-        <para><literal>TokenBasedRememberMeServices</literal> generates a
-        <literal>RememberMeAuthenticationToken</literal>, which is processed
-        by <literal>RememberMeAuthenticationProvider</literal>. A
-        <literal>key</literal> is shared between this authentication provider
-        and the <literal>TokenBasedRememberMeServices</literal>. In addition,
-        <literal>TokenBasedRememberMeServices</literal> requires A
-        UserDetailsService from which it can retrieve the username and
-        password for signature comparison purposes, and generate the
-        <literal>RememberMeAuthenticationToken</literal> to contain the
-        correct <literal>GrantedAuthority</literal>[]s. Some sort of logout
-        command should be provided by the application (typically via a JSP)
-        that invalidates the cookie upon user request. See the Contacts Sample
-        application's <literal>logout.jsp</literal> for an example.</para>
-
-        <para>The beans required in an application context to enable
-        remember-me services are as follows:</para>
-
-        <para><programlisting>
-&lt;bean id="rememberMeProcessingFilter" class="org.acegisecurity.ui.rememberme.RememberMeProcessingFilter"&gt;
-  &lt;property name="rememberMeServices"&gt;&lt;ref local="rememberMeServices"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="rememberMeServices" class="org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices"&gt;
-  &lt;property name="userDetailsService"&gt;&lt;ref local="jdbcDaoImpl"/&gt;&lt;/property&gt;
-  &lt;property name="key"&gt;&lt;value&gt;springRocks&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-   
-&lt;bean id="rememberMeAuthenticationProvider" class="org.acegisecurity.providers.rememberme.RememberMeAuthenticationProvider"&gt;
-  &lt;property name="key"&gt;&lt;value&gt;springRocks&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-        </programlisting>Don't forget to add your
-        <literal>RememberMeServices</literal> implementation to your
-        <literal>AuthenticationProcessingFilter.setRememberMeServices()</literal>
-        property, include the
-        <literal>RememberMeAuthenticationProvider</literal> in your
-        <literal>AuthenticationManager.setProviders()</literal> list, and add
-        a call to <literal>RememberMeProcessingFilter</literal> into your
-        <literal>FilterChainProxy</literal> (typically immediately after your
-        <literal>AuthenticationProcessingFilter</literal>)</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="x509">
-      <title>X509 Authentication</title>
-
-      <sect1 id="x509-overview">
-        <title>Overview</title>
-
-        <para>The most common use of X509 certificate authentication is in
-        verifying the identity of a server when using SSL, most commonly when
-        using HTTPS from a browser. The browser will automatically check that
-        the certificate presented by a server has been issued (ie digitally
-        signed) by one of a list of trusted certificate authorities which it
-        maintains.</para>
-
-        <para>You can also use SSL with <quote>mutual authentication</quote>;
-        the server will then request a valid certificate from the client as
-        part of the SSL handshake. The server will authenticate the client by
-        checking that it's certificate is signed by an acceptable authority.
-        If a valid certificate has been provided, it can be obtained through
-        the servlet API in an application. Acegi Security X509 module extracts
-        the certificate using a filter and passes it to the configured X509
-        authentication provider to allow any additional application-specific
-        checks to be applied. It also maps the certificate to an application
-        user and loads that user's set of granted authorities for use with the
-        standard Acegi Security infrastructure.</para>
-
-        <para>You should be familiar with using certificates and setting up
-        client authentication for your servlet container before attempting to
-        use it with Acegi Security. Most of the work is in creating and
-        installing suitable certificates and keys. For example, if you're
-        using Tomcat then read the instructions here <ulink
-        url="http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html"></ulink>.
-        It's important that you get this working before trying it out with
-        Acegi Security</para>
-      </sect1>
-
-      <sect1 id="x509-with-acegi">
-        <title>Using X509 with Acegi Security</title>
-
-        <para>With X509 authentication, there is no explicit login procedure
-        so the implementation is relatively simple; there is no need to
-        redirect requests in order to interact with the user. As a result,
-        some of the classes behave slightly differently from their equivalents
-        in other packages. For example, the default <quote>entry point</quote>
-        class, which is normally responsible for starting the authentication
-        process, is only invoked if the certificate is rejected and it always
-        returns an error to the user. With a suitable bean configuration, the
-        normal sequence of events is as follows <orderedlist>
-            <listitem>
-              <para>The <classname>X509ProcessingFilter</classname> extracts
-              the certificate from the request and uses it as the credentials
-              for an authentication request. The generated authentication
-              request is an <classname>X509AuthenticationToken</classname>.
-              The request is passed to the authentication manager.</para>
-            </listitem>
-
-            <listitem>
-              <para>The <classname>X509AuthenticationProvider</classname>
-              receives the token. Its main concern is to obtain the user
-              information (in particular the user's granted authorities) that
-              matches the certificate. It delegates this responsibility to an
-              <interfacename>X509AuthoritiesPopulator</interfacename>.</para>
-            </listitem>
-
-            <listitem>
-              <para>The populator's single method,
-              <methodname>getUserDetails(X509Certificate
-              userCertificate)</methodname> is invoked. Implementations should
-              return a <classname>UserDetails</classname> instance containing
-              the array of <classname>GrantedAuthority</classname> objects for
-              the user. This method can also choose to reject the certificate
-              (for example if it doesn't contain a matching user name). In
-              such cases it should throw a
-              <exceptionname>BadCredentialsException</exceptionname>. A
-              DAO-based implementation,
-              <classname>DaoX509AuthoritiesPopulator</classname>, is provided
-              which extracts the user's name from the subject <quote>common
-              name</quote> (CN) in the certificate. It also allows you to set
-              your own regular expression to match a different part of the
-              subject's distinguished name. A UserDetailsService is used to
-              load the user information.<!-- TODO: Give email matching as an example --></para>
-            </listitem>
-
-            <listitem>
-              <para>If everything has gone smoothly then there should be a
-              valid <classname>Authentication</classname> object in the secure
-              context and the invocation will procede as normal. If no
-              certificate was found, or the certificate was rejected, then the
-              <classname>ExceptionTranslationFilter</classname> will invoke
-              the <classname>X509ProcessingFilterEntryPoint</classname> which
-              returns a 403 error (forbidden) to the user.</para>
-            </listitem>
-          </orderedlist></para>
-      </sect1>
-
-      <sect1 id="x509-config">
-        <title>Configuration</title>
-
-        <para>There is a version of the <link
-        linkend="contacts-sample">Contacts Sample Application</link> which
-        uses X509. Copy the beans and filter setup from this as a starting
-        point for configuring your own application. A set of example
-        certificates is also included which you can use to configure your
-        server. These are <itemizedlist>
-            <listitem>
-              <para><filename>marissa.p12</filename>: A PKCS12 format file
-              containing the client key and certificate. These should be
-              installed in your browser. It maps to the user
-              <quote>marissa</quote> in the application.</para>
-            </listitem>
-
-            <listitem>
-              <para><filename>server.p12</filename>: The server certificate
-              and key for HTTPS connections.</para>
-            </listitem>
-
-            <listitem>
-              <para><filename>ca.jks</filename>: A Java keystore containing
-              the certificate for the authority which issued marissa's
-              certificate. This will be used by the container to validate
-              client certificates.</para>
-            </listitem>
-          </itemizedlist> For JBoss 3.2.7 (with Tomcat 5.0), the SSL
-        configuration in the <filename>server.xml</filename> file looks like
-        this <programlisting>
-&lt;!-- SSL/TLS Connector configuration --&gt;
-&lt;Connector port="8443" address="${jboss.bind.address}"
-  maxThreads="100" minSpareThreads="5" maxSpareThreads="15"
-  scheme="https" secure="true"
-  sslProtocol = "TLS"
-  clientAuth="true" keystoreFile="${jboss.server.home.dir}/conf/server.p12"
-  keystoreType="PKCS12" keystorePass="password"
-  truststoreFile="${jboss.server.home.dir}/conf/ca.jks"
-  truststoreType="JKS" truststorePass="password"
-/&gt;
-
-        </programlisting><parameter>clientAuth</parameter> can also be set to
-        <parameter>want</parameter> if you still want SSL connections to
-        succeed even if the client doesn't provide a certificate. Obviously
-        these clients won't be able to access any objects secured by Acegi
-        Security (unless you use a non-X509 authentication mechanism, such as
-        BASIC authentication, to authenticate the user)</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="ldap">
-      <title>LDAP Authentication</title>
-
-      <sect1 id="ldap-overview">
-        <title>Overview</title>
-
-        <para>LDAP is often used by organizations as a central repository for
-        user information and as an authentication service. It can also be used
-        to store the role information for application users.</para>
-
-        <para>There are many different scenarios for how an LDAP server may be
-        configured so Acegi LDAP provider is fully configurable. It uses
-        separate strategy interfaces for authentication and role retrieval and
-        provides default implementations which can be configured to handle a
-        wide range of situations.</para>
-
-        <para>You should be familiar with LDAP before trying to use it with
-        Acegi. The following link provides a good introduction to the concepts
-        involved and a guide to setting up a directory using the free LDAP
-        server OpenLDAP: <ulink
-        url="http://www.zytrax.com/books/ldap/"></ulink>. Some familiarity
-        with the JNDI APIs used to access LDAP from Java may also be useful.
-        We don't use any third-party LDAP libraries (Mozilla/Netscape, JLDAP
-        etc.) in the LDAP provider.</para>
-      </sect1>
-
-      <sect1 id="ldap-with-acegi">
-        <title>Using LDAP with Acegi Security</title>
-
-        <para>The main LDAP provider class is
-        <classname>org.acegisecurity.providers.ldap.LdapAuthenticationProvider</classname>.
-        This bean doesn't actually do much itself other than implement the
-        <methodname>retrieveUser</methodname> method required by its base
-        class,
-        <classname>AbstractUserDetailsAuthenticationProvider</classname>. It
-        delegates the work to two other beans, an
-        <interfacename>LdapAuthenticator</interfacename> and an
-        <interfacename>LdapAuthoritiesPopulator</interfacename> which are
-        responsible for authenticating the user and retrieving the user's set
-        of <interfacename>GrantedAuthority</interfacename>s
-        respectively.</para>
-
-        <sect2 id="ldap-ldap-authenticators">
-          <title>LdapAuthenticator Implementations</title>
-
-          <para>The authenticator is also responsible for retrieving any
-          required user attributes. This is because the permissions on the
-          attributes may depend on the type of authentication being used. For
-          example, if binding as the user, it may be necessary to read them
-          with the user's own permissions.</para>
-
-          <para>There are currently two authentication strategies supplied
-          with Acegi Security: <itemizedlist>
-              <listitem>
-                <para>Authentication directly to the LDAP server ("bind"
-                authentication).</para>
-              </listitem>
-
-              <listitem>
-                <para>Password comparison, where the password supplied by the
-                user is compared with the one stored in the repository. This
-                can either be done by retrieving the value of the password
-                attribute and checking it locally or by performing an LDAP
-                "compare" operation, where the supplied password is passed to
-                the server for comparison and the real password value is never
-                retrieved.</para>
-              </listitem>
-            </itemizedlist></para>
-
-          <sect3 id="ldap-ldap-authenticators-common">
-            <title>Common Functionality</title>
-
-            <para>Before it is possible to authenticate a user (by either
-            strategy), the distinguished name (DN) has to be obtained from the
-            login name supplied to the application. This can be done either by
-            simple pattern-matching (by setting the
-            <property>setUserDnPatterns</property> array property) or by
-            setting the <property>userSearch</property> property. For the DN
-            pattern-matching approach, a standard Java pattern format is used,
-            and the login name will be substituted for the parameter
-            <parameter>{0}</parameter>. The pattern should be relative to the
-            DN that the configured
-            <interfacename>InitialDirContextFactory</interfacename> will bind
-            to (see the section on <link
-            linkend="ldap-dircontextfactory">connecting to the LDAP
-            server</link> for more information on this). For example, if you
-            are using an LDAP server specified by the URL
-            <literal>ldap://monkeymachine.co.uk/dc=acegisecurity,dc=org</literal>,
-            and have a pattern <literal>uid={0},ou=greatapes</literal>, then a
-            login name of "gorilla" will map to a DN
-            <literal>uid=gorilla,ou=greatapes,dc=acegisecurity,dc=org</literal>.
-            Each configured DN pattern will be tried in turn until a match is
-            found. For information on using a search, see the section on <link
-            linkend="ldap-searchobjects">search objects</link> below. A
-            combination of the two approaches can also be used - the patterns
-            will be checked first and if no matching DN is found, the search
-            will be used.</para>
-          </sect3>
-
-          <sect3 id="ldap-ldap-authenticators-bind">
-            <title>BindAuthenticator</title>
-
-            <para>The class
-            <classname>org.acegisecurity.providers.ldap.authenticator.BindAuthenticator</classname>
-            implements the bind authentication strategy. It simply attempts to
-            bind as the user.</para>
-          </sect3>
-
-          <sect3 id="ldap-ldap-authenticators-password">
-            <title>PasswordComparisonAuthenticator</title>
-
-            <para>The class
-            <classname>org.acegisecurity.providers.ldap.authenticator.PasswordComparisonAuthenticator</classname>
-            implements the password comparison authentication strategy.</para>
-          </sect3>
-
-          <sect3 id="ldap-ldap-authenticators-active-directory">
-            <title>Active Directory Authentication</title>
-
-            <para>In addition to standard LDAP authentication (binding with a
-            DN), Active Directory has its own non-standard syntax for user
-            authentication.</para>
-          </sect3>
-        </sect2>
-
-        <sect2 id="ldap-dircontextfactory">
-          <title>Connecting to the LDAP Server</title>
-
-          <para>The beans discussed above have to be able to connect to the
-          server. They both have to be supplied with an
-          <interfacename>InitialDirContextFactory</interfacename> instance.
-          Unless you have special requirements, this will usually be a
-          <classname>DefaultInitialDirContextFactory</classname> bean, which
-          can be configured with the URL of your LDAP server and optionally
-          with the username and password of a "manager" user which will be
-          used by default when binding to the server (instead of binding
-          anonymously). It currently supports "simple" LDAP
-          authentication.</para>
-
-          <para><classname>DefaultInitialDirContextFactory</classname> uses
-          Sun's JNDI LDAP implementation by default (the one that comes with
-          the JDK). It also supports the built in connection pooling offered
-          by Sun's provider. Connections which are obtained either anonymously
-          or with the "manager" user's identity will be pooled automatically.
-          Connections obtained with a specific user's identity will not be
-          pooled. Connection pooling can be disabled completely by setting the
-          <property>useConnectionPool</property> property to false.</para>
-
-          <para>See the <ulink
-          url="http://acegisecurity.org/multiproject/acegi-security/xref/org/acegisecurity/providers/ldap/DefaultInitialDirContextFactory.html">class
-          Javadoc and source</ulink> for more information on this bean and its
-          properties.</para>
-        </sect2>
-
-        <sect2 id="ldap-searchobjects">
-          <title>LDAP Search Objects</title>
-
-          <para>Often more a more complicated strategy than simple DN-matching
-          is required to locate a user entry in the directory. This can be
-          encapsulated in an <interfacename>LdapUserSearch</interfacename>
-          instance which can be supplied to the authenticator implementations,
-          for example, to allow them to locate a user. The supplied
-          implementation is
-          <classname>FilterBasedLdapUserSearch</classname>.</para>
-
-          <sect3 id="ldap-searchobjects-filter">
-            <title
-            id="ldap-searchobjects-filter-based"><classname>FilterBasedLdapUserSearch</classname></title>
-
-            <para>This bean uses an LDAP filter to match the user object in
-            the directory. The process is explained in the Javadoc for the
-            corresponding search method on the <ulink
-            url="http://java.sun.com/j2se/1.4.2/docs/api/javax/naming/directory/DirContext.html#search(javax.naming.Name,%20java.lang.String,%20java.lang.Object[],%20javax.naming.directory.SearchControls)">JDK
-            DirContext class</ulink>. As explained there, the search filter
-            can be supplied with parameters. For this class, the only valid
-            parameter is <parameter>{0}</parameter> which will be replaced
-            with the user's login name.</para>
-          </sect3>
-        </sect2>
-      </sect1>
-
-      <sect1 id="ldap-config">
-        <title>Configuration</title>
-
-        <para>There is a version of the <link
-        linkend="contacts-sample">Contacts Sample Application</link> which
-        uses LDAP. You can copy the beans and filter setup from this as a
-        starting point for configuring your own application.</para>
-
-        <para>A typical configuration, using some of the beans we've discussed
-        above, might look like this: <programlisting>
-    &lt;bean id="initialDirContextFactory" 
-            class="org.acegisecurity.ldap.DefaultInitialDirContextFactory"&gt;
-      &lt;constructor-arg value="ldap://monkeymachine:389/dc=acegisecurity,dc=org"/&gt;
-      &lt;property name="managerDn"&gt;&lt;value&gt;cn=manager,dc=acegisecurity,dc=org&lt;/value&gt;&lt;/property&gt;
-      &lt;property name="managerPassword"&gt;&lt;value&gt;password&lt;/value&gt;&lt;/property&gt;
-    &lt;/bean&gt;
-
-    &lt;bean id="userSearch"
-            class="org.acegisecurity.ldap.search.FilterBasedLdapUserSearch"&gt;
-      &lt;constructor-arg index="0"&gt;
-        &lt;value&gt;&lt;/value&gt;
-      &lt;/constructor-arg&gt;
-      &lt;constructor-arg index="1"&gt;
-        &lt;value&gt;(uid={0})&lt;/value&gt;
-      &lt;/constructor-arg&gt;
-      &lt;constructor-arg index="2"&gt;
-        &lt;ref local="initialDirContextFactory" /&gt;
-      &lt;/constructor-arg&gt;            
-      &lt;property name="searchSubtree"&gt;
-        &lt;value&gt;true&lt;/value&gt;
-      &lt;/property&gt;            
-    &lt;/bean&gt;            
-            
-    &lt;bean id="ldapAuthProvider" 
-            class="org.acegisecurity.providers.ldap.LdapAuthenticationProvider"&gt;
-      &lt;constructor-arg&gt;
-        &lt;bean class="org.acegisecurity.providers.ldap.authenticator.BindAuthenticator"&gt;
-           &lt;constructor-arg&gt;&lt;ref local="initialDirContextFactory"/&gt;&lt;/constructor-arg&gt;
-           &lt;property name="userDnPatterns"&gt;&lt;list&gt;&lt;value&gt;uid={0},ou=people&lt;/value&gt;&lt;/list&gt;&lt;/property&gt;
-        &lt;/bean&gt;
-      &lt;/constructor-arg&gt;
-      &lt;constructor-arg&gt;
-        &lt;bean class="org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulator"&gt;
-           &lt;constructor-arg&gt;&lt;ref local="initialDirContextFactory"/&gt;&lt;/constructor-arg&gt;
-           &lt;constructor-arg&gt;&lt;value&gt;ou=groups&lt;/value&gt;&lt;/constructor-arg&gt;
-           &lt;property name="groupRoleAttribute"&gt;&lt;value&gt;ou&lt;/value&gt;&lt;/property&gt;
-        &lt;/bean&gt;
-      &lt;/constructor-arg&gt;
-    &lt;/bean&gt;
-  
-          </programlisting> This would set up the provider to access an LDAP
-        server with URL
-        <literal>ldap://monkeymachine:389/dc=acegisecurity,dc=org</literal>.
-        Authentication will be performed by attempting to bind with the DN
-        <literal>uid=&lt;user-login-name&gt;,ou=people,dc=acegisecurity,dc=org</literal>.
-        After successful authentication, roles will be assigned to the user by
-        searching under the DN
-        <literal>ou=groups,dc=acegisecurity,dc=org</literal> with the default
-        filter <literal>(member=&lt;user's-DN&gt;)</literal>. The role name
-        will be taken from the <quote>ou</quote> attribute of each
-        match.</para>
-
-        <para>We've also included the configuration for a user search object,
-        which uses the filter
-        <literal>(uid=&lt;user-login-name&gt;)</literal>. This could be used
-        instead of the DN-pattern (or in addition to it), by setting the
-        authenticator's <property>userSearch</property> property. The
-        authenticator would then call the search object to obtain the correct
-        user's DN before attempting to bind as this user.</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="cas">
-      <title>CAS Authentication</title>
-
-      <sect1 id="cas-overview">
-        <title>Overview</title>
-
-        <para>JA-SIG produces an enterprise-wide single sign on system known
-        as CAS. Unlike other initiatives, JA-SIG's Central Authentication
-        Service is open source, widely used, simple to understand, platform
-        independent, and supports proxy capabilities. Acegi Security fully
-        supports CAS, and provides an easy migration path from
-        single-application deployments of Acegi Security through to
-        multiple-application deployments secured by an enterprise-wide CAS
-        server.</para>
-
-        <para>You can learn more about CAS at
-        <literal>http://www.ja-sig.org/products/cas/</literal>. You will need
-        to visit this URL to download the CAS Server files. Whilst Acegi
-        Security includes two CAS libraries in the "-with-dependencies" ZIP
-        file, you will still need the CAS Java Server Pages and
-        <literal>web.xml</literal> to customise and deploy your CAS
-        server.</para>
-      </sect1>
-
-      <sect1 id="cas-how-it-works">
-        <title>How CAS Works</title>
-
-        <para>Whilst the CAS web site above contains two documents that detail
-        the architecture of CAS, we present the general overview again here
-        within the context of Acegi Security. The following refers to both CAS
-        2.0 (produced by Yale) and CAS 3.0 (produced by JA-SIG), being the
-        versions of CAS that Acegi Security supports.</para>
-
-        <para>Somewhere in your enterprise you will need to setup a CAS
-        server. The CAS server is simply a standard WAR file, so there isn't
-        anything difficult about setting up your server. Inside the WAR file
-        you will customise the login and other single sign on pages displayed
-        to users.</para>
-
-        <para>If you are deploying CAS 2.0, you will also need to specify in
-        the web.xml a <literal>PasswordHandler</literal>. The
-        <literal>PasswordHandler</literal> has a simple method that returns a
-        boolean as to whether a given username and password is valid. Your
-        <literal>PasswordHandler</literal> implementation will need to link
-        into some type of backend authentication repository, such as an LDAP
-        server or database.</para>
-
-        <para>If you are already running an existing CAS 2.0 server instance,
-        you will have already established a
-        <literal>PasswordHandler</literal>. If you do not already have a
-        <literal>PasswordHandler</literal>, you might prefer to use Acegi
-        Security <literal>CasPasswordHandler</literal> class. This class
-        delegates through to the standard Acegi Security
-        <literal>AuthenticationManager</literal>, enabling you to use a
-        security configuration you might already have in place. You do not
-        need to use the <literal>CasPasswordHandler</literal> class on your
-        CAS server if you do not wish. Acegi Security will function as a CAS
-        client successfully irrespective of the
-        <literal>PasswordHandler</literal> you've chosen for your CAS
-        server.</para>
-
-        <para>If you are deploying CAS 3.0, you will also need to specify an
-        <literal>AuthenticationHandler</literal> in the
-        deployerConfigContext.xml included with CAS. The
-        <literal>AuthenticationHandler</literal> has a simple method that
-        returns a boolean as to whether a given set of Credentials is valid.
-        Your <literal>AuthenticationHandler</literal> implementation will need
-        to link into some type of backend authentication repository, such as
-        an LDAP server or database. CAS itself includes numerous
-        <literal>AuthenticationHandler</literal>s out of the box to assist
-        with this.</para>
-
-        <para>If you are already running an existing CAS 3.0 server instance,
-        you will have already established an
-        <literal>AuthenticationHandler</literal>. If you do not already have
-        an <literal>AuthenticationHandler</literal>, you might prefer to use
-        Acegi Security <literal>CasAuthenticationHandler</literal> class. This
-        class delegates through to the standard Acegi Security
-        <literal>AuthenticationManager</literal>, enabling you to use a
-        security configuration you might already have in place. You do not
-        need to use the <literal>CasAuthenticationHandler</literal> class on
-        your CAS server if you do not wish. Acegi Security will function as a
-        CAS client successfully irrespective of the
-        <literal>AuthenticationHandler</literal> you've chosen for your CAS
-        server.</para>
-
-        <para>Apart from the CAS server itself, the other key player is of
-        course the secure web applications deployed throughout your
-        enterprise. These web applications are known as "services". There are
-        two types of services: standard services and proxy services. A proxy
-        service is able to request resources from other services on behalf of
-        the user. This will be explained more fully later.</para>
-
-        <para>Services can be developed in a large variety of languages, due
-        to CAS 2.0's very light XML-based protocol. The JA-SIG CAS home page
-        contains a clients archive which demonstrates CAS clients in Java,
-        Active Server Pages, Perl, Python and others. Naturally, Java support
-        is very strong given the CAS server is written in Java. You do not
-        need to use any of CAS' client classes in applications secured by
-        Acegi Security. This is handled transparently for you.</para>
-
-        <para>The basic interaction between a web browser, CAS server and an
-        Acegi Security for System Spring secured service is as follows:</para>
-
-        <orderedlist>
-          <listitem>
-            <para>The web user is browsing the service's public pages. CAS or
-            Acegi Security is not involved.</para>
-          </listitem>
-
-          <listitem>
-            <para>The user eventually requests a page that is either secure or
-            one of the beans it uses is secure. Acegi Security's
-            <literal>ExceptionTranslationFilter</literal> will detect the
-            <literal>AuthenticationException</literal>.</para>
-          </listitem>
-
-          <listitem>
-            <para>Because the user's <literal>Authentication</literal> object
-            (or lack thereof) caused an
-            <literal>AuthenticationException</literal>, the
-            <literal>ExceptionTranslationFilter</literal> will call the
-            configured <literal>AuthenticationEntryPoint</literal>. If using
-            CAS, this will be the
-            <literal>CasProcessingFilterEntryPoint</literal> class.</para>
-          </listitem>
-
-          <listitem>
-            <para>The <literal>CasProcessingFilterEntry</literal> point will
-            redirect the user's browser to the CAS server. It will also
-            indicate a <literal>service</literal> parameter, which is the
-            callback URL for Acegi Security service. For example, the URL to
-            which the browser is redirected might be
-            <literal>https://my.company.com/cas/login?service=https%3A%2F%2Fserver3.company.com%2Fwebapp%2Fj_acegi_cas_security_check</literal>.</para>
-          </listitem>
-
-          <listitem>
-            <para>After the user's browser redirects to CAS, they will be
-            prompted for their username and password. If the user presents a
-            session cookie which indicates they've previously logged on, they
-            will not be prompted to login again (there is an exception to this
-            procedure, which we'll cover later). CAS will use the
-            <literal>PasswordHandler</literal> (or
-            <literal>AuthenticationHandler</literal> if using CAS 3.0)
-            discussed above to decide whether the username and password is
-            valid.</para>
-          </listitem>
-
-          <listitem>
-            <para>Upon successful login, CAS will redirect the user's browser
-            back to the original service. It will also include a
-            <literal>ticket</literal> parameter, which is an opaque string
-            representing the "service ticket". Continuing our earlier example,
-            the URL the browser is redirected to might be
-            <literal>https://server3.company.com/webapp/j_acegi_cas_security_check?ticket=ST-0-ER94xMJmn6pha35CQRoZ</literal>.</para>
-          </listitem>
-
-          <listitem>
-            <para>Back in the service web application, the
-            <literal>CasProcessingFilter</literal> is always listening for
-            requests to <literal>/j_acegi_cas_security_check</literal> (this
-            is configurable, but we'll use the defaults in this introduction).
-            The processing filter will construct a
-            <literal>UsernamePasswordAuthenticationToken</literal>
-            representing the service ticket. The principal will be equal to
-            <literal>CasProcessingFilter.CAS_STATEFUL_IDENTIFIER</literal>,
-            whilst the credentials will be the service ticket opaque value.
-            This authentication request will then be handed to the configured
-            <literal>AuthenticationManager</literal>.</para>
-          </listitem>
-
-          <listitem>
-            <para>The <literal>AuthenticationManager</literal> implementation
-            will be the <literal>ProviderManager</literal>, which is in turn
-            configured with the <literal>CasAuthenticationProvider</literal>.
-            The <literal>CasAuthenticationProvider</literal> only responds to
-            <literal>UsernamePasswordAuthenticationToken</literal>s containing
-            the CAS-specific principal (such as
-            <literal>CasProcessingFilter.CAS_STATEFUL_IDENTIFIER</literal>)
-            and <literal>CasAuthenticationToken</literal>s (discussed
-            later).</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>CasAuthenticationProvider</literal> will validate
-            the service ticket using a <literal>TicketValidator</literal>
-            implementation. Acegi Security includes one implementation, the
-            <literal>CasProxyTicketValidator</literal>. This implementation a
-            ticket validation class included in the CAS client library. The
-            <literal>CasProxyTicketValidator</literal> makes a HTTPS request
-            to the CAS server in order to validate the service ticket. The
-            <literal>CasProxyTicketValidator</literal> may also include a
-            proxy callback URL, which is included in this example:
-            <literal>https://my.company.com/cas/proxyValidate?service=https%3A%2F%2Fserver3.company.com%2Fwebapp%2Fj_acegi_cas_security_check&amp;ticket=ST-0-ER94xMJmn6pha35CQRoZ&amp;pgtUrl=https://server3.company.com/webapp/casProxy/receptor</literal>.</para>
-          </listitem>
-
-          <listitem>
-            <para>Back on the CAS server, the proxy validation request will be
-            received. If the presented service ticket matches the service URL
-            the ticket was issued to, CAS will provide an affirmative response
-            in XML indicating the username. If any proxy was involved in the
-            authentication (discussed below), the list of proxies is also
-            included in the XML response.</para>
-          </listitem>
-
-          <listitem>
-            <para>[OPTIONAL] If the request to the CAS validation service
-            included the proxy callback URL (in the <literal>pgtUrl</literal>
-            parameter), CAS will include a <literal>pgtIou</literal> string in
-            the XML response. This <literal>pgtIou</literal> represents a
-            proxy-granting ticket IOU. The CAS server will then create its own
-            HTTPS connection back to the <literal>pgtUrl</literal>. This is to
-            mutually authenticate the CAS server and the claimed service URL.
-            The HTTPS connection will be used to send a proxy granting ticket
-            to the original web application. For example,
-            <literal>https://server3.company.com/webapp/casProxy/receptor?pgtIou=PGTIOU-0-R0zlgrl4pdAQwBvJWO3vnNpevwqStbSGcq3vKB2SqSFFRnjPHt&amp;pgtId=PGT-1-si9YkkHLrtACBo64rmsi3v2nf7cpCResXg5MpESZFArbaZiOKH</literal>.
-            We suggest you use CAS' <literal>ProxyTicketReceptor</literal>
-            servlet to receive these proxy-granting tickets, if they are
-            required.</para>
-          </listitem>
-
-          <listitem>
-            <para>The <literal>CasProxyTicketValidator</literal> will parse
-            the XML received from the CAS server. It will return to the
-            <literal>CasAuthenticationProvider</literal> a
-            <literal>TicketResponse</literal>, which includes the username
-            (mandatory), proxy list (if any were involved), and proxy-granting
-            ticket IOU (if the proxy callback was requested).</para>
-          </listitem>
-
-          <listitem>
-            <para>Next <literal>CasAuthenticationProvider</literal> will call
-            a configured <literal>CasProxyDecider</literal>. The
-            <literal>CasProxyDecider</literal> indicates whether the proxy
-            list in the <literal>TicketResponse</literal> is acceptable to the
-            service. Several implementations are provided with Acegi Security
-            System: <literal>RejectProxyTickets</literal>,
-            <literal>AcceptAnyCasProxy</literal> and
-            <literal>NamedCasProxyDecider</literal>. These names are largely
-            self-explanatory, except <literal>NamedCasProxyDecider</literal>
-            which allows a <literal>List</literal> of trusted proxies to be
-            provided.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>CasAuthenticationProvider</literal> will next
-            request a <literal>CasAuthoritiesPopulator</literal> to advise the
-            <literal>GrantedAuthority</literal> objects that apply to the user
-            contained in the <literal>TicketResponse</literal>. Acegi Security
-            includes a <literal>DaoCasAuthoritiesPopulator</literal> which
-            simply uses the <literal>UserDetailsService</literal>
-            infrastructure to find the <literal>UserDetails</literal> and
-            their associated <literal>GrantedAuthority</literal>s. Note that
-            the password and enabled/disabled status of
-            <literal>UserDetails</literal> returned by the
-            <literal>UserDetailsService</literal> are ignored, as the CAS
-            server is responsible for authentication decisions.
-            <literal>DaoCasAuthoritiesPopulator</literal> is only concerned
-            with retrieving the <literal>GrantedAuthority</literal>s.</para>
-          </listitem>
-
-          <listitem>
-            <para>If there were no problems,
-            <literal>CasAuthenticationProvider</literal> constructs a
-            <literal>CasAuthenticationToken</literal> including the details
-            contained in the <literal>TicketResponse</literal> and the
-            <literal>GrantedAuthority</literal>s. The
-            <literal>CasAuthenticationToken</literal> contains the hash of a
-            key, so that the <literal>CasAuthenticationProvider</literal>
-            knows it created it.</para>
-          </listitem>
-
-          <listitem>
-            <para>Control then returns to
-            <literal>CasProcessingFilter</literal>, which places the created
-            <literal>CasAuthenticationToken</literal> into the
-            <literal>HttpSession</literal> attribute named
-            <literal>HttpSessionIntegrationFilter.ACEGI_SECURITY_AUTHENTICATION_KEY</literal>.</para>
-          </listitem>
-
-          <listitem>
-            <para>The user's browser is redirected to the original page that
-            caused the <literal>AuthenticationException</literal>.</para>
-          </listitem>
-
-          <listitem>
-            <para>As the <literal>Authentication</literal> object is now in
-            the well-known location, it is handled like any other
-            authentication approach. Usually the
-            <literal>HttpSessionIntegrationFilter</literal> will be used to
-            associate the <literal>Authentication</literal> object with the
-            <literal>SecurityContextHolder</literal> for the duration of each
-            request.</para>
-          </listitem>
-        </orderedlist>
-
-        <para>It's good that you're still here! It might sound involved, but
-        you can relax as Acegi Security classes hide much of the complexity.
-        Let's now look at how this is configured</para>
-      </sect1>
-
-      <sect1 id="cas-server">
-        <title>Optional CAS Server Setup</title>
-
-        <para>Acegi Security can even act as the backend which a CAS version
-        2.0 or 3.0 server utilises. The configuration approach is described
-        below. Of course, if you have an existing CAS environment you might
-        just like to use it instead.</para>
-
-        <sect2 id="cas-server-2">
-          <title>CAS Version 2.0</title>
-
-          <para>As mentioned above, Acegi Security includes a
-          <literal>PasswordHandler</literal> that bridges your existing
-          <literal>AuthenticationManager</literal> into CAS 2.0. You do not
-          need to use this <literal>PasswordHandler</literal> to use Acegi
-          Security on the client side (any CAS
-          <literal>PasswordHandler</literal> will do).</para>
-
-          <para>To install, you will need to download and extract the CAS
-          server archive. We used version 2.0.12. There will be a
-          <literal>/web</literal> directory in the root of the deployment.
-          Copy an <literal>applicationContext.xml</literal> containing your
-          <literal>AuthenticationManager</literal> as well as the
-          <literal>CasPasswordHandler</literal> into the
-          <literal>/web/WEB-INF</literal> directory. A sample
-          <literal>applicationContext.xml</literal> is included below:</para>
-
-          <programlisting>
-&lt;bean id="inMemoryDaoImpl" class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl"&gt;
-  &lt;property name="userMap"&gt;
-    &lt;value&gt;
-      marissa=koala,ROLES_IGNORED_BY_CAS
-      dianne=emu,ROLES_IGNORED_BY_CAS
-      scott=wombat,ROLES_IGNORED_BY_CAS
-      peter=opal,disabled,ROLES_IGNORED_BY_CAS
-    &lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider"&gt;
-  &lt;property name="userDetailsService"&gt;&lt;ref bean="inMemoryDaoImpl"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager"&gt;
-  &lt;property name="providers"&gt;
-    &lt;list&gt;
-      &lt;ref bean="daoAuthenticationProvider"/&gt;
-    &lt;/list&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="casPasswordHandler" class="org.acegisecurity.adapters.cas.CasPasswordHandler"&gt;
-  &lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-        </programlisting>
-
-          <para>Note the granted authorities are ignored by CAS because it has
-          no way of communicating the granted authorities to calling
-          applications. CAS is only concerned with username and passwords (and
-          the enabled/disabled status).</para>
-
-          <para>Next you will need to edit the existing
-          <literal>/web/WEB-INF/web.xml</literal> file. Add (or edit in the
-          case of the <literal>authHandler</literal> property) the following
-          lines:</para>
-
-          <para><programlisting>
-
-&lt;context-param&gt;
-  &lt;param-name&gt;edu.yale.its.tp.cas.authHandler&lt;/param-name&gt;
-  &lt;param-value&gt;org.acegisecurity.adapters.cas.CasPasswordHandlerProxy&lt;/param-value&gt;
-&lt;/context-param&gt;
-
-&lt;context-param&gt;
-  &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
-  &lt;param-value&gt;/WEB-INF/applicationContext.xml&lt;/param-value&gt;
-&lt;/context-param&gt;
-
-&lt;listener&gt;
-  &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
-&lt;/listener&gt;
-
-        </programlisting></para>
-
-          <para>Copy the <literal>spring.jar</literal> and
-          <literal>acegi-security.jar</literal> files into
-          <literal>/web/WEB-INF/lib</literal>. Now use the <literal>ant
-          dist</literal> task in the <literal>build.xml</literal> in the root
-          of the directory structure. This will create
-          <literal>/lib/cas.war</literal>, which is ready for deployment to
-          your servlet container.</para>
-
-          <para>Note CAS heavily relies on HTTPS. You can't even test the
-          system without a HTTPS certificate. Whilst you should refer to your
-          web container's documentation on setting up HTTPS, if you need some
-          additional help or a test certificate you might like to check the
-          <literal>samples/contacts/etc/ssl</literal> directory</para>
-        </sect2>
-
-        <sect2 id="cas-server-3">
-          <title>CAS Version 3.0</title>
-
-          <para>As mentioned above, Acegi Security includes an
-          <literal>AuthenticationHandler</literal> that bridges your existing
-          <literal>AuthenticationManager</literal> into CAS 3.0. You do not
-          need to use this <literal>AuthenticationHandler</literal> to use
-          Acegi Security on the client side (any CAS
-          <literal>AuthenticationHandler</literal> will do).</para>
-
-          <para>To install, you will need to download and extract the CAS
-          server archive. We used version 3.0.4. There will be a
-          <literal>/webapp</literal> directory in the root of the deployment.
-          Edit the an <literal>deployerConfigContext.xml</literal> so that it
-          contains your <literal>AuthenticationManager</literal> as well as
-          the <literal>CasAuthenticationHandler</literal>. A sample
-          <literal>applicationContext.xml</literal> is included below:</para>
-
-          <programlisting>
-	&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-	&lt;!DOCTYPE beans PUBLIC  "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"&gt;
-	&lt;beans&gt;
-		&lt;bean
-			id="authenticationManager"
-			class="org.jasig.cas.authentication.AuthenticationManagerImpl"&gt;
-			&lt;property name="credentialsToPrincipalResolvers"&gt;
-				&lt;list&gt;
-					&lt;bean class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver" /&gt;
-					&lt;bean class="org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrincipalResolver" /&gt;
-				&lt;/list&gt;
-			&lt;/property&gt;
-	
-			&lt;property name="authenticationHandlers"&gt;
-				&lt;list&gt;
-					&lt;bean class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler" /&gt;
-					&lt;bean class="org.acegisecurity.adapters.cas3.CasAuthenticationHandler"&gt;
-						&lt;property name="authenticationManager" ref="acegiAuthenticationManager" /&gt;
-					&lt;/bean&gt;
-				&lt;/list&gt;
-			&lt;/property&gt;
-		&lt;/bean&gt;
-		
-		
-		&lt;bean id="inMemoryDaoImpl" class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl"&gt;
-	  		&lt;property name="userMap"&gt;
-				&lt;value&gt;
-					marissa=koala,ROLES_IGNORED_BY_CAS
-					dianne=emu,ROLES_IGNORED_BY_CAS
-					scott=wombat,ROLES_IGNORED_BY_CAS
-					peter=opal,disabled,ROLES_IGNORED_BY_CAS
-				&lt;/value&gt;
-			&lt;/property&gt;
-		&lt;/bean&gt;
-		
-		&lt;bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider"&gt;
-	     	&lt;property name="userDetailsService"&gt;&lt;ref bean="inMemoryDaoImpl"/&gt;&lt;/property&gt;
-		&lt;/bean&gt;
-	
-		&lt;bean id="acegiAuthenticationManager" class="org.acegisecurity.providers.ProviderManager"&gt;
-			&lt;property name="providers"&gt;
-			  &lt;list&gt;
-			    &lt;ref bean="daoAuthenticationProvider"/&gt;
-			  &lt;/list&gt;
-			&lt;/property&gt;
-		&lt;/bean&gt;
-	&lt;/beans&gt;
-	
-        </programlisting>
-
-          <para>Note the granted authorities are ignored by CAS because it has
-          no way of communicating the granted authorities to calling
-          applications. CAS is only concerned with username and passwords (and
-          the enabled/disabled status).</para>
-
-          <para>Copy <literal>acegi-security.jar</literal> and 
-          <literal>acegi-security-cas.jar</literal> files into
-          <literal>/localPlugins/lib</literal>. Now use the <literal>ant
-          war</literal> task in the <literal>build.xml</literal> in the
-          /localPlugins directory. This will create
-          <literal>/localPlugins/target/cas.war</literal>, which is ready for
-          deployment to your servlet container.</para>
-
-          <para>Note CAS heavily relies on HTTPS. You can't even test the
-          system without a HTTPS certificate. Whilst you should refer to your
-          web container's documentation on setting up HTTPS, if you need some
-          additional help or a test certificate you might like to check the
-          CAS documentation on setting up SSL:
-          <literal>http://www.ja-sig.org/products/cas/server/ssl/index.html</literal></para>
-        </sect2>
-      </sect1>
-
-      <sect1 id="cas-client">
-        <title>Configuration of CAS Client</title>
-
-        <para>The web application side of CAS is made easy due to Acegi
-        Security. It is assumed you already know the basics of using Acegi
-        Security, so these are not covered again below. Only the CAS-specific
-        beans are mentioned.</para>
-
-        <para>You will need to add a <literal>ServiceProperties</literal> bean
-        to your application context. This represents your service:</para>
-
-        <para><programlisting>
-
-&lt;bean id="serviceProperties" class="org.acegisecurity.ui.cas.ServiceProperties"&gt;
-  &lt;property name="service"&gt;&lt;value&gt;https://localhost:8443/contacts-cas/j_acegi_cas_security_check&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="sendRenew"&gt;&lt;value&gt;false&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-        </programlisting></para>
-
-        <para>The <literal>service</literal> must equal a URL that will be
-        monitored by the <literal>CasProcessingFilter</literal>. The
-        <literal>sendRenew</literal> defaults to false, but should be set to
-        true if your application is particularly sensitive. What this
-        parameter does is tell the CAS login service that a single sign on
-        login is unacceptable. Instead, the user will need to re-enter their
-        username and password in order to gain access to the service.</para>
-
-        <para>The following beans should be configured to commence the CAS
-        authentication process:</para>
-
-        <para><programlisting>
-&lt;bean id="casProcessingFilter" class="org.acegisecurity.ui.cas.CasProcessingFilter"&gt;
-  &lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt;
-  &lt;property name="authenticationFailureUrl"&gt;&lt;value&gt;/casfailed.jsp&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="defaultTargetUrl"&gt;&lt;value&gt;/&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="filterProcessesUrl"&gt;&lt;value&gt;/j_acegi_cas_security_check&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="exceptionTranslationFilter" class="org.acegisecurity.ui.ExceptionTranslationFilter"&gt;
-  &lt;property name="authenticationEntryPoint"&gt;&lt;ref local="casProcessingFilterEntryPoint"/&gt;&lt;/property&gt;
-&lt;/bean&gt;          
-
-&lt;bean id="casProcessingFilterEntryPoint" class="org.acegisecurity.ui.cas.CasProcessingFilterEntryPoint"&gt;
-  &lt;property name="loginUrl"&gt;&lt;value&gt;https://localhost:8443/cas/login&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="serviceProperties"&gt;&lt;ref bean="serviceProperties"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-        </programlisting></para>
-
-        <para>You will also need to add the
-        <literal>CasProcessingFilter</literal> to web.xml:</para>
-
-        <para><programlisting>          
-&lt;filter&gt;
-  &lt;filter-name&gt;Acegi CAS Processing Filter&lt;/filter-name&gt;
-  &lt;filter-class&gt;org.acegisecurity.util.FilterToBeanProxy&lt;/filter-class&gt;
-  &lt;init-param&gt;
-    &lt;param-name&gt;targetClass&lt;/param-name&gt;
-    &lt;param-value&gt;org.acegisecurity.ui.cas.CasProcessingFilter&lt;/param-value&gt;
-  &lt;/init-param&gt;
-&lt;/filter&gt;
-
-&lt;filter-mapping&gt;
-  &lt;filter-name&gt;Acegi CAS Processing Filter&lt;/filter-name&gt;
-  &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
-&lt;/filter-mapping&gt;
-
-        </programlisting></para>
-
-        <para>The <literal>CasProcessingFilter</literal> has very similar
-        properties to the <literal>AuthenticationProcessingFilter</literal>
-        (used for form-based logins). Each property is
-        self-explanatory.</para>
-
-        <para>For CAS to operate, the
-        <literal>ExceptionTranslationFilter</literal> must have its
-        <literal>authenticationEntryPoint</literal> property set to the
-        <literal>CasProcessingFilterEntryPoint</literal> bean.</para>
-
-        <para>The <literal>CasProcessingFilterEntryPoint</literal> must refer
-        to the <literal>ServiceProperties</literal> bean (discussed above),
-        which provides the URL to the enterprise's CAS login server. This is
-        where the user's browser will be redirected.</para>
-
-        <para>Next you need to add an <literal>AuthenticationManager</literal>
-        that uses <literal>CasAuthenticationProvider</literal> and its
-        collaborators:</para>
-
-        <para><programlisting>
-&lt;bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager"&gt;
-  &lt;property name="providers"&gt;
-    &lt;list&gt;
-      &lt;ref bean="casAuthenticationProvider"/&gt;
-    &lt;/list&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="casAuthenticationProvider" class="org.acegisecurity.providers.cas.CasAuthenticationProvider"&gt;
-  &lt;property name="casAuthoritiesPopulator"&gt;&lt;ref bean="casAuthoritiesPopulator"/&gt;&lt;/property&gt;
-  &lt;property name="casProxyDecider"&gt;&lt;ref bean="casProxyDecider"/&gt;&lt;/property&gt;
-  &lt;property name="ticketValidator"&gt;&lt;ref bean="casProxyTicketValidator"/&gt;&lt;/property&gt;
-  &lt;property name="statelessTicketCache"&gt;&lt;ref bean="statelessTicketCache"/&gt;&lt;/property&gt;
-  &lt;property name="key"&gt;&lt;value&gt;my_password_for_this_auth_provider_only&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="casProxyTicketValidator" class="org.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator"&gt;
-  &lt;property name="casValidate"&gt;&lt;value&gt;https://localhost:8443/cas/proxyValidate&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="proxyCallbackUrl"&gt;&lt;value&gt;https://localhost:8443/contacts-cas/casProxy/receptor&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="serviceProperties"&gt;&lt;ref bean="serviceProperties"/&gt;&lt;/property&gt;
-  &lt;!-- &lt;property name="trustStore"&gt;&lt;value&gt;/some/path/to/your/lib/security/cacerts&lt;/value&gt;&lt;/property&gt; --&gt;
-&lt;/bean&gt;
-
-&lt;bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"&gt;
-  &lt;property name="configLocation"&gt;
-    &lt;value&gt;classpath:/ehcache-failsafe.xml&lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-    
-&lt;bean id="ticketCacheBackend" class="org.springframework.cache.ehcache.EhCacheFactoryBean"&gt;
-  &lt;property name="cacheManager"&gt;
-    &lt;ref local="cacheManager"/&gt;
-  &lt;/property&gt;
-  &lt;property name="cacheName"&gt;
-    &lt;value&gt;ticketCache&lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-   
-&lt;bean id="statelessTicketCache" class="org.acegisecurity.providers.cas.cache.EhCacheBasedTicketCache"&gt;
-  &lt;property name="cache"&gt;&lt;ref local="ticketCacheBackend"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="casAuthoritiesPopulator" class="org.acegisecurity.providers.cas.populator.DaoCasAuthoritiesPopulator"&gt;
-  &lt;property name="userDetailsService"&gt;&lt;ref bean="inMemoryDaoImpl"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="casProxyDecider" class="org.acegisecurity.providers.cas.proxy.RejectProxyTickets"/&gt;
-
-        </programlisting></para>
-
-        <para>The beans are all reasonable self-explanatory if you refer back
-        to the "How CAS Works" section. Careful readers might notice one
-        surprise: the <literal>statelessTicketCache</literal> property of the
-        <literal>CasAuthenticationProvider</literal>. This is discussed in
-        detail in the "Advanced CAS Usage" section.</para>
-
-        <para>Note the <literal>CasProxyTicketValidator</literal> has a
-        remarked out <literal>trustStore</literal> property. This property
-        might be helpful if you experience HTTPS certificate issues. Also note
-        the <literal>proxyCallbackUrl</literal> is set so the service can
-        receive a proxy-granting ticket. As mentioned above, this is optional
-        and unnecessary if you do not require proxy-granting tickets. If you
-        do use this feature, you will need to configure a suitable servlet to
-        receive the proxy-granting tickets. We suggest you use CAS'
-        <literal>ProxyTicketReceptor</literal> by adding the following to your
-        web application's <literal>web.xml</literal>:</para>
-
-        <para><programlisting>
-&lt;servlet&gt;
-  &lt;servlet-name&gt;casproxy&lt;/servlet-name&gt;
-  &lt;servlet-class&gt;edu.yale.its.tp.cas.proxy.ProxyTicketReceptor&lt;/servlet-class&gt;
-&lt;/servlet&gt;
-
-&lt;servlet-mapping&gt;
-  &lt;servlet-name&gt;casproxy&lt;/servlet-name&gt;
-  &lt;url-pattern&gt;/casProxy/*&lt;/url-pattern&gt;
-&lt;/servlet-mapping&gt;
-
-        </programlisting></para>
-
-        <para>This completes the configuration of CAS. If you haven't made any
-        mistakes, your web application should happily work within the
-        framework of CAS single sign on. No other parts of Acegi Security need
-        to be concerned about the fact CAS handled authentication.</para>
-
-        <para>There is also a <literal>contacts-cas.war</literal> file in the
-        sample applications directory. This sample application uses the above
-        settings and can be deployed to see CAS in operation</para>
-      </sect1>
-
-      <sect1 id="cas-advanced">
-        <title>Advanced Issues</title>
-
-        <para>The <literal>CasAuthenticationProvider</literal> distinguishes
-        between stateful and stateless clients. A stateful client is
-        considered any that originates via the
-        <literal>CasProcessingFilter</literal>. A stateless client is any that
-        presents an authentication request via the
-        <literal>UsernamePasswordAuthenticationToken</literal> with a
-        principal equal to
-        <literal>CasProcessingFilter.CAS_STATELESS_IDENTIFIER</literal>.</para>
-
-        <para>Stateless clients are likely to be via remoting protocols such
-        as Hessian and Burlap. The <literal>BasicProcessingFilter</literal> is
-        still used in this case, but the remoting protocol client is expected
-        to present a username equal to the static string above, and a password
-        equal to a CAS service ticket. Clients should acquire a CAS service
-        ticket directly from the CAS server.</para>
-
-        <para>Because remoting protocols have no way of presenting themselves
-        within the context of a <literal>HttpSession</literal>, it isn't
-        possible to rely on the <literal>HttpSession</literal>'s
-        <literal>HttpSessionIntegrationFilter.ACEGI_SECURITY_AUTHENTICATION_KEY</literal>
-        attribute to locate the <literal>CasAuthenticationToken</literal>.
-        Furthermore, because the CAS server invalidates a service ticket after
-        it has been validated by the <literal>TicketValidator</literal>,
-        presenting the same service ticket on subsequent requests will not
-        work. It is similarly very difficult to obtain a proxy-granting ticket
-        for a remoting protocol client, as they are often deployed on client
-        machines which rarely have HTTPS URLs that would be accessible to the
-        CAS server.</para>
-
-        <para>One obvious option is to not use CAS at all for remoting
-        protocol clients. However, this would eliminate many of the desirable
-        features of CAS.</para>
-
-        <para>As a middle-ground, the
-        <literal>CasAuthenticationProvider</literal> uses a
-        <literal>StatelessTicketCache</literal>. This is used solely for
-        requests with a principal equal to
-        <literal>CasProcessingFilter.CAS_STATELESS_IDENTIFIER</literal>. What
-        happens is the <literal>CasAuthenticationProvider</literal> will store
-        the resulting <literal>CasAuthenticationToken</literal> in the
-        <literal>StatelessTicketCache</literal>, keyed on the service ticket.
-        Accordingly, remoting protocol clients can present the same service
-        ticket and the <literal>CasAuthenticationProvider</literal> will not
-        need to contact the CAS server for validation (aside from the first
-        request).</para>
-
-        <para>The other aspect of advanced CAS usage involves creating proxy
-        tickets from the proxy-granting ticket. As indicated above, we
-        recommend you use CAS' <literal>ProxyTicketReceptor</literal> to
-        receive these tickets. The <literal>ProxyTicketReceptor</literal>
-        provides a static method that enables you to obtain a proxy ticket by
-        presenting the proxy-granting IOU ticket. You can obtain the
-        proxy-granting IOU ticket by calling
-        <literal>CasAuthenticationToken.getProxyGrantingTicketIou()</literal>.</para>
-
-        <para>It is hoped you find CAS integration easy and useful with Acegi
-        Security classes. Welcome to enterprise-wide single sign on!</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="ca">
-      <title>Container Adapter Authentication</title>
-
-      <sect1 id="ca-overview">
-        <title>Overview</title>
-
-        <para>Very early versions of Acegi Security exclusively used Container
-        Adapters for interfacing authentication with end users. Whilst this
-        worked well, it required considerable time to support multiple
-        container versions and the configuration itself was relatively
-        time-consuming for developers. For this reason the HTTP Form
-        Authentication and HTTP Basic Authentication approaches were
-        developed, and are today recommended for almost all
-        applications.</para>
-
-        <para>Container Adapters enable Acegi Security to integrate directly
-        with the containers used to host end user applications. This
-        integration means that applications can continue to leverage the
-        authentication and authorization capabilities built into containers
-        (such as <literal>isUserInRole()</literal> and form-based or basic
-        authentication), whilst benefiting from the enhanced security
-        interception capabilities provided by Acegi Security (it should be
-        noted that Acegi Security also offers
-        <literal>ContextHolderAwareRequestWrapper</literal> to deliver
-        <literal>isUserInRole()</literal> and similar Servlet Specification
-        compatibility methods).</para>
-
-        <para>The integration between a container and Acegi Security is
-        achieved through an adapter. The adapter provides a
-        container-compatible user authentication provider, and needs to return
-        a container-compatible user object.</para>
-
-        <para>The adapter is instantiated by the container and is defined in a
-        container-specific configuration file. The adapter then loads a Spring
-        application context which defines the normal authentication manager
-        settings, such as the authentication providers that can be used to
-        authenticate the request. The application context is usually named
-        <literal>acegisecurity.xml</literal> and is placed in a
-        container-specific location.</para>
-
-        <para>Acegi Security currently supports Jetty, Catalina (Tomcat),
-        JBoss and Resin. Additional container adapters can easily be
-        written</para>
-      </sect1>
-
-      <sect1 id="ca-adapter">
-        <title>Adapter Authentication Provider</title>
-
-        <para>As is always the case, the container adapter generated
-        <literal>Authentication</literal> object still needs to be
-        authenticated by an <literal>AuthenticationManager</literal> when
-        requested to do so by the
-        <literal>AbstractSecurityInterceptor</literal>. The
-        <literal>AuthenticationManager</literal> needs to be certain the
-        adapter-provided <literal>Authentication</literal> object is valid and
-        was actually authenticated by a trusted adapter.</para>
-
-        <para>Adapters create <literal>Authentication</literal> objects which
-        are immutable and implement the <literal>AuthByAdapter</literal>
-        interface. These objects store the hash of a key that is defined by
-        the adapter. This allows the <literal>Authentication</literal> object
-        to be validated by the <literal>AuthByAdapterProvider</literal>. This
-        authentication provider is defined as follows:</para>
-
-        <para><programlisting>&lt;bean id="authByAdapterProvider" class="org.acegisecurity.adapters.AuthByAdapterProvider"&gt;
-  &lt;property name="key"&gt;&lt;value&gt;my_password&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;       </programlisting></para>
-
-        <para>The key must match the key that is defined in the
-        container-specific configuration file that starts the adapter. The
-        <literal>AuthByAdapterProvider</literal> automatically accepts as
-        valid any <literal>AuthByAdapter</literal> implementation that returns
-        the expected hash of the key.</para>
-
-        <para>To reiterate, this means the adapter will perform the initial
-        authentication using providers such as
-        <literal>DaoAuthenticationProvider</literal>, returning an
-        <literal>AuthByAdapter</literal> instance that contains a hash code of
-        the key. Later, when an application calls a security interceptor
-        managed resource, the <literal>AuthByAdapter</literal> instance in the
-        <literal>SecurityContext</literal> in the
-        <literal>SecurityContextHolder</literal> will be tested by the
-        application's <literal>AuthByAdapterProvider</literal>. There is no
-        requirement for additional authentication providers such as
-        <literal>DaoAuthenticationProvider</literal> within the
-        application-specific application context, as the only type of
-        <literal>Authentication</literal> instance that will be presented by
-        the application is from the container adapter.</para>
-
-        <para>Classloader issues are frequent with containers and the use of
-        container adapters illustrates this further. Each container requires a
-        very specific configuration. The installation instructions are
-        provided below. Once installed, please take the time to try the sample
-        application to ensure your container adapter is properly
-        configured.</para>
-
-        <para>When using container adapters with the
-        <literal>DaoAuthenticationProvider</literal>, ensure you set its
-        <literal>forcePrincipalAsString</literal> property to
-        <literal>true</literal>.</para>
-      </sect1>
-
-      <sect1 id="ca-jetty">
-        <title>Jetty</title>
-
-        <para>The following was tested with Jetty 4.2.18.</para>
-
-        <para><literal>$JETTY_HOME</literal> refers to the root of your Jetty
-        installation.</para>
-
-        <para>Edit your <literal>$JETTY_HOME/etc/jetty.xml</literal> file so
-        the <literal>&lt;Configure class&gt;</literal> section has a new
-        <literal>addRealm</literal> call:</para>
-
-        <para><programlisting>
-  &lt;Call name="addRealm"&gt;
-    &lt;Arg&gt;
-      &lt;New class="org.acegisecurity.adapters.jetty.JettyAcegiUserRealm"&gt;
-        &lt;Arg&gt;Spring Powered Realm&lt;/Arg&gt;
-        &lt;Arg&gt;my_password&lt;/Arg&gt;
-        &lt;Arg&gt;etc/acegisecurity.xml&lt;/Arg&gt;
-      &lt;/New&gt;
-    &lt;/Arg&gt;
-  &lt;/Call&gt;
-
-        </programlisting></para>
-
-        <para>Copy <literal>acegisecurity.xml</literal> into
-        <literal>$JETTY_HOME/etc</literal>.</para>
-
-        <para>Copy the following files into
-        <literal>$JETTY_HOME/ext</literal>:<itemizedlist>
-            <listitem>
-              <para><literal>aopalliance.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>commons-logging.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>spring.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>acegi-security-jetty-XX.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>commons-codec.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>burlap.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>hessian.jar</literal></para>
-            </listitem>
-          </itemizedlist></para>
-
-        <para>None of the above JAR files (or
-        <literal>acegi-security-XX.jar</literal>) should be in your
-        application's <literal>WEB-INF/lib</literal>. The realm name indicated
-        in your <literal>web.xml</literal> does matter with Jetty. The
-        <literal>web.xml</literal> must express the same
-        <literal>&lt;realm-name&gt;</literal> as your
-        <literal>jetty.xml</literal> (in the example above, "Spring Powered
-        Realm").</para>
-      </sect1>
-
-      <sect1 id="ca-jboss">
-        <title>JBoss</title>
-
-        <para>The following was tested with JBoss 3.2.6.</para>
-
-        <para><literal>$JBOSS_HOME</literal> refers to the root of your JBoss
-        installation.</para>
-
-        <para>There are two different ways of making spring context available
-        to the Jboss integration classes.</para>
-
-        <para>The first approach is by editing your
-        <literal>$JBOSS_HOME/server/your_config/conf/login-config.xml</literal>
-        file so that it contains a new entry under the
-        <literal>&lt;Policy&gt;</literal> section:</para>
-
-        <para><programlisting> 
-&lt;application-policy name = "SpringPoweredRealm"&gt;
-   &lt;authentication&gt;
-      &lt;login-module code = "org.acegisecurity.adapters.jboss.JbossAcegiLoginModule"
-        flag = "required"&gt;
-        &lt;module-option name = "appContextLocation"&gt;acegisecurity.xml&lt;/module-option&gt;
-        &lt;module-option name = "key"&gt;my_password&lt;/module-option&gt;
-     &lt;/login-module&gt;
-   &lt;/authentication&gt;
-&lt;/application-policy&gt;
-        
-        </programlisting></para>
-
-        <para>Copy <literal>acegisecurity.xml</literal> into
-        <literal>$JBOSS_HOME/server/your_config/conf</literal>.</para>
-
-        <para>In this configuration <literal>acegisecurity.xml</literal>
-        contains the spring context definition including all the
-        authentication manager beans. You have to bear in mind though, that
-        <literal>SecurityContext</literal> is created and destroyed on each
-        login request, so the login operation might become costly.
-        Alternatively, the second approach is to use Spring singleton
-        capabilities through
-        <literal>org.springframework.beans.factory.access.SingletonBeanFactoryLocator</literal>.
-        The required configuration for this approach is:</para>
-
-        <para><programlisting>
-&lt;application-policy name = "SpringPoweredRealm"&gt;
-   &lt;authentication&gt;
-      &lt;login-module code = "org.acegisecurity.adapters.jboss.JbossAcegiLoginModule"
-        flag = "required"&gt;
-        &lt;module-option name = "singletonId"&gt;springRealm&lt;/module-option&gt;
-        &lt;module-option name = "key"&gt;my_password&lt;/module-option&gt;
-        &lt;module-option name = "authenticationManager"&gt;authenticationManager&lt;/module-option&gt;
-     &lt;/login-module&gt;
-   &lt;/authentication&gt;
-&lt;/application-policy&gt;
-
-        </programlisting></para>
-
-        <para>In the above code fragment,
-        <literal>authenticationManager</literal> is a helper property that
-        defines the expected name of the
-        <literal>AuthenticationManager</literal> in case you have several
-        defined in the IoC container. The <literal>singletonId</literal>
-        property references a bean defined in a
-        <literal>beanRefFactory.xml</literal> file. This file needs to be
-        available from anywhere on the JBoss classpath, including
-        <literal>$JBOSS_HOME/server/your_config/conf</literal>. The
-        <literal>beanRefFactory.xml</literal> contains the following
-        declaration:</para>
-
-        <para><programlisting>
-&lt;beans&gt;
-  &lt;bean id="springRealm" singleton="true" lazy-init="true" class="org.springframework.context.support.ClassPathXmlApplicationContext"&gt;
-    &lt;constructor-arg&gt;
-      &lt;list&gt;
-        &lt;value&gt;acegisecurity.xml&lt;/value&gt;
-      &lt;/list&gt;
-    &lt;/constructor-arg&gt;
-  &lt;/bean&gt;
-&lt;/beans&gt;
-
-        </programlisting></para>
-
-        <para>Finally, irrespective of the configuration approach you need to
-        copy the following files into
-        <literal>$JBOSS_HOME/server/your_config/lib</literal>:<itemizedlist>
-            <listitem>
-              <para><literal>aopalliance.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>spring.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>acegi-security-jboss-XX.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>commons-codec.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>burlap.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>hessian.jar</literal></para>
-            </listitem>
-          </itemizedlist></para>
-
-        <para>None of the above JAR files (or
-        <literal>acegi-security-XX.jar</literal>) should be in your
-        application's <literal>WEB-INF/lib</literal>. The realm name indicated
-        in your <literal>web.xml</literal> does not matter with JBoss.
-        However, your web application's
-        <literal>WEB-INF/jboss-web.xml</literal> must express the same
-        <literal>&lt;security-domain&gt;</literal> as your
-        <literal>login-config.xml</literal>. For example, to match the above
-        example, your <literal>jboss-web.xml</literal> would look like
-        this:</para>
-
-        <para><programlisting>
-&lt;jboss-web&gt;
-  &lt;security-domain&gt;java:/jaas/SpringPoweredRealm&lt;/security-domain&gt;
-&lt;/jboss-web&gt;</programlisting></para>
-
-        <para>JBoss is a widely-used container adapter (mostly due to the need
-        to support legacy EJBs), so please let us know if you have any
-        difficulties.</para>
-      </sect1>
-
-      <sect1 id="ca-resin">
-        <title>Resin</title>
-
-        <para>The following was tested with Resin 3.0.6.</para>
-
-        <para><literal>$RESIN_HOME</literal> refers to the root of your Resin
-        installation.</para>
-
-        <para>Resin provides several ways to support the container adapter. In
-        the instructions below we have elected to maximise consistency with
-        other container adapter configurations. This will allow Resin users to
-        simply deploy the sample application and confirm correct
-        configuration. Developers comfortable with Resin are naturally able to
-        use its capabilities to package the JARs with the web application
-        itself, and/or support single sign-on.</para>
-
-        <para>Copy the following files into
-        <literal>$RESIN_HOME/lib</literal>:<itemizedlist>
-            <listitem>
-              <para><literal>aopalliance.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>commons-logging.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>spring.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>acegi-security-resin-XX.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>commons-codec.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>burlap.jar</literal></para>
-            </listitem>
-
-            <listitem>
-              <para><literal>hessian.jar</literal></para>
-            </listitem>
-          </itemizedlist></para>
-
-        <para>Unlike the container-wide <literal>acegisecurity.xml</literal>
-        files used by other container adapters, each Resin web application
-        will contain its own
-        <literal>WEB-INF/resin-acegisecurity.xml</literal> file. Each web
-        application will also contain a <literal>resin-web.xml</literal> file
-        which Resin uses to start the container adapter:</para>
-
-        <para><programlisting>
-&lt;web-app&gt;
-  &lt;authenticator&gt;
-    &lt;type&gt;org.acegisecurity.adapters.resin.ResinAcegiAuthenticator&lt;/type&gt;
-    &lt;init&gt;
-      &lt;app-context-location&gt;WEB-INF/resin-acegisecurity.xml&lt;/app-context-location&gt;
-      &lt;key&gt;my_password&lt;/key&gt;
-    &lt;/init&gt;
-  &lt;/authenticator&gt;
-&lt;/web-app&gt;
-
-        </programlisting></para>
-
-        <para>With the basic configuration provided above, none of the JAR
-        files listed (or <literal>acegi-security-XX.jar</literal>) should be
-        in your application's <literal>WEB-INF/lib</literal>. The realm name
-        indicated in your <literal>web.xml</literal> does not matter with
-        Resin, as the relevant authentication class is indicated by the
-        <literal>&lt;authenticator&gt;</literal> setting</para>
-      </sect1>
-
-      <sect1 id="ca-tomcat">
-        <title>Tomcat</title>
-
-        <para>The following was tested with Jakarta Tomcat 4.1.30 and
-        5.0.19.</para>
-
-        <para><literal>$CATALINA_HOME</literal> refers to the root of your
-        Catalina (Tomcat) installation.</para>
-
-        <para>Edit your <literal>$CATALINA_HOME/conf/server.xml</literal> file
-        so the <literal>&lt;Engine&gt;</literal> section contains only one
-        active <literal>&lt;Realm&gt;</literal> entry. An example realm
-        entry:</para>
-
-        <para><programlisting>      &lt;Realm className="org.acegisecurity.adapters.catalina.CatalinaAcegiUserRealm"
-             appContextLocation="conf/acegisecurity.xml"
-             key="my_password" /&gt;</programlisting></para>
-
-        <para>Be sure to remove any other <literal>&lt;Realm&gt;</literal>
-        entry from your <literal>&lt;Engine&gt;</literal> section.</para>
-
-        <para>Copy <literal>acegisecurity.xml</literal> into
-        <literal>$CATALINA_HOME/conf</literal>.</para>
-
-        <para>Copy <literal>acegi-security-catalina-XX.jar</literal> into
-        <literal>$CATALINA_HOME/server/lib</literal>.</para>
-
-        <para>Copy the following files into
-        <literal>$CATALINA_HOME/common/lib</literal>:</para>
-
-        <itemizedlist>
-          <listitem>
-            <para><literal>aopalliance.jar</literal></para>
-          </listitem>
-
-          <listitem>
-            <para><literal>spring.jar</literal></para>
-          </listitem>
-
-          <listitem>
-            <para><literal>commons-codec.jar</literal></para>
-          </listitem>
-
-          <listitem>
-            <para><literal>burlap.jar</literal></para>
-          </listitem>
-
-          <listitem>
-            <para><literal>hessian.jar</literal></para>
-          </listitem>
-        </itemizedlist>
-
-        <para>None of the above JAR files (or
-        <literal>acegi-security-XX.jar</literal>) should be in your
-        application's <literal>WEB-INF/lib</literal>. The realm name indicated
-        in your <literal>web.xml</literal> does not matter with
-        Catalina.</para>
-
-        <para>We have received reports of problems using this Container
-        Adapter with Mac OS X. A work-around is to use a script such as
-        follows:</para>
-
-        <para><programlisting>#!/bin/sh
-export CATALINA_HOME="/Library/Tomcat"
-export JAVA_HOME="/Library/Java/Home"
-cd /
-$CATALINA_HOME/bin/startup.sh</programlisting></para>
-
-        <para>Finally, restart Tomcat.</para>
-      </sect1>
-    </chapter>
-  </part>
-
-  <part id="authorization">
-    <title>Authorization</title>
-
-    <partintro>
-      <para>The advanced authorization capabilities within Acegi Security
-      represent one of the most compelling reasons for its popularity.
-      Irrespective of how you choose to authenticate - whether using an Acegi
-      Security-provided mechanism and provider, or integrating with a
-      container or other non-Acegi Security authentication authority - you
-      will find the authorization services can be used within your application
-      in a consistent and simple way.</para>
-
-      <para>In this part we'll explore the different
-      <literal>AbstractSecurityInterceptor</literal> implementations, which
-      were introduced in Part I. We then move on to explore how to fine-tune
-      authorization through use of domain access control lists.</para>
-    </partintro>
-
-    <chapter id="authorization-common">
-      <title>Common Authorization Concepts</title>
-
-      <sect1 id="authorities">
-        <title>Authorities</title>
-
-        <para>As briefly mentioned in the Authentication section, all
-        <literal>Authentication</literal> implementations are required to
-        store an array of <literal>GrantedAuthority</literal> objects. These
-        represent the authorities that have been granted to the principal. The
-        <literal>GrantedAuthority</literal> objects are inserted into the
-        <literal>Authentication</literal> object by the
-        <literal>AuthenticationManager</literal> and are later read by
-        <literal>AccessDecisionManager</literal>s when making authorization
-        decisions.</para>
-
-        <para><literal>GrantedAuthority</literal> is an interface with only
-        one method:</para>
-
-        <para><programlisting>public String getAuthority();</programlisting></para>
-
-        <para>This method allows <literal>AccessDecisionManager</literal>s to
-        obtain a precise <literal>String</literal> representation of the
-        <literal>GrantedAuthority</literal>. By returning a representation as
-        a <literal>String</literal>, a <literal>GrantedAuthority</literal> can
-        be easily "read" by most <literal>AccessDecisionManager</literal>s. If
-        a <literal>GrantedAuthority</literal> cannot be precisely represented
-        as a <literal>String</literal>, the
-        <literal>GrantedAuthority</literal> is considered "complex" and
-        <literal>getAuthority()</literal> must return
-        <literal>null</literal>.</para>
-
-        <para>An example of a "complex" <literal>GrantedAuthority</literal>
-        would be an implementation that stores a list of operations and
-        authority thresholds that apply to different customer account numbers.
-        Representing this complex <literal>GrantedAuthority</literal> as a
-        <literal>String</literal> would be quite complex, and as a result the
-        <literal>getAuthority()</literal> method should return
-        <literal>null</literal>. This will indicate to any
-        <literal>AccessDecisionManager</literal> that it will need to
-        specifically support the <literal>GrantedAuthority</literal>
-        implementation in order to understand its contents.</para>
-
-        <para>Acegi Security includes one concrete
-        <literal>GrantedAuthority</literal> implementation,
-        <literal>GrantedAuthorityImpl</literal>. This allows any
-        user-specified <literal>String</literal> to be converted into a
-        <literal>GrantedAuthority</literal>. All
-        <literal>AuthenticationProvider</literal>s included with the security
-        architecture use <literal>GrantedAuthorityImpl</literal> to populate
-        the <literal>Authentication</literal> object.</para>
-      </sect1>
-
-      <sect1 id="pre-invocation">
-        <title>Pre-Invocation Handling</title>
-
-        <para>The <literal>AccessDecisionManager</literal> is called by the
-        <literal>AbstractSecurityInterceptor</literal> and is responsible for
-        making final access control decisions. The
-        <literal>AccessDecisionManager</literal> interface contains three
-        methods:</para>
-
-        <para><programlisting>public void decide(Authentication authentication, Object object, ConfigAttributeDefinition config) throws AccessDeniedException;
-public boolean supports(ConfigAttribute attribute);
-public boolean supports(Class clazz);</programlisting></para>
-
-        <para>As can be seen from the first method, the
-        <literal>AccessDecisionManager</literal> is passed via method
-        parameters all information that is likely to be of value in assessing
-        an authorization decision. In particular, passing the secure
-        <literal>Object</literal> enables those arguments contained in the
-        actual secure object invocation to be inspected. For example, let's
-        assume the secure object was a <literal>MethodInvocation</literal>. It
-        would be easy to query the <literal>MethodInvocation</literal> for any
-        <literal>Customer</literal> argument, and then implement some sort of
-        security logic in the <literal>AccessDecisionManager</literal> to
-        ensure the principal is permitted to operate on that customer.
-        Implementations are expected to throw an
-        <literal>AccessDeniedException</literal> if access is denied.</para>
-
-        <para>The <literal>supports(ConfigAttribute)</literal> method is
-        called by the <literal>AbstractSecurityInterceptor</literal> at
-        startup time to determine if the
-        <literal>AccessDecisionManager</literal> can process the passed
-        <literal>ConfigAttribute</literal>. The
-        <literal>supports(Class)</literal> method is called by a security
-        interceptor implementation to ensure the configured
-        <literal>AccessDecisionManager</literal> supports the type of secure
-        object that the security interceptor will present.</para>
-
-        <para>Whilst users can implement their own
-        <literal>AccessDecisionManager</literal> to control all aspects of
-        authorization, Acegi Security includes several
-        <literal>AccessDecisionManager</literal> implementations that are
-        based on voting. Figure 4 illustrates the relevant classes.</para>
-
-        <para><mediaobject>
-            <imageobject role="html">
-              <imagedata align="center"
-                         fileref="images/AccessDecisionVoting.gif"
-                         format="GIF" />
-            </imageobject>
-
-            <caption>
-              <para>Figure 4: Voting Decision Manager</para>
-            </caption>
-          </mediaobject></para>
-
-        <para>Using this approach, a series of
-        <literal>AccessDecisionVoter</literal> implementations are polled on
-        an authorization decision. The
-        <literal>AccessDecisionManager</literal> then decides whether or not
-        to throw an <literal>AccessDeniedException</literal> based on its
-        assessment of the votes.</para>
-
-        <para>The <literal>AccessDecisionVoter</literal> interface has three
-        methods:</para>
-
-        <para><programlisting>public int vote(Authentication authentication, Object object, ConfigAttributeDefinition config);
-public boolean supports(ConfigAttribute attribute);
-public boolean supports(Class clazz);</programlisting></para>
-
-        <para>Concrete implementations return an <literal>int</literal>, with
-        possible values being reflected in the
-        <literal>AccessDecisionVoter</literal> static fields
-        <literal>ACCESS_ABSTAIN</literal>, <literal>ACCESS_DENIED</literal>
-        and <literal>ACCESS_GRANTED</literal>. A voting implementation will
-        return <literal>ACCESS_ABSTAIN</literal> if it has no opinion on an
-        authorization decision. If it does have an opinion, it must return
-        either <literal>ACCESS_DENIED</literal> or
-        <literal>ACCESS_GRANTED</literal>.</para>
-
-        <para>There are three concrete
-        <literal>AccessDecisionManager</literal>s provided with Acegi Security
-        that tally the votes. The <literal>ConsensusBased</literal>
-        implementation will grant or deny access based on the consensus of
-        non-abstain votes. Properties are provided to control behavior in the
-        event of an equality of votes or if all votes are abstain. The
-        <literal>AffirmativeBased</literal> implementation will grant access
-        if one or more <literal>ACCESS_GRANTED</literal> votes were received
-        (ie a deny vote will be ignored, provided there was at least one grant
-        vote). Like the <literal>ConsensusBased</literal> implementation,
-        there is a parameter that controls the behavior if all voters abstain.
-        The <literal>UnanimousBased</literal> provider expects unanimous
-        <literal>ACCESS_GRANTED</literal> votes in order to grant access,
-        ignoring abstains. It will deny access if there is any
-        <literal>ACCESS_DENIED</literal> vote. Like the other implementations,
-        there is a parameter that controls the behaviour if all voters
-        abstain.</para>
-
-        <para>It is possible to implement a custom
-        <literal>AccessDecisionManager</literal> that tallies votes
-        differently. For example, votes from a particular
-        <literal>AccessDecisionVoter</literal> might receive additional
-        weighting, whilst a deny vote from a particular voter may have a veto
-        effect.</para>
-
-        <para>There are two concrete <literal>AccessDecisionVoter</literal>
-        implementations provided with Acegi Security. The
-        <literal>RoleVoter</literal> class will vote if any ConfigAttribute
-        begins with <literal>ROLE_</literal>. It will vote to grant access if
-        there is a <literal>GrantedAuthority</literal> which returns a
-        <literal>String</literal> representation (via the
-        <literal>getAuthority()</literal> method) exactly equal to one or more
-        <literal>ConfigAttributes</literal> starting with
-        <literal>ROLE_</literal>. If there is no exact match of any
-        <literal>ConfigAttribute</literal> starting with
-        <literal>ROLE_</literal>, the <literal>RoleVoter</literal> will vote
-        to deny access. If no <literal>ConfigAttribute</literal> begins with
-        <literal>ROLE_</literal>, the voter will abstain.
-        <literal>RoleVoter</literal> is case sensitive on comparisons as well
-        as the <literal>ROLE_</literal> prefix.</para>
-
-        <para><literal>BasicAclEntryVoter</literal> is the other concrete
-        voter included with Acegi Security. It integrates with Acegi
-        Security's <literal>AclManager</literal> (discussed later). This voter
-        is designed to have multiple instances in the same application
-        context, such as:</para>
-
-        <para><programlisting>&lt;bean id="aclContactReadVoter" class="org.acegisecurity.vote.BasicAclEntryVoter"&gt;
-  &lt;property name="processConfigAttribute"&gt;&lt;value&gt;ACL_CONTACT_READ&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="processDomainObjectClass"&gt;&lt;value&gt;sample.contact.Contact&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="aclManager"&gt;&lt;ref local="aclManager"/&gt;&lt;/property&gt;
-  &lt;property name="requirePermission"&gt;
-    &lt;list&gt;
-      &lt;ref local="org.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/&gt;
-      &lt;ref local="org.acegisecurity.acl.basic.SimpleAclEntry.READ"/&gt;
-    &lt;/list&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="aclContactDeleteVoter" class="org.acegisecurity.vote.BasicAclEntryVoter"&gt;
-  &lt;property name="processConfigAttribute"&gt;&lt;value&gt;ACL_CONTACT_DELETE&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="processDomainObjectClass"&gt;&lt;value&gt;sample.contact.Contact&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="aclManager"&gt;&lt;ref local="aclManager"/&gt;&lt;/property&gt;
-  &lt;property name="requirePermission"&gt;
-    &lt;list&gt;
-      &lt;ref local="org.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/&gt;
-      &lt;ref local="org.acegisecurity.acl.basic.SimpleAclEntry.DELETE"/&gt;
-    &lt;/list&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;        </programlisting></para>
-
-        <para>In the above example, you'd define
-        <literal>ACL_CONTACT_READ</literal> or
-        <literal>ACL_CONTACT_DELETE</literal> against some methods on a
-        <literal>MethodSecurityInterceptor</literal> or
-        <literal>AspectJSecurityInterceptor</literal>. When those methods are
-        invoked, the above applicable voter defined above would vote to grant
-        or deny access. The voter would look at the method invocation to
-        locate the first argument of type
-        <literal>sample.contact.Contact</literal>, and then pass that
-        <literal>Contact</literal> to the <literal>AclManager</literal>. The
-        <literal>AclManager</literal> will then return an access control list
-        (ACL) that applies to the current <literal>Authentication</literal>.
-        Assuming that ACL contains one of the listed
-        <literal>requirePermission</literal>s, the voter will vote to grant
-        access. If the ACL does not contain one of the permissions defined
-        against the voter, the voter will vote to deny access.
-        <literal>BasicAclEntryVoter</literal> is an important class as it
-        allows you to build truly complex applications with domain object
-        security entirely defined in the application context. If you're
-        interested in learning more about Acegi Security's ACL capabilities
-        and how best to apply them, please see the ACL and "After Invocation"
-        sections of this reference guide, and the Contacts sample
-        application.</para>
-
-        <para>It is also possible to implement a custom
-        <literal>AccessDecisionVoter</literal>. Several examples are provided
-        in Acegi Security unit tests, including
-        <literal>ContactSecurityVoter</literal> and
-        <literal>DenyVoter</literal>. The
-        <literal>ContactSecurityVoter</literal> abstains from voting decisions
-        where a <literal>CONTACT_OWNED_BY_CURRENT_USER</literal>
-        <literal>ConfigAttribute</literal> is not found. If voting, it queries
-        the <literal>MethodInvocation</literal> to extract the owner of the
-        <literal>Contact</literal> object that is subject of the method call.
-        It votes to grant access if the <literal>Contact</literal> owner
-        matches the principal presented in the
-        <literal>Authentication</literal> object. It could have just as easily
-        compared the <literal>Contact</literal> owner with some
-        <literal>GrantedAuthority</literal> the
-        <literal>Authentication</literal> object presented. All of this is
-        achieved with relatively few lines of code and demonstrates the
-        flexibility of the authorization model.</para>
-
-        <para>TODO: Remove references to the old ACL package when it's
-        deprecated, and have all references to the replacement package limited
-        to the chapter describing the new ACL implementation.</para>
-      </sect1>
-
-      <sect1 id="after-invocation">
-        <title>After Invocation Handling</title>
-
-        <para>Whilst the <literal>AccessDecisionManager</literal> is called by
-        the <literal>AbstractSecurityInterceptor</literal> before proceeding
-        with the secure object invocation, some applications need a way of
-        modifying the object actually returned by the secure object
-        invocation. Whilst you could easily implement your own AOP concern to
-        achieve this, Acegi Security provides a convenient hook that has
-        several concrete implementations that integrate with its ACL
-        capabilities.</para>
-
-        <para>Figure 5 illustrates Acegi Security's
-        <literal>AfterInvocationManager</literal> and its concrete
-        implementations.</para>
-
-        <para><mediaobject>
-            <imageobject role="html">
-              <imagedata align="center" fileref="images/AfterInvocation.gif"
-                         format="GIF" />
-            </imageobject>
-
-            <caption>
-              <para>Figure 5: After Invocation Implementation</para>
-            </caption>
-          </mediaobject></para>
-
-        <para>Like many other parts of Acegi Security,
-        <literal>AfterInvocationManager</literal> has a single concrete
-        implementation, <literal>AfterInvocationProvider</literal>, which
-        polls a list of <literal>AfterInvocationProvider</literal>s. Each
-        <literal>AfterInvocationProvider</literal> is allowed to modify the
-        return object or throw an <literal>AccessDeniedException</literal>.
-        Indeed multiple providers can modify the object, as the result of the
-        previous provider is passed to the next in the list. Let's now
-        consider our ACL-aware implementations of
-        <literal>AfterInvocationProvider</literal>.</para>
-
-        <para>Please be aware that if you're using
-        <literal>AfterInvocationManager</literal>, you will still need
-        configuration attributes that allow the
-        <literal>MethodSecurityInterceptor</literal>'s
-        <literal>AccessDecisionManager</literal> to allow an operation. If
-        you're using the typical Acegi Security included
-        <literal>AccessDecisionManager</literal> implementations, having no
-        configuration attributes defined for a particular secure method
-        invocation will cause each <literal>AccessDecisionVoter</literal> to
-        abstain from voting. In turn, if the
-        <literal>AccessDecisionManager</literal> property
-        "<literal>allowIfAllAbstainDecisions</literal>" is
-        <literal>false</literal>, an <literal>AccessDeniedException</literal>
-        will be thrown. You may avoid this potential issue by either (i)
-        setting "<literal>allowIfAllAbstainDecisions</literal>" to
-        <literal>true</literal> (although this is generally not recommended)
-        or (ii) simply ensure that there is at least one configuration
-        attribute that an <literal>AccessDecisionVoter</literal> will vote to
-        grant access for. This latter (recommended) approach is usually
-        achieved through a <literal>ROLE_USER</literal> or
-        <literal>ROLE_AUTHENTICATED</literal> configuration attribute</para>
-
-        <sect2 id="after-invocation-acl-aware">
-          <title>ACL-Aware AfterInvocationProviders</title>
-
-          <para>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
-          <literal>org.acegisecurity.acls</literal> package, with the old ACL
-          module under <literal>org.acegisecurity.acl</literal>. 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.</para>
-
-          <para>A common services layer method we've all written at one stage
-          or another looks like this:</para>
-
-          <para><programlisting>public Contact getById(Integer id);</programlisting></para>
-
-          <para>Quite often, only principals with permission to read the
-          <literal>Contact</literal> should be allowed to obtain it. In this
-          situation the <literal>AccessDecisionManager</literal> approach
-          provided by the <literal>AbstractSecurityInterceptor</literal> will
-          not suffice. This is because the identity of the
-          <literal>Contact</literal> is all that is available before the
-          secure object is invoked. The
-          <literal>AclAfterInvocationProvider</literal> delivers a solution,
-          and is configured as follows:</para>
-
-          <para><programlisting>&lt;bean id="afterAclRead" class="org.acegisecurity.afterinvocation.AclEntryAfterInvocationProvider"&gt;
-  &lt;constructor-arg&gt;
-    &lt;ref bean="aclService"/&gt;
-  &lt;/constructor-arg&gt;
-  &lt;constructor-arg&gt;
-    &lt;list&gt;
-      &lt;ref local="org.acegisecurity.acls.domain.BasePermission.ADMINISTRATION"/&gt;
-      &lt;ref local="org.acegisecurity.acls.domain.BasePermission.READ"/&gt;
-    &lt;/list&gt;
-  &lt;/constructor-arg&gt;
-&lt;/bean&gt;      </programlisting></para>
-
-          <para>In the above example, the <literal>Contact</literal> will be
-          retrieved and passed to the
-          <literal>AclEntryAfterInvocationProvider</literal>. The provider
-          will thrown an <literal>AccessDeniedException</literal> if one of
-          the listed <literal>requirePermission</literal>s is not held by the
-          <literal>Authentication</literal>. The
-          <literal>AclEntryAfterInvocationProvider</literal> queries the
-          <literal>Acl</literal>Service to determine the ACL that applies for
-          this domain object to this <literal>Authentication</literal>.</para>
-
-          <para>Similar to the
-          <literal>AclEntryAfterInvocationProvider</literal> is
-          <literal>AclEntryAfterInvocationCollectionFilteringProvider</literal>.
-          It is designed to remove <literal>Collection</literal> or array
-          elements for which a principal does not have access. It never thrown
-          an <literal>AccessDeniedException</literal> - simply silently
-          removes the offending elements. The provider is configured as
-          follows:</para>
-
-          <para><programlisting>&lt;bean id="afterAclCollectionRead" class="org.acegisecurity.afterinvocation.AclEntryAfterInvocationCollectionFilteringProvider"&gt;
-  &lt;constructor-arg&gt;
-    &lt;ref bean="aclService"/&gt;
-  &lt;/constructor-arg&gt;
-  &lt;constructor-arg&gt;
-    &lt;list&gt;
-      &lt;ref local="org.acegisecurity.acls.domain.BasePermission.ADMINISTRATION"/&gt;
-      &lt;ref local="org.acegisecurity.acls.domain.BasePermission.READ"/&gt;
-    &lt;/list&gt;
-  &lt;/constructor-arg&gt;
-&lt;/bean&gt;    </programlisting></para>
-
-          <para>As you can imagine, the returned <literal>Object</literal>
-          must be a <literal>Collection</literal> or array for this provider
-          to operate. It will remove any element if the
-          <literal>AclManager</literal> indicates the
-          <literal>Authentication</literal> does not hold one of the listed
-          <literal>requirePermission</literal>s.</para>
-
-          <para>The Contacts sample application demonstrates these two
-          <literal>AfterInvocationProvider</literal>s.</para>
-        </sect2>
-
-        <sect2 id="after-invocation-acl-aware-old">
-          <title>ACL-Aware AfterInvocationProviders (old ACL module)</title>
-
-          <para>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
-          <literal>org.acegisecurity.acls</literal> package, with the old ACL
-          module under <literal>org.acegisecurity.acl</literal>. 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.</para>
-
-          <para>A common services layer method we've all written at one stage
-          or another looks like this:</para>
-
-          <para><programlisting>public Contact getById(Integer id);</programlisting></para>
-
-          <para>Quite often, only principals with permission to read the
-          <literal>Contact</literal> should be allowed to obtain it. In this
-          situation the <literal>AccessDecisionManager</literal> approach
-          provided by the <literal>AbstractSecurityInterceptor</literal> will
-          not suffice. This is because the identity of the
-          <literal>Contact</literal> is all that is available before the
-          secure object is invoked. The
-          <literal>BasicAclAfterInvocationProvider</literal> delivers a
-          solution, and is configured as follows:</para>
-
-          <para><programlisting>&lt;bean id="afterAclRead" class="org.acegisecurity.afterinvocation.BasicAclEntryAfterInvocationProvider"&gt;
-  &lt;property name="aclManager"&gt;&lt;ref local="aclManager"/&gt;&lt;/property&gt;
-  &lt;property name="requirePermission"&gt;
-    &lt;list&gt;
-      &lt;ref local="org.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/&gt;
-      &lt;ref local="org.acegisecurity.acl.basic.SimpleAclEntry.READ"/&gt;
-    &lt;/list&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;       </programlisting></para>
-
-          <para>In the above example, the <literal>Contact</literal> will be
-          retrieved and passed to the
-          <literal>BasicAclEntryAfterInvocationProvider</literal>. The
-          provider will thrown an <literal>AccessDeniedException</literal> if
-          one of the listed <literal>requirePermission</literal>s is not held
-          by the <literal>Authentication</literal>. The
-          <literal>BasicAclEntryAfterInvocationProvider</literal> queries the
-          <literal>AclManager</literal> to determine the ACL that applies for
-          this domain object to this <literal>Authentication</literal>.</para>
-
-          <para>Similar to the
-          <literal>BasicAclEntryAfterInvocationProvider</literal> is
-          <literal>BasicAclEntryAfterInvocationCollectionFilteringProvider</literal>.
-          It is designed to remove <literal>Collection</literal> or array
-          elements for which a principal does not have access. It never thrown
-          an <literal>AccessDeniedException</literal> - simply silently
-          removes the offending elements. The provider is configured as
-          follows:</para>
-
-          <para><programlisting>&lt;bean id="afterAclCollectionRead" class="org.acegisecurity.afterinvocation.BasicAclEntryAfterInvocationCollectionFilteringProvider"&gt;
-  &lt;property name="aclManager"&gt;&lt;ref local="aclManager"/&gt;&lt;/property&gt;
-  &lt;property name="requirePermission"&gt;
-    &lt;list&gt;
-      &lt;ref local="org.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/&gt;
-      &lt;ref local="org.acegisecurity.acl.basic.SimpleAclEntry.READ"/&gt;
-    &lt;/list&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;       </programlisting></para>
-
-          <para>As you can imagine, the returned <literal>Object</literal>
-          must be a <literal>Collection</literal> or array for this provider
-          to operate. It will remove any element if the
-          <literal>AclManager</literal> indicates the
-          <literal>Authentication</literal> does not hold one of the listed
-          <literal>requirePermission</literal>s.</para>
-
-          <para>The Contacts sample application demonstrates these two
-          <literal>AfterInvocationProvider</literal>s.</para>
-        </sect2>
-      </sect1>
-
-      <sect1 id="authorization-taglibs">
-        <title>Authorization Tag Libraries</title>
-
-        <para><literal>AuthorizeTag</literal> is used to include content if
-        the current principal holds certain
-        <literal>GrantedAuthority</literal>s.</para>
-
-        <para>The following JSP fragment illustrates how to use the
-        <literal>AuthorizeTag</literal>:</para>
-
-        <para><programlisting>&lt;authz:authorize ifAllGranted="ROLE_SUPERVISOR"&gt;
-  &lt;td&gt;
-    &lt;A HREF="del.htm?id=&lt;c:out value="${contact.id}"/&gt;"&gt;Del&lt;/A&gt;
-  &lt;/td&gt;
-&lt;/authz:authorize&gt;          </programlisting></para>
-
-        <para>This tag would cause the tag's body to be output if the
-        principal has been granted ROLE_SUPERVISOR.</para>
-
-        <para>The <literal>authz:authorize</literal> tag declares the
-        following attributes:</para>
-
-        <para><itemizedlist spacing="compact">
-            <listitem>
-              <para><literal>ifAllGranted</literal>: All the listed roles must
-              be granted for the tag to output its body.</para>
-            </listitem>
-
-            <listitem>
-              <para><literal>ifAnyGranted</literal>: Any of the listed roles
-              must be granted for the tag to output its body.</para>
-            </listitem>
-
-            <listitem>
-              <para><literal>ifNotGranted</literal>: None of the listed roles
-              must be granted for the tag to output its body.</para>
-            </listitem>
-          </itemizedlist></para>
-
-        <para>You'll note that in each attribute you can list multiple roles.
-        Simply separate the roles using a comma. The
-        <literal>authorize</literal> tag ignores whitespace in
-        attributes.</para>
-
-        <para>The tag library logically ANDs all of it's parameters together.
-        This means that if you combine two or more attributes, all attributes
-        must be true for the tag to output it's body. Don't add an
-        <literal>ifAllGranted="ROLE_SUPERVISOR"</literal>, followed by an
-        <literal>ifNotGranted="ROLE_SUPERVISOR"</literal>, or you'll be
-        surprised to never see the tag's body.</para>
-
-        <para>By requiring all attributes to return true, the authorize tag
-        allows you to create more complex authorization scenarios. For
-        example, you could declare an
-        <literal>ifAllGranted="ROLE_SUPERVISOR"</literal> and an
-        <literal>ifNotGranted="ROLE_NEWBIE_SUPERVISOR"</literal> in the same
-        tag, in order to prevent new supervisors from seeing the tag body.
-        However it would no doubt be simpler to use
-        <literal>ifAllGranted="ROLE_EXPERIENCED_SUPERVISOR"</literal> rather
-        than inserting NOT conditions into your design.</para>
-
-        <para>One last item: the tag verifies the authorizations in a specific
-        order: first <literal>ifNotGranted</literal>, then
-        <literal>ifAllGranted</literal>, and finally, <literal>if
-        AnyGranted</literal>.</para>
-
-        <para><literal>AccessControlListTag</literal> is used to include
-        content if the current principal has an ACL to the indicated domain
-        object.</para>
-
-        <para>The following JSP fragment illustrates how to use the
-        <literal>AccessControlListTag</literal>:</para>
-
-        <para><programlisting>&lt;authz:accesscontrollist domainObject="${contact}" hasPermission="8,16"&gt;
-  &lt;td&gt;&lt;A HREF="&lt;c:url value="del.htm"&gt;&lt;c:param name="contactId" value="${contact.id}"/&gt;&lt;/c:url&gt;"&gt;Del&lt;/A&gt;&lt;/td&gt;
-&lt;/authz:accesscontrollist&gt;</programlisting></para>
-
-        <para>This tag would cause the tag's body to be output if the
-        principal holds either permission 16 or permission 1 for the "contact"
-        domain object. The numbers are actually integers that are used with
-        <literal>BasePermission</literal> bit masking. Please refer to the ACL
-        section of this reference guide to understand more about the ACL
-        capabilities of Acegi Security.</para>
-
-        <para><literal>AclTag</literal> is part of the old ACL module and
-        should be considered deprecated. For the sake of historical reference,
-        works exactly the samae as
-        <literal>AccessControlListTag</literal>.</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="secure-object-impls">
-      <title>Secure Object Implementations</title>
-
-      <sect1 id="aop-alliance">
-        <title>AOP Alliance (MethodInvocation) Security Interceptor</title>
-
-        <para>To secure <literal>MethodInvocation</literal>s, developers
-        simply add a properly configured
-        <literal>MethodSecurityInterceptor</literal> into the application
-        context. Next the beans requiring security are chained into the
-        interceptor. This chaining is accomplished using Spring’s
-        <literal>ProxyFactoryBean</literal> or
-        <literal>BeanNameAutoProxyCreator</literal>, as commonly used by many
-        other parts of Spring (refer to the sample application for examples).
-        Alternatively, Acegi Security provides a
-        <literal>MethodDefinitionSourceAdvisor</literal> which may be used
-        with Spring's <literal>DefaultAdvisorAutoProxyCreator</literal> to
-        automatically chain the security interceptor in front of any beans
-        defined against the <literal>MethodSecurityInterceptor</literal>. The
-        <literal>MethodSecurityInterceptor</literal> itself is configured as
-        follows:</para>
-
-        <programlisting>&lt;bean id="bankManagerSecurity" class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor"&gt;
-  &lt;property name="validateConfigAttributes"&gt;&lt;value&gt;true&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt;
-  &lt;property name="accessDecisionManager"&gt;&lt;ref bean="accessDecisionManager"/&gt;&lt;/property&gt;
-  &lt;property name="runAsManager"&gt;&lt;ref bean="runAsManager"/&gt;&lt;/property&gt;
-  &lt;property name="afterInvocationManager"&gt;&lt;ref bean="afterInvocationManager"/&gt;&lt;/property&gt;
-  &lt;property name="objectDefinitionSource"&gt;
-    &lt;value&gt;
-      org.acegisecurity.context.BankManager.delete*=ROLE_SUPERVISOR,RUN_AS_SERVER
-      org.acegisecurity.context.BankManager.getBalance=ROLE_TELLER,ROLE_SUPERVISOR,BANKSECURITY_CUSTOMER,RUN_AS_SERVER
-    &lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;        </programlisting>
-
-        <para>As shown above, the <literal>MethodSecurityInterceptor</literal>
-        is configured with a reference to an
-        <literal>AuthenticationManager</literal>,
-        <literal>AccessDecisionManager</literal> and
-        <literal>RunAsManager</literal>, which are each discussed in separate
-        sections below. In this case we've also defined an
-        <literal>AfterInvocationManager</literal>, although this is entirely
-        optional. The <literal>MethodSecurityInterceptor</literal> is also
-        configured with configuration attributes that apply to different
-        method signatures. A full discussion of configuration attributes is
-        provided in the High Level Design section of this document.</para>
-
-        <para>The <literal>MethodSecurityInterceptor</literal> can be
-        configured with configuration attributes in three ways. The first is
-        via a property editor and the application context, which is shown
-        above. The second is via defining the configuration attributes in your
-        source code using Jakarta Commons Attributes or Java 5 Annotations.
-        The third is via writing your own
-        <literal>ObjectDefinitionSource</literal>, although this is beyond the
-        scope of this document. Irrespective of the approach used, the
-        <literal>ObjectDefinitionSource</literal> is responsible for returning
-        a <literal>ConfigAttributeDefinition</literal> object that contains
-        all of the configuration attributes associated with a single secure
-        method.</para>
-
-        <para>It should be noted that the
-        <literal>MethodSecurityInterceptor.setObjectDefinitionSource()</literal>
-        method actually expects an instance of
-        <literal>MethodDefinitionSource</literal>. This is a marker interface
-        which subclasses <literal>ObjectDefinitionSource</literal>. It simply
-        denotes the <literal>ObjectDefinitionSource</literal> understands
-        <literal>MethodInvocation</literal>s. In the interests of simplicity
-        we'll continue to refer to the
-        <literal>MethodDefinitionSource</literal> as an
-        <literal>ObjectDefinitionSource</literal>, as the distinction is of
-        little relevance to most users of the
-        <literal>MethodSecurityInterceptor</literal>.</para>
-
-        <para>If using the application context property editor approach (as
-        shown above), commas are used to delimit the different configuration
-        attributes that apply to a given method pattern. Each configuration
-        attribute is assigned into its own <literal>SecurityConfig</literal>
-        object. The <literal>SecurityConfig</literal> object is discussed in
-        the High Level Design section.</para>
-
-        <para>If you are using the Jakarta Commons Attributes approach, your
-        bean context will be configured differently:</para>
-
-        <programlisting>&lt;bean id="attributes" class="org.springframework.metadata.commons.CommonsAttributes"/&gt;
-&lt;bean id="objectDefinitionSource" class="org.acegisecurity.intercept.method.MethodDefinitionAttributes"&gt;
-  &lt;property name="attributes"&gt;&lt;ref local="attributes"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="bankManagerSecurity" class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor"&gt;
-  &lt;property name="validateConfigAttributes"&gt;&lt;value&gt;false&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt;
-  &lt;property name="accessDecisionManager"&gt;&lt;ref bean="accessDecisionManager"/&gt;&lt;/property&gt;
-  &lt;property name="runAsManager"&gt;&lt;ref bean="runAsManager"/&gt;&lt;/property&gt;
-  &lt;property name="objectDefinitionSource"&gt;&lt;ref bean="objectDefinitionSource"/&gt;&lt;/property&gt;
-&lt;/bean&gt;       </programlisting>
-
-        <para>In addition, your source code will contain Jakarta Commons
-        Attributes tags that refer to a concrete implementation of
-        <literal>ConfigAttribute</literal>. The following example uses the
-        <literal>SecurityConfig</literal> implementation to represent the
-        configuration attributes, and results in the same security
-        configuration as provided by the property editor approach
-        above:</para>
-
-        <programlisting>public interface BankManager {
-
-    /**
-     * @@SecurityConfig("ROLE_SUPERVISOR")
-     * @@SecurityConfig("RUN_AS_SERVER")
-     */
-    public void deleteSomething(int id);
-
-    /**
-     * @@SecurityConfig("ROLE_SUPERVISOR")
-     * @@SecurityConfig("RUN_AS_SERVER")
-     */
-    public void deleteAnother(int id);
-
-    /**
-     * @@SecurityConfig("ROLE_TELLER")
-     * @@SecurityConfig("ROLE_SUPERVISOR")
-     * @@SecurityConfig("BANKSECURITY_CUSTOMER")
-     * @@SecurityConfig("RUN_AS_SERVER")
-     */
-    public float getBalance(int id);
-}</programlisting>
-
-        <para>If you are using the Acegi Security Java 5 Annotations approach,
-        your bean context will be configured as follows:</para>
-
-        <programlisting>&lt;bean id="attributes" class="org.acegisecurity.annotation.SecurityAnnotationAttributes"/&gt;
-&lt;bean id="objectDefinitionSource" class="org.acegisecurity.intercept.method.MethodDefinitionAttributes"&gt;
-  &lt;property name="attributes"&gt;&lt;ref local="attributes"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="bankManagerSecurity" class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor"&gt;
-  &lt;property name="validateConfigAttributes"&gt;&lt;value&gt;false&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt;
-  &lt;property name="accessDecisionManager"&gt;&lt;ref bean="accessDecisionManager"/&gt;&lt;/property&gt;
-  &lt;property name="runAsManager"&gt;&lt;ref bean="runAsManager"/&gt;&lt;/property&gt;
-  &lt;property name="objectDefinitionSource"&gt;&lt;ref bean="objectDefinitionSource"/&gt;&lt;/property&gt;
-&lt;/bean&gt;        </programlisting>
-
-        <para>In addition, your source code will contain Acegi Java 5 Security
-        Annotations that represent the <literal>ConfigAttribute</literal>. The
-        following example uses the <literal>@Secured</literal> annotations to
-        represent the configuration attributes, and results in the same
-        security configuration as provided by the property editor
-        approach:</para>
-
-        <programlisting>import org.acegisecurity.annotation.Secured;
-
-public interface BankManager {
-
-    /**
-     * Delete something
-     */
-    @Secured({"ROLE_SUPERVISOR","RUN_AS_SERVER" })
-    public void deleteSomething(int id);
-
-    /**
-     * Delete another
-     */
-    @Secured({"ROLE_SUPERVISOR","RUN_AS_SERVER" })
-    public void deleteAnother(int id);
-
-    /**
-     * Get balance
-     */
-    @Secured({"ROLE_TELLER","ROLE_SUPERVISOR","BANKSECURITY_CUSTOMER","RUN_AS_SERVER" })
-    public float getBalance(int id);
-}</programlisting>
-
-        <para>You might have noticed the
-        <literal>validateConfigAttributes</literal> property in the above
-        <literal>MethodSecurityInterceptor</literal> examples. When set to
-        <literal>true</literal> (the default), at startup time the
-        <literal>MethodSecurityInterceptor</literal> will evaluate if the
-        provided configuration attributes are valid. It does this by checking
-        each configuration attribute can be processed by either the
-        <literal>AccessDecisionManager</literal> or the
-        <literal>RunAsManager</literal>. If neither of these can process a
-        given configuration attribute, an exception is thrown. If using the
-        Jakarta Commons Attributes method of configuration, you should set
-        <literal>validateConfigAttributes</literal> to
-        <literal>false</literal>.</para>
-
-        <para>Please note that when using
-        <literal>BeanNameAutoProxyCreator</literal> to create the required
-        proxy for security, the configuration must contain the property
-        <literal>proxyTargetClass</literal> set to <literal>true</literal>.
-        Otherwise, the method passed to
-        <literal>MethodSecurityInterceptor.invoke</literal> is the proxy's
-        caller, not the proxy's target. Note that this introduces a
-        requirement on CGLIB. See an example of using
-        <literal>BeanNameAutoProxyCreator</literal> below:</para>
-
-        <programlisting>&lt;bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"&gt;
-  &lt;property name="interceptorNames"&gt;
-    &lt;list&gt;&lt;value&gt;methodSecurityInterceptor&lt;/value&gt;&lt;/list&gt;
-  &lt;/property&gt;
-  &lt;property name="beanNames"&gt;
-    &lt;list&gt;&lt;value&gt;targetObjectName&lt;/value&gt;&lt;/list&gt;
-  &lt;/property&gt;
-  &lt;property name="proxyTargetClass" value="true"/&gt;
-&lt;/bean&gt;        </programlisting>
-      </sect1>
-
-      <sect1 id="aspectj">
-        <title>AspectJ (JoinPoint) Security Interceptor</title>
-
-        <para>The AspectJ security interceptor is very similar to the AOP
-        Alliance security interceptor discussed in the previous section.
-        Indeed we will only discuss the differences in this section.</para>
-
-        <para>The AspectJ interceptor is named
-        <literal>AspectJSecurityInterceptor</literal>. Unlike the AOP Alliance
-        security interceptor, which relies on the Spring application context
-        to weave in the security interceptor via proxying, the
-        <literal>AspectJSecurityInterceptor</literal> is weaved in via the
-        AspectJ compiler. It would not be uncommon to use both types of
-        security interceptors in the same application, with
-        <literal>AspectJSecurityInterceptor</literal> being used for domain
-        object instance security and the AOP Alliance
-        <literal>MethodSecurityInterceptor</literal> being used for services
-        layer security.</para>
-
-        <para>Let's first consider how the
-        <literal>AspectJSecurityInterceptor</literal> is configured in the
-        Spring application context:</para>
-
-        <programlisting>&lt;bean id="bankManagerSecurity" class="org.acegisecurity.intercept.method.aspectj.AspectJSecurityInterceptor"&gt;
-  &lt;property name="validateConfigAttributes"&gt;&lt;value&gt;true&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt;
-  &lt;property name="accessDecisionManager"&gt;&lt;ref bean="accessDecisionManager"/&gt;&lt;/property&gt;
-  &lt;property name="runAsManager"&gt;&lt;ref bean="runAsManager"/&gt;&lt;/property&gt;
-  &lt;property name="afterInvocationManager"&gt;&lt;ref bean="afterInvocationManager"/&gt;&lt;/property&gt;
-  &lt;property name="objectDefinitionSource"&gt;
-    &lt;value&gt;
-      org.acegisecurity.context.BankManager.delete*=ROLE_SUPERVISOR,RUN_AS_SERVER
-      org.acegisecurity.context.BankManager.getBalance=ROLE_TELLER,ROLE_SUPERVISOR,BANKSECURITY_CUSTOMER,RUN_AS_SERVER
-    &lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;        </programlisting>
-
-        <para>As you can see, aside from the class name, the
-        <literal>AspectJSecurityInterceptor</literal> is exactly the same as
-        the AOP Alliance security interceptor. Indeed the two interceptors can
-        share the same <literal>objectDefinitionSource</literal>, as the
-        <literal>ObjectDefinitionSource</literal> works with
-        <literal>java.lang.reflect.Method</literal>s rather than an AOP
-        library-specific class. Of course, your access decisions have access
-        to the relevant AOP library-specific invocation (ie
-        <literal>MethodInvocation</literal> or <literal>JoinPoint</literal>)
-        and as such can consider a range of addition criteria when making
-        access decisions (such as method arguments).</para>
-
-        <para>Next you'll need to define an AspectJ <literal>aspect</literal>.
-        For example:</para>
-
-        <programlisting>package org.acegisecurity.samples.aspectj;
-
-import org.acegisecurity.intercept.method.aspectj.AspectJSecurityInterceptor;
-import org.acegisecurity.intercept.method.aspectj.AspectJCallback;
-import org.springframework.beans.factory.InitializingBean;
-
-public aspect DomainObjectInstanceSecurityAspect implements InitializingBean {
-
-  private AspectJSecurityInterceptor securityInterceptor;
-
-  pointcut domainObjectInstanceExecution(): target(PersistableEntity) 
-             &amp;&amp; execution(public * *(..)) &amp;&amp; !within(DomainObjectInstanceSecurityAspect);
-
-  Object around(): domainObjectInstanceExecution() {
-    if (this.securityInterceptor != null) {
-      AspectJCallback callback = new AspectJCallback() {
-        public Object proceedWithObject() {
-        return proceed();
-      }
-    };
-    return this.securityInterceptor.invoke(thisJoinPoint, callback);
-    } else {
-      return proceed();
-    }
-  }
-
-  public AspectJSecurityInterceptor getSecurityInterceptor() {
-    return securityInterceptor;
-  }
-
-  public void setSecurityInterceptor(AspectJSecurityInterceptor securityInterceptor) {
-    this.securityInterceptor = securityInterceptor;
-  }
-
-  public void afterPropertiesSet() throws Exception {
-    if (this.securityInterceptor == null)
-      throw new IllegalArgumentException("securityInterceptor required");
-  }
-}</programlisting>
-
-        <para>In the above example, the security interceptor will be applied
-        to every instance of <literal>PersistableEntity</literal>, which is an
-        abstract class not shown (you can use any other class or
-        <literal>pointcut</literal> expression you like). For those curious,
-        <literal>AspectJCallback</literal> is needed because the
-        <literal>proceed();</literal> statement has special meaning only
-        within an <literal>around()</literal> body. The
-        <literal>AspectJSecurityInterceptor</literal> calls this anonymous
-        <literal>AspectJCallback</literal> class when it wants the target
-        object to continue.</para>
-
-        <para>You will need to configure Spring to load the aspect and wire it
-        with the <literal>AspectJSecurityInterceptor</literal>. A bean
-        declaration which achieves this is shown below:</para>
-
-        <programlisting>
-&lt;bean id="domainObjectInstanceSecurityAspect" 
-    class="org.acegisecurity.samples.aspectj.DomainObjectInstanceSecurityAspect"
-    factory-method="aspectOf"&gt;
-  &lt;property name="securityInterceptor"&gt;&lt;ref bean="aspectJSecurityInterceptor"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-        </programlisting>
-
-        <para>That's it! Now you can create your beans from anywhere within
-        your application, using whatever means you think fit (eg <literal>new
-        Person();</literal>) and they will have the security interceptor
-        applied.</para>
-      </sect1>
-
-      <sect1 id="filter-invocation-authorization">
-        <title>FilterInvocation Security Interceptor</title>
-
-        <para>To secure <literal>FilterInvocation</literal>s, developers need
-        to add a filter to their <literal>web.xml</literal> that delegates to
-        the <literal>FilterSecurityInterceptor</literal>. A typical
-        configuration example is provided below:</para>
-
-        <programlisting>&lt;filter&gt;
-  &lt;filter-name&gt;Acegi HTTP Request Security Filter&lt;/filter-name&gt;
-  &lt;filter-class&gt;org.acegisecurity.util.FilterToBeanProxy&lt;/filter-class&gt;
-  &lt;init-param&gt;
-    &lt;param-name&gt;targetClass&lt;/param-name&gt;
-    &lt;param-value&gt;org.acegisecurity.intercept.web.FilterSecurityInterceptor&lt;/param-value&gt;
-  &lt;/init-param&gt;
-&lt;/filter&gt;
-
-&lt;filter-mapping&gt;
-  &lt;filter-name&gt;Acegi HTTP Request Security Filter&lt;/filter-name&gt;
-  &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
-&lt;/filter-mapping&gt;</programlisting>
-
-        <para>Notice that the filter is actually a
-        <literal>FilterToBeanProxy</literal>. Most of the filters used by
-        Acegi Security use this class. Refer to the Filters section to learn
-        more about this bean.</para>
-
-        <para>In the application context you will need to configure three
-        beans:</para>
-
-        <programlisting>&lt;bean id="exceptionTranslationFilter" class="org.acegisecurity.ui.ExceptionTranslationFilter"&gt;
-  &lt;property name="authenticationEntryPoint"&gt;&lt;ref local="authenticationEntryPoint"/&gt;&lt;/property&gt;
-&lt;/bean&gt;
-
-&lt;bean id="authenticationEntryPoint" class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint"&gt;
-  &lt;property name="loginFormUrl"&gt;&lt;value&gt;/acegilogin.jsp&lt;/value&gt;&lt;/property&gt;
-  &lt;property name="forceHttps"&gt;&lt;value&gt;false&lt;/value&gt;&lt;/property&gt;
-&lt;/bean&gt;
-      
-&lt;bean id="filterSecurityInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor"&gt;
-  &lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt;
-  &lt;property name="accessDecisionManager"&gt;&lt;ref bean="accessDecisionManager"/&gt;&lt;/property&gt;
-  &lt;property name="objectDefinitionSource"&gt;
-    &lt;value&gt;
-      CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
-      \A/secure/super/.*\Z=ROLE_WE_DONT_HAVE
-      \A/secure/.*\Z=ROLE_SUPERVISOR,ROLE_TELLER
-    &lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;        </programlisting>
-
-        <para>The <classname>ExceptionTranslationFilter</classname> provides
-        the bridge between Java exceptions and HTTP responses. It is solely
-        concerned with maintaining the user interface. This filter does not do
-        any actual security enforcement. If an
-        <exceptionname>AuthenticationException</exceptionname> is detected,
-        the filter will call the AuthenticationEntryPoint to commence the
-        authentication process (e.g. a user login).</para>
-
-        <para>The <literal>AuthenticationEntryPoint</literal> will be called
-        if the user requests a secure HTTP resource but they are not
-        authenticated. The class handles presenting the appropriate response
-        to the user so that authentication can begin. Three concrete
-        implementations are provided with Acegi Security:
-        <literal>AuthenticationProcessingFilterEntryPoint</literal> for
-        commencing a form-based authentication,
-        <literal>BasicProcessingFilterEntryPoint</literal> for commencing a
-        HTTP Basic authentication process, and
-        <literal>CasProcessingFilterEntryPoint</literal> for commencing a
-        JA-SIG Central Authentication Service (CAS) login. The
-        <literal>AuthenticationProcessingFilterEntryPoint</literal> and
-        <literal>CasProcessingFilterEntryPoint</literal> have optional
-        properties related to forcing the use of HTTPS, so please refer to the
-        JavaDocs if you require this.</para>
-
-        <para><literal>FilterSecurityInterceptor</literal> is responsible for
-        handling the security of HTTP resources. Like any other security
-        interceptor, it requires a reference to an
-        <literal>AuthenticationManager</literal> and an
-        <literal>AccessDecisionManager</literal>, which are both discussed in
-        separate sections below. The
-        <literal>FilterSecurityInterceptor</literal> is also configured with
-        configuration attributes that apply to different HTTP URL requests. A
-        full discussion of configuration attributes is provided in the High
-        Level Design section of this document.</para>
-
-        <para>The <literal>FilterSecurityInterceptor</literal> can be
-        configured with configuration attributes in two ways. The first is via
-        a property editor and the application context, which is shown above.
-        The second is via writing your own
-        <literal>ObjectDefinitionSource</literal>, although this is beyond the
-        scope of this document. Irrespective of the approach used, the
-        <literal>ObjectDefinitionSource</literal> is responsible for returning
-        a <literal>ConfigAttributeDefinition</literal> object that contains
-        all of the configuration attributes associated with a single secure
-        HTTP URL.</para>
-
-        <para>It should be noted that the
-        <literal>FilterSecurityInterceptor.setObjectDefinitionSource()</literal>
-        method actually expects an instance of
-        <literal>FilterInvocationDefinitionSource</literal>. This is a marker
-        interface which subclasses <literal>ObjectDefinitionSource</literal>.
-        It simply denotes the <literal>ObjectDefinitionSource</literal>
-        understands <literal>FilterInvocation</literal>s. In the interests of
-        simplicity we'll continue to refer to the
-        <literal>FilterInvocationDefinitionSource</literal> as an
-        <literal>ObjectDefinitionSource</literal>, as the distinction is of
-        little relevance to most users of the
-        <literal>FilterSecurityInterceptor</literal>.</para>
-
-        <para>If using the application context property editor approach (as
-        shown above), commas are used to delimit the different configuration
-        attributes that apply to each HTTP URL. Each configuration attribute
-        is assigned into its own <literal>SecurityConfig</literal> object. The
-        <literal>SecurityConfig</literal> object is discussed in the High
-        Level Design section. The <literal>ObjectDefinitionSource</literal>
-        created by the property editor,
-        <literal>FilterInvocationDefinitionSource</literal>, matches
-        configuration attributes against <literal>FilterInvocations</literal>
-        based on expression evaluation of the request URL. Two standard
-        expression syntaxes are supported. The default is to treat all
-        expressions as regular expressions. Alternatively, the presence of a
-        <literal>PATTERN_TYPE_APACHE_ANT</literal> directive will cause all
-        expressions to be treated as Apache Ant paths. It is not possible to
-        mix expression syntaxes within the same definition. For example, the
-        earlier configuration could be generated using Apache Ant paths as
-        follows:</para>
-
-        <programlisting>&lt;bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor"&gt;
-  &lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt;
-  &lt;property name="accessDecisionManager"&gt;&lt;ref bean="accessDecisionManager"/&gt;&lt;/property&gt;
-  &lt;property name="runAsManager"&gt;&lt;ref bean="runAsManager"/&gt;&lt;/property&gt;
-  &lt;property name="objectDefinitionSource"&gt;
-    &lt;value&gt;
-      CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
-      PATTERN_TYPE_APACHE_ANT
-      /secure/super/**=ROLE_WE_DONT_HAVE
-      /secure/**=ROLE_SUPERVISOR,ROLE_TELLER
-    &lt;/value&gt;
-  &lt;/property&gt;
-&lt;/bean&gt;        </programlisting>
-
-        <para>Irrespective of the type of expression syntax used, expressions
-        are always evaluated in the order they are defined. Thus it is
-        important that more specific expressions are defined higher in the
-        list than less specific expressions. This is reflected in our example
-        above, where the more specific <literal>/secure/super/</literal>
-        pattern appears higher than the less specific
-        <literal>/secure/</literal> pattern. If they were reversed, the
-        <literal>/secure/</literal> pattern would always match and the
-        <literal>/secure/super/</literal> pattern would never be
-        evaluated.</para>
-
-        <para>The special keyword
-        <literal>CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON</literal> causes
-        the <literal>FilterInvocationDefinitionSource</literal> to
-        automatically convert a request URL to lowercase before comparison
-        against the expressions. Whilst by default the case of the request URL
-        is not converted, it is generally recommended to use
-        <literal>CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON</literal> and
-        write each expression assuming lowercase.</para>
-
-        <para>As with other security interceptors, the
-        <literal>validateConfigAttributes</literal> property is observed. When
-        set to <literal>true</literal> (the default), at startup time the
-        <literal>FilterSecurityInterceptor</literal> will evaluate if the
-        provided configuration attributes are valid. It does this by checking
-        each configuration attribute can be processed by either the
-        <literal>AccessDecisionManager</literal> or the
-        <literal>RunAsManager</literal>. If neither of these can process a
-        given configuration attribute, an exception is thrown.</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="domain-acls">
-      <title>Domain Object Security</title>
-
-      <section id="domain-acls-overview">
-        <title>Overview</title>
-
-        <para>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
-        <literal>org.acegisecurity.acls</literal> package, with the old ACL
-        module under <literal>org.acegisecurity.acl</literal>. 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.</para>
-
-        <para>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
-        (<literal>Authentication</literal>), where
-        (<literal>MethodInvocation</literal>) and what
-        (<literal>SomeDomainObject</literal>). In other words, authorization
-        decisions also need to consider the actual domain object instance
-        subject of a method invocation.</para>
-
-        <para>Imagine you're designing an application for a pet clinic. There
-        will be two main groups of users of your Spring-based application:
-        staff of the pet clinic, as well as the pet clinic's customers. The
-        staff will have access to all of the data, whilst your customers will
-        only be able to see their own customer records. To make it a little
-        more interesting, your customers can allow other users to see their
-        customer records, such as their "puppy preschool "mentor or president
-        of their local "Pony Club". Using Acegi Security as the foundation,
-        you have several approaches that can be used:<orderedlist>
-            <listitem>
-              <para>Write your business methods to enforce the security. You
-              could consult a collection within the
-              <literal>Customer</literal> domain object instance to determine
-              which users have access. By using the
-              <literal>SecurityContextHolder.getContext().getAuthentication()</literal>,
-              you'll be able to access the <literal>Authentication</literal>
-              object.</para>
-            </listitem>
-
-            <listitem>
-              <para>Write an <literal>AccessDecisionVoter</literal> to enforce
-              the security from the <literal>GrantedAuthority[]</literal>s
-              stored in the <literal>Authentication</literal> object. This
-              would mean your <literal>AuthenticationManager</literal> would
-              need to populate the <literal>Authentication</literal> with
-              custom <literal>GrantedAuthority</literal>[]s representing each
-              of the <literal>Customer</literal> domain object instances the
-              principal has access to.</para>
-            </listitem>
-
-            <listitem>
-              <para>Write an <literal>AccessDecisionVoter</literal> to enforce
-              the security and open the target <literal>Customer</literal>
-              domain object directly. This would mean your voter needs access
-              to a DAO that allows it to retrieve the
-              <literal>Customer</literal> object. It would then access the
-              <literal>Customer</literal> object's collection of approved
-              users and make the appropriate decision.</para>
-            </listitem>
-          </orderedlist></para>
-
-        <para>Each one of these approaches is perfectly legitimate. However,
-        the first couples your authorization checking to your business code.
-        The main problems with this include the enhanced difficulty of unit
-        testing and the fact it would be more difficult to reuse the
-        <literal>Customer</literal> authorization logic elsewhere. Obtaining
-        the <literal>GrantedAuthority[]</literal>s from the
-        <literal>Authentication</literal> object is also fine, but will not
-        scale to large numbers of <literal>Customer</literal>s. If a user
-        might be able to access 5,000 <literal>Customer</literal>s (unlikely
-        in this case, but imagine if it were a popular vet for a large Pony
-        Club!) the amount of memory consumed and time required to construct
-        the <literal>Authentication</literal> object would be undesirable. The
-        final method, opening the <literal>Customer</literal> directly from
-        external code, is probably the best of the three. It achieves
-        separation of concerns, and doesn't misuse memory or CPU cycles, but
-        it is still inefficient in that both the
-        <literal>AccessDecisionVoter</literal> and the eventual business
-        method itself will perform a call to the DAO responsible for
-        retrieving the <literal>Customer</literal> object. Two accesses per
-        method invocation is clearly undesirable. In addition, with every
-        approach listed you'll need to write your own access control list
-        (ACL) persistence and business logic from scratch.</para>
-
-        <para>Fortunately, there is another alternative, which we'll talk
-        about below.</para>
-      </section>
-
-      <section id="domain-acls-key-concepts">
-        <title>Key Concepts</title>
-
-        <para>The org.acegisecurity.acls package should be consulted for its
-        major interfaces. The key interfaces are:</para>
-
-        <itemizedlist spacing="compact">
-          <listitem>
-            <para><literal>Acl</literal>: Every domain object has one and only
-            one <literal>Acl</literal> object, which internally holds the
-            <literal>AccessControlEntry</literal>s as well as knows the owner
-            of the <literal>Acl</literal>. An Acl does not refer directly to
-            the domain object, but instead to an
-            <literal>ObjectIdentity</literal>.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal><literal>AccessControlEntry</literal></literal>: An
-            Acl holds multiple <literal>AccessControlEntry</literal>s, which
-            are often abbreviated as ACEs in the framework. Each ACE refers to
-            a specific tuple of <literal>Permission</literal>,
-            <literal>Sid</literal> and <literal>Acl</literal>. An ACE can also
-            be granting or non-granting and contain audit settings.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>Permission</literal>: A permission represents an
-            immutable particular bit mask, and offers convenience functions
-            for bit masking and outputting information.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>Sid</literal>: The ACL module needs to refer to
-            principals and <literal>GrantedAuthority[]</literal>s. A level of
-            indirection is provided by the <literal>Sid</literal> interface.
-            Common classes include <literal>PrincipalSid</literal> (to
-            represent the principal inside an
-            <literal>Authentication</literal> object) and
-            <literal>GrantedAuthoritySid</literal>.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>ObjectIdentity</literal>: Each domain object is
-            represented internally within the ACL module by an
-            <literal>ObjectIdentity</literal>.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>AclService</literal>: Retrieves the
-            <literal>Acl</literal> applicable for a given
-            <literal>ObjectIdentity</literal>.</para>
-          </listitem>
-
-          <listitem>
-            <para><literal>MutableAclService</literal>: Allows a modified
-            <literal>Acl</literal> to be presented for persistence. It is not
-            essential to use this interface if you do not wish.</para>
-          </listitem>
-        </itemizedlist>
-
-        <para>The ACL module was based on extensive feedback from the user
-        community following real-world use of the original ACL module. This
-        feedback resulted in a rearchitecture of the ACL module to offer
-        significantly enhanced performance (particularly in the area of
-        database retrieval), significantly better encapsulation, higher
-        cohesion, and enhanced customisation points.</para>
-
-        <para>The Contacts Sample that ships with Acegi Security 1.0.3 offers
-        a demonstration of the new ACL module. Converting Contacts from using
-        the old module to the new module was relatively simple, and users of
-        the old ACL module will likely find their applications can be modified
-        with relatively little work.</para>
-
-        <para>We will document the new ACL module more fully with a subsequent
-        release. Please note that the new ACL module should be considered a
-        preview only (ie do not use in production without proper prior
-        testing), and there is a small chance there may be changes between
-        1.0.3 and 1.1.0 when it will become final. Nevertheless,
-        compatibility-affecting changes are considered quite unlikely,
-        especially given the module is already based on several years of
-        feedback from users of the original ACL module.</para>
-      </section>
-    </chapter>
-
-    <chapter id="domain-acls-old">
-      <title>Domain Object Security (old ACL module)</title>
-
-      <section id="domain-acls-overview-old">
-        <title>Overview</title>
-
-        <para>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
-        <literal>org.acegisecurity.acls</literal> package, with the old ACL
-        module under <literal>org.acegisecurity.acl</literal>. 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.</para>
-
-        <para>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
-        (<literal>Authentication</literal>), where
-        (<literal>MethodInvocation</literal>) and what
-        (<literal>SomeDomainObject</literal>). In other words, authorization
-        decisions also need to consider the actual domain object instance
-        subject of a method invocation.</para>
-
-        <para>Imagine you're designing an application for a pet clinic. There
-        will be two main groups of users of your Spring-based application:
-        staff of the pet clinic, as well as the pet clinic's customers. The
-        staff will have access to all of the data, whilst your customers will
-        only be able to see their own customer records. To make it a little
-        more interesting, your customers can allow other users to see their
-        customer records, such as their "puppy preschool "mentor or president
-        of their local "Pony Club". Using Acegi Security as the foundation,
-        you have several approaches that can be used:<orderedlist>
-            <listitem>
-              <para>Write your business methods to enforce the security. You
-              could consult a collection within the
-              <literal>Customer</literal> domain object instance to determine
-              which users have access. By using the
-              <literal>SecurityContextHolder.getContext().getAuthentication()</literal>,
-              you'll be able to access the <literal>Authentication</literal>
-              object.</para>
-            </listitem>
-
-            <listitem>
-              <para>Write an <literal>AccessDecisionVoter</literal> to enforce
-              the security from the <literal>GrantedAuthority[]</literal>s
-              stored in the <literal>Authentication</literal> object. This
-              would mean your <literal>AuthenticationManager</literal> would
-              need to populate the <literal>Authentication</literal> with
-              custom <literal>GrantedAuthority</literal>[]s representing each
-              of the <literal>Customer</literal> domain object instances the
-              principal has access to.</para>
-            </listitem>
-
-            <listitem>
-              <para>Write an <literal>AccessDecisionVoter</literal> to enforce
-              the security and open the target <literal>Customer</literal>
-              domain object directly. This would mean your voter needs access
-              to a DAO that allows it to retrieve the
-              <literal>Customer</literal> object. It would then access the
-              <literal>Customer</literal> object's collection of approved
-              users and make the appropriate decision.</para>
-            </listitem>
-          </orderedlist></para>
-
-        <para>Each one of these approaches is perfectly legitimate. However,
-        the first couples your authorization checking to your business code.
-        The main problems with this include the enhanced difficulty of unit
-        testing and the fact it would be more difficult to reuse the
-        <literal>Customer</literal> authorization logic elsewhere. Obtaining
-        the <literal>GrantedAuthority[]</literal>s from the
-        <literal>Authentication</literal> object is also fine, but will not
-        scale to large numbers of <literal>Customer</literal>s. If a user
-        might be able to access 5,000 <literal>Customer</literal>s (unlikely
-        in this case, but imagine if it were a popular vet for a large Pony
-        Club!) the amount of memory consumed and time required to construct
-        the <literal>Authentication</literal> object would be undesirable. The
-        final method, opening the <literal>Customer</literal> directly from
-        external code, is probably the best of the three. It achieves
-        separation of concerns, and doesn't misuse memory or CPU cycles, but
-        it is still inefficient in that both the
-        <literal>AccessDecisionVoter</literal> and the eventual business
-        method itself will perform a call to the DAO responsible for
-        retrieving the <literal>Customer</literal> object. Two accesses per
-        method invocation is clearly undesirable. In addition, with every
-        approach listed you'll need to write your own access control list
-        (ACL) persistence and business logic from scratch.</para>
-
-        <para>Fortunately, there is another alternative, which we'll talk
-        about below.</para>
-      </section>
-
-      <section id="domain-acls-basic-old">
-        <title>Basic ACL Package</title>
-
-        <para>Please note that our Basic ACL services are currently being
-        refactored. We expect release 1.1.0 will contain this new code.
-        Planned code is already in the Acegi Security Subversion sandbox, so
-        please check there if you have a new application requiring ACLs or are
-        in the planning stages. The Basic ACL services will be deprecated from
-        release 1.1.0.</para>
-
-        <para>The <literal>org.acegisecurity.acl</literal> package is very
-        simple, comprising only a handful of interfaces and a single class, as
-        shown in Figure 6. It provides the basic foundation for access control
-        list (ACL) lookups.</para>
-
-        <para><mediaobject>
-            <imageobject role="html">
-              <imagedata align="center" fileref="images/ACLSecurity.gif"
-                         format="GIF" />
-            </imageobject>
-
-            <caption>
-              <para>Figure 6: Access Control List Manager</para>
-            </caption>
-          </mediaobject></para>
-
-        <para>The central interface is <literal>AclManager</literal>, which is
-        defined by two methods:</para>
-
-        <para><programlisting>public AclEntry[] getAcls(java.lang.Object domainInstance);
-public AclEntry[] getAcls(java.lang.Object domainInstance, Authentication authentication);</programlisting></para>
-
-        <para><literal>AclManager</literal> is intended to be used as a
-        collaborator against your business objects, or, more desirably,
-        <literal>AccessDecisionVoter</literal>s. This means you use Spring's
-        normal <literal>ApplicationContext</literal> features to wire up your
-        <literal>AccessDecisionVoter</literal> (or business method) with an
-        <literal>AclManager</literal>. Consideration was given to placing the
-        ACL information in the <literal>ContextHolder</literal>, but it was
-        felt this would be inefficient both in terms of memory usage as well
-        as the time spent loading potentially unused ACL information. The
-        trade-off of needing to wire up a collaborator for those objects
-        requiring ACL information is rather minor, particularly in a
-        Spring-managed application.</para>
-
-        <para>The first method of the <literal>AclManager</literal> will
-        return all ACLs applying to the domain object instance passed to it.
-        The second method does the same, but only returns those ACLs which
-        apply to the passed <literal>Authentication</literal> object.</para>
-
-        <para>The <literal>AclEntry</literal> interface returned by
-        <literal>AclManager</literal> is merely a marker interface. You will
-        need to provide an implementation that reflects that ACL permissions
-        for your application.</para>
-
-        <para>Rounding out the <literal>org.acegisecurity.acl</literal>
-        package is an <literal>AclProviderManager</literal> class, with a
-        corresponding <literal>AclProvider</literal> interface.
-        <literal>AclProviderManager</literal> is a concrete implementation of
-        <literal>AclManager</literal>, which iterates through registered
-        <literal>AclProvider</literal>s. The first
-        <literal>AclProvider</literal> that indicates it can authoritatively
-        provide ACL information for the presented domain object instance will
-        be used. This is very similar to the
-        <literal>AuthenticationProvider</literal> interface used for
-        authentication.</para>
-
-        <para>With this background, let's now look at a usable ACL
-        implementation.</para>
-
-        <para>Acegi Security includes a production-quality ACL provider
-        implementation, which is shown in Figure 7.</para>
-
-        <para><mediaobject>
-            <imageobject role="html">
-              <imagedata align="center" fileref="images/BasicAclProvider.gif"
-                         format="GIF" />
-            </imageobject>
-
-            <caption>
-              <para>Figure 7: Basic ACL Manager</para>
-            </caption>
-          </mediaobject></para>
-
-        <para>The implementation is based on integer masking, which is
-        commonly used for ACL permissions given its flexibility and speed.
-        Anyone who has used Unix's <literal>chmod</literal> command will know
-        all about this type of permission masking (eg <literal>chmod
-        777</literal>). You'll find the classes and interfaces for the integer
-        masking ACL package under
-        <literal>org.acegisecurity.acl.basic</literal>.</para>
-
-        <para>Extending the <literal>AclEntry</literal> interface is a
-        <literal>BasicAclEntry</literal> interface, with the main methods
-        shown below:</para>
-
-        <para><programlisting>public AclObjectIdentity getAclObjectIdentity();
-public AclObjectIdentity getAclObjectParentIdentity();
-public int getMask();
-public java.lang.Object getRecipient();</programlisting></para>
-
-        <para>As shown, each <literal>BasicAclEntry</literal> has four main
-        properties. The <literal>mask</literal> is the integer that represents
-        the permissions granted to the <literal>recipient</literal>. The
-        <literal>aclObjectIdentity</literal> is able to identify the domain
-        object instance for which the ACL applies, and the
-        <literal>aclObjectParentIdentity</literal> optionally specifies the
-        parent of the domain object instance. Multiple
-        <literal>BasicAclEntry</literal>s usually exist against a single
-        domain object instance, and as suggested by the parent identity
-        property, permissions granted higher in the object hierarchy will
-        trickle down and be inherited (unless blocked by integer zero).</para>
-
-        <para><literal>BasicAclEntry</literal> implementations typically
-        provide convenience methods, such as
-        <literal>isReadAllowed()</literal>, to avoid application classes
-        needing to perform bit masking themselves. The
-        <literal>SimpleAclEntry</literal> and
-        <literal>AbstractBasicAclEntry</literal> demonstrate and provide much
-        of this bit masking logic.</para>
-
-        <para>The <literal>AclObjectIdentity</literal> itself is merely a
-        marker interface, so you need to provide implementations for your
-        domain objects. However, the package does include a
-        <literal>NamedEntityObjectIdentity</literal> implementation which will
-        suit many needs. The <literal>NamedEntityObjectIdentity</literal>
-        identifies a given domain object instance by the classname of the
-        instance and the identity of the instance. A
-        <literal>NamedEntityObjectIdentity</literal> can be constructed
-        manually (by calling the constructor and providing the classname and
-        identity <literal>String</literal>s), or by passing in any domain
-        object that contains a <literal>getId()</literal> method.</para>
-
-        <para>The actual <literal>AclProvider</literal> implementation is
-        named <literal>BasicAclProvider</literal>. It has adopted a similar
-        design to that used by the authentication-related
-        <literal>DaoAuthenticationProvder</literal>. Specifically, you define
-        a <literal>BasicAclDao</literal> against the provider, so different
-        ACL repository types can be accessed in a pluggable manner. The
-        <literal>BasicAclProvider</literal> also supports pluggable cache
-        providers (with Acegi Security including an implementation that fronts
-        EH-CACHE).</para>
-
-        <para>The <literal>BasicAclDao</literal> interface is very simple to
-        implement:</para>
-
-        <para><programlisting>public BasicAclEntry[] getAcls(AclObjectIdentity aclObjectIdentity);</programlisting></para>
-
-        <para>A <literal>BasicAclDao</literal> implementation needs to
-        understand the presented <literal>AclObjectIdentity</literal> and how
-        it maps to a storage repository, find the relevant records, and create
-        appropriate <literal>BasicAclEntry</literal> objects and return
-        them.</para>
-
-        <para>Acegi Security includes a single <literal>BasicAclDao</literal>
-        implementation called <literal>JdbcDaoImpl</literal>. As implied by
-        the name, <literal>JdbcDaoImpl</literal> accesses ACL information from
-        a JDBC database. There is also an extended version of this DAO,
-        <literal>JdbcExtendedDaoImpl</literal>, which provides CRUD operations
-        on the JDBC database, although we won't discuss these features here.
-        The default database schema and some sample data will aid in
-        understanding its function:</para>
-
-        <para><programlisting>CREATE TABLE acl_object_identity (
-     id IDENTITY NOT NULL,
-     object_identity VARCHAR_IGNORECASE(250) NOT NULL,
-     parent_object INTEGER,
-     acl_class VARCHAR_IGNORECASE(250) NOT NULL,
-     CONSTRAINT unique_object_identity UNIQUE(object_identity),
-     FOREIGN KEY (parent_object) REFERENCES acl_object_identity(id)
-);
-
-CREATE TABLE acl_permission (
-     id IDENTITY NOT NULL,
-     acl_object_identity INTEGER NOT NULL,
-     recipient VARCHAR_IGNORECASE(100) NOT NULL,
-     mask INTEGER NOT NULL,
-     CONSTRAINT unique_recipient UNIQUE(acl_object_identity, recipient),
-     FOREIGN KEY (acl_object_identity) REFERENCES acl_object_identity(id)
-);
-
-INSERT INTO acl_object_identity VALUES (1, 'corp.DomainObject:1', null, 'org.acegisecurity.acl.basic.SimpleAclEntry');
-INSERT INTO acl_object_identity VALUES (2, 'corp.DomainObject:2', 1, 'org.acegisecurity.acl.basic.SimpleAclEntry');
-INSERT INTO acl_object_identity VALUES (3, 'corp.DomainObject:3', 1, 'org.acegisecurity.acl.basic.SimpleAclEntry');
-INSERT INTO acl_object_identity VALUES (4, 'corp.DomainObject:4', 1, 'org.acegisecurity.acl.basic.SimpleAclEntry');
-INSERT INTO acl_object_identity VALUES (5, 'corp.DomainObject:5', 3, 'org.acegisecurity.acl.basic.SimpleAclEntry');
-INSERT INTO acl_object_identity VALUES (6, 'corp.DomainObject:6', 3, 'org.acegisecurity.acl.basic.SimpleAclEntry');
-
-INSERT INTO acl_permission VALUES (null, 1, 'ROLE_SUPERVISOR', 1);
-INSERT INTO acl_permission VALUES (null, 2, 'ROLE_SUPERVISOR', 0);
-INSERT INTO acl_permission VALUES (null, 2, 'marissa', 2);
-INSERT INTO acl_permission VALUES (null, 3, 'scott', 14);
-INSERT INTO acl_permission VALUES (null, 6, 'scott', 1);</programlisting></para>
-
-        <para>As can be seen, database-specific constraints are used
-        extensively to ensure the integrity of the ACL information. If you
-        need to use a different database (Hypersonic SQL statements are shown
-        above), you should try to implement equivalent constraints. The
-        equivalent Oracle configuration is:</para>
-
-        <para><programlisting>CREATE TABLE ACL_OBJECT_IDENTITY (
-     ID number(19,0) not null,
-     OBJECT_IDENTITY varchar2(255) NOT NULL,
-     PARENT_OBJECT number(19,0),
-     ACL_CLASS varchar2(255) NOT NULL,
-     primary key (ID)
-);
-ALTER TABLE ACL_OBJECT_IDENTITY ADD CONTRAINT FK_PARENT_OBJECT foreign key (ID) references ACL_OBJECT_IDENTITY
-
-CREATE SEQUENCE ACL_OBJECT_IDENTITY_SEQ;
-
-CREATE OR REPLACE TRIGGER ACL_OBJECT_IDENTITY_ID
-BEFORE INSERT ON ACL_OBJECT_IDENTITY
-FOR EACH ROW
-BEGIN
-  SELECT ACL_OBJECT_IDENTITY_SEQ.NEXTVAL INTO :new.id FROM dual;
-END;
-
-CREATE TABLE ACL_PERMISSION (
-     ID number(19,0) not null,
-     ACL_OBJECT_IDENTITY number(19,0) NOT NULL,
-     RECIPIENT varchar2(255) NOT NULL,
-     MASK number(19,0) NOT NULL,
-     primary key (ID)
-);
-
-ALTER TABLE ACL_PERMISSION ADD CONTRAINT UNIQUE_ID_RECIPIENT unique (acl_object_identity, recipient);
-
-CREATE SEQUENCE ACL_PERMISSION_SEQ;
-
-CREATE OR REPLACE TRIGGER ACL_PERMISSION_ID
-BEFORE INSERT ON ACL_PERMISSION
-FOR EACH ROW
-BEGIN
-  SELECT ACL_PERMISSION_SEQ.NEXTVAL INTO :new.id FROM dual;
-END;
-
-&lt;bean id="basicAclExtendedDao" class="org.acegisecurity.acl.basic.jdbc.JdbcExtendedDaoImpl"&gt;
-    &lt;property name="dataSource"&gt;
-        &lt;ref bean="dataSource"/&gt;
-    &lt;/property&gt;
-    &lt;property name="objectPropertiesQuery" value="${acegi.objectPropertiesQuery}"/&gt;
-&lt;/bean&gt;
-
-&lt;prop key="acegi.objectPropertiesQuery"&gt;SELECT CHILD.ID, CHILD.OBJECT_IDENTITY, CHILD.ACL_CLASS, PARENT.OBJECT_IDENTITY as PARENT_OBJECT_IDENTITY FROM acl_object_identity as CHILD LEFT OUTER JOIN acl_object_identity as PARENT ON CHILD.parent_object=PARENT.id WHERE CHILD.object_identity = ?&lt;/prop&gt; </programlisting></para>
-
-        <para>The <literal>JdbcDaoImpl</literal> will only respond to requests
-        for <literal>NamedEntityObjectIdentity</literal>s. It converts such
-        identities into a single <literal>String</literal>, comprising
-        the<literal> NamedEntityObjectIdentity.getClassname()</literal> +
-        <literal>":"</literal> +
-        <literal>NamedEntityObjectIdentity.getId()</literal>. This yields the
-        type of <literal>object_identity</literal> values shown above. As
-        indicated by the sample data, each database row corresponds to a
-        single <literal>BasicAclEntry</literal>. As stated earlier and
-        demonstrated by <literal>corp.DomainObject:2</literal> in the above
-        sample data, each domain object instance will often have multiple
-        <literal>BasicAclEntry</literal>[]s.</para>
-
-        <para>As <literal>JdbcDaoImpl</literal> is required to return concrete
-        <literal>BasicAclEntry</literal> classes, it needs to know which
-        <literal>BasicAclEntry</literal> implementation it is to create and
-        populate. This is the role of the <literal>acl_class</literal> column.
-        <literal>JdbcDaoImpl</literal> will create the indicated class and set
-        its <literal>mask</literal>, <literal>recipient</literal>,
-        <literal>aclObjectIdentity</literal> and
-        <literal>aclObjectParentIdentity</literal> properties.</para>
-
-        <para>As you can probably tell from the sample data, the
-        <literal>parent_object_identity</literal> value can either be null or
-        in the same format as the <literal>object_identity</literal>. If
-        non-null, <literal>JdbcDaoImpl</literal> will create a
-        <literal>NamedEntityObjectIdentity</literal> to place inside the
-        returned <literal>BasicAclEntry</literal> class.</para>
-
-        <para>Returning to the <literal>BasicAclProvider</literal>, before it
-        can poll the <literal>BasicAclDao</literal> implementation it needs to
-        convert the domain object instance it was passed into an
-        <literal>AclObjectIdentity</literal>.
-        <literal>BasicAclProvider</literal> has a <literal>protected
-        AclObjectIdentity obtainIdentity(Object domainInstance)</literal>
-        method that is responsible for this. As a protected method, it enables
-        subclasses to easily override. The normal implementation checks
-        whether the passed domain object instance implements the
-        <literal>AclObjectIdentityAware</literal> interface, which is merely a
-        getter for an <literal>AclObjectIdentity</literal>. If the domain
-        object does implement this interface, that is the identity returned.
-        If the domain object does not implement this interface, the method
-        will attempt to create an <literal>AclObjectIdentity</literal> by
-        passing the domain object instance to the constructor of a class
-        defined by the
-        <literal>BasicAclProvider.getDefaultAclObjectIdentity()</literal>
-        method. By default the defined class is
-        <literal>NamedEntityObjectIdentity</literal>, which was described in
-        more detail above. Therefore, you will need to either (i) provide a
-        <literal>getId()</literal> method on your domain objects, (ii)
-        implement <literal>AclObjectIdentityAware</literal> on your domain
-        objects, (iii) provide an alternative
-        <literal>AclObjectIdentity</literal> implementation that will accept
-        your domain object in its constructor, or (iv) override the
-        <literal>obtainIdentity(Object)</literal> method.</para>
-
-        <para>Once the <literal>AclObjectIdentity</literal> of the domain
-        object instance is determined, the <literal>BasicAclProvider</literal>
-        will poll the DAO to obtain its <literal>BasicAclEntry</literal>[]s.
-        If any of the entries returned by the DAO indicate there is a parent,
-        that parent will be polled, and the process will repeat until there is
-        no further parent. The permissions assigned to a
-        <literal>recipient</literal> closest to the domain object instance
-        will always take priority and override any inherited permissions. From
-        the sample data above, the following inherited permissions would
-        apply:</para>
-
-        <para><programlisting>--- Mask integer 0  = no permissions
---- Mask integer 1  = administer
---- Mask integer 2  = read
---- Mask integer 6  = read and write permissions
---- Mask integer 14 = read and write and create permissions
-
----------------------------------------------------------------------
---- *** INHERITED RIGHTS FOR DIFFERENT INSTANCES AND RECIPIENTS ***
---- INSTANCE  RECIPIENT         PERMISSION(S) (COMMENT #INSTANCE)
----------------------------------------------------------------------
----    1      ROLE_SUPERVISOR   Administer
----    2      ROLE_SUPERVISOR   None (overrides parent #1)
----           marissa           Read
----    3      ROLE_SUPERVISOR   Administer (from parent #1)
----           scott             Read, Write, Create
----    4      ROLE_SUPERVISOR   Administer (from parent #1)
----    5      ROLE_SUPERVISOR   Administer (from parent #3)
----           scott             Read, Write, Create (from parent #3)
----    6      ROLE_SUPERVISOR   Administer (from parent #3)
----           scott             Administer (overrides parent #3)</programlisting></para>
-
-        <para>So the above explains how a domain object instance has its
-        <literal>AclObjectIdentity</literal> discovered, and the
-        <literal>BasicAclDao</literal> will be polled successively until an
-        array of inherited permissions is constructed for the domain object
-        instance. The final step is to determine the
-        <literal>BasicAclEntry</literal>[]s that are actually applicable to a
-        given <literal>Authentication</literal> object.</para>
-
-        <para>As you would recall, the <literal>AclManager</literal> (and all
-        delegates, up to and including <literal>BasicAclProvider</literal>)
-        provides a method which returns only those
-        <literal>BasicAclEntry</literal>[]s applying to a passed
-        <literal>Authentication</literal> object.
-        <literal>BasicAclProvider</literal> delivers this functionality by
-        delegating the filtering operation to an
-        <literal>EffectiveAclsResolver</literal> implementation. The default
-        implementation,
-        <literal>GrantedAuthorityEffectiveAclsResolver</literal>, will iterate
-        through the <literal>BasicAclEntry</literal>[]s and include only those
-        where the <literal>recipient</literal> is equal to either the
-        <literal>Authentication</literal>'s <literal>principal</literal> or
-        any of the <literal>Authentication</literal>'s
-        <literal>GrantedAuthority</literal>[]s. Please refer to the JavaDocs
-        for more information.</para>
-
-        <mediaobject>
-          <imageobject role="html">
-            <imagedata align="center" fileref="images/Permissions.gif"
-                       format="GIF" />
-          </imageobject>
-
-          <caption>
-            <para>Figure 8: ACL Instantiation Approach</para>
-          </caption>
-        </mediaobject>
-
-        <para>The above figure explains the key relationships between objects
-        in the Basic ACL package.</para>
-      </section>
-    </chapter>
-  </part>
-
-  <part id="resources">
-    <title>Other Resources</title>
-
-    <partintro>
-      <para>In addition to this reference guide, a number of other resources
-      exist to help you learn how to use Acegi Security. These resources are
-      discussed in this section.</para>
-    </partintro>
-
-    <chapter id="sample-apps">
-      <title id="samples">Sample Applications</title>
-
-      <sect1 id="contacts-sample">
-        <title id="contacts">Contacts</title>
-
-        <para>Included with Acegi Security is a very simple application that
-        can demonstrate the basic security facilities provided by the system
-        (and confirm your Container Adapter is properly configured if you're
-        using one).</para>
-
-        <para>If you build from Subversion, the Contacts sample application
-        includes three deployable versions:
-        <literal>acegi-security-sample-contacts-filter.war</literal> is
-        configured with the HTTP Session Authentication approach.
-        Acegi<literal><literal>-security-sample-contacts-ca.war</literal></literal>
-        is configured to use a Container Adapter. Finally,
-        <literal>acegi-security-sample-contacts-cas.war</literal> is designed
-        to work with a JA-SIG CAS server. If you're just wanting to see how
-        the sample application works, please use
-        <literal><literal>acegi-security-sample-contacts-filter.war</literal></literal>
-        as it does not require special configuration of your container. This
-        is also the artifact included in official release ZIPs.</para>
-
-        <para>To deploy, simply copy the relevant WAR file from Acegi Security
-        distribution into your container’s <literal>webapps</literal>
-        directory.</para>
-
-        <para>After starting your container, check the application can load.
-        Visit
-        <literal>http://localhost:</literal><literal><literal>8080/</literal>acegi-security-sample-contacts-filter</literal>
-        (or whichever URL is appropriate for your web container and the WAR
-        you deployed). A random contact should be displayed. Click "Refresh"
-        several times and you will see different contacts. The business method
-        that provides this random contact is not secured.</para>
-
-        <para>Next, click "Debug". You will be prompted to authenticate, and a
-        series of usernames and passwords are suggested on that page. Simply
-        authenticate with any of these and view the resulting page. It should
-        contain a success message similar to the following:</para>
-
-        <blockquote>
-          <para>Context on SecurityContextHolder is of type:
-          org.acegisecurity.context.SecurityContextImpl</para>
-
-          <para>The Context implements SecurityContext.</para>
-
-          <para>Authentication object is of type:
-          org.acegisecurity.adapters.PrincipalAcegiUserToken</para>
-
-          <para>Authentication object as a String:
-          org.acegisecurity.adapters.PrincipalAcegiUserToken@e9a7c2: Username:
-          marissa; Password: [PROTECTED]; Authenticated: true; Granted
-          Authorities: ROLE_TELLER, ROLE_SUPERVISOR</para>
-
-          <para>Authentication object holds the following granted
-          authorities:</para>
-
-          <para>ROLE_TELLER (getAuthority(): ROLE_TELLER)</para>
-
-          <para>ROLE_SUPERVISOR (getAuthority(): ROLE_SUPERVISOR)</para>
-
-          <para>SUCCESS! Your [container adapter|web filter] appears to be
-          properly configured!</para>
-        </blockquote>
-
-        <para>If you receive a different message, and deployed
-        <literal>acegi-security-sample-contacts-ca.war</literal>, check you
-        have properly configured your Container Adapter as described elsewhere
-        in this reference guide.</para>
-
-        <para>Once you successfully receive the above message, return to the
-        sample application's home page and click "Manage". You can then try
-        out the application. Notice that only the contacts available to the
-        currently logged on user are displayed, and only users with
-        <literal>ROLE_SUPERVISOR</literal> are granted access to delete their
-        contacts. Behind the scenes, the
-        <literal>MethodSecurityInterceptor</literal> is securing the business
-        objects. If you're using
-        <literal><literal>acegi-security-sample-contacts-filter.war</literal></literal>
-        or <literal>acegi-security-sample-contacts-cas.war</literal>, the
-        <literal>FilterSecurityInterceptor</literal> is also securing the HTTP
-        requests. If using either of these WARs, be sure to try visiting
-        <literal>http://localhost:8080/contacts/secure/super</literal>, which
-        will demonstrate access being denied by the
-        <literal>FilterSecurityInterceptor</literal>. Note the sample
-        application enables you to modify the access control lists associated
-        with different contacts. Be sure to give this a try and understand how
-        it works by reviewing the sample application's application context XML
-        files.</para>
-
-        <para>The Contacts sample application also include a
-        <literal>client</literal> directory. Inside you will find a small
-        application that queries the backend business objects using several
-        web services protocols. This demonstrates how to use Acegi Security
-        for authentication with Spring remoting protocols. To try this client,
-        ensure your servlet container is still running the Contacts sample
-        application, and then execute <literal>client marissa koala</literal>.
-        The command-line parameters respectively represent the username to
-        use, and the password to use. Note that you may need to edit
-        <literal>client.properties</literal> to use a different target
-        URL.</para>
-
-        <para>Please note the sample application's <literal>client</literal>
-        does not currently support CAS. You can still give it a try, though,
-        if you're ambitious: try <literal>client _cas_stateless_
-        YOUR-SERVICE-TICKET-ID</literal>.</para>
-      </sect1>
-
-      <sect1 id="tutorial-sample">
-        <title>Tutorial Sample</title>
-
-        <para>Whilst the <link linkend="contacts-sample">Contacts
-        Sample</link> is quite advanced in that it illustrates the more
-        powerful features of domain object access control lists and so on,
-        sometimes you just want to start with a nice basic example. The
-        tutorial sample is intended to provide this for you.</para>
-
-        <para>The compiled tutorial is included in the distribution ZIP file,
-        ready to be deployed into your web container. Authentication is
-        handled by the <link
-        linkend="dao-provider">DaoAuthenticationProvider</link>, using the
-        <link linkend="in-memory-service">in-memory</link>
-        <literal>UserDetailsService</literal> that sources information from
-        the <literal>users.properties</literal> file located in the WAR's
-        <literal>/WEB-INF</literal> directory. The <link
-        linkend="form">form-based</link> authentication mechanism is used,
-        with the commonly-used <link linkend="remember-me">remember-me</link>
-        authentication provider used to automatically remember the login using
-        cookies.</para>
-
-        <para>In terms of authorization, to keep things simple we've
-        configured the tutorial to only perform some basic <link
-        linkend="filter-invocation-authorization">web filter
-        authorization</link>. We've wired two common <link
-        linkend="pre-invocation">pre-invocation access decision voters</link>,
-        being the <literal>RoleVoter</literal> and
-        <literal>AuthenticatedVoter</literal>, such that
-        <literal>ROLE_*</literal> configuration attributes and
-        <literal>IS_AUTHENTICATED_*</literal> configuration attributes may be
-        used. Of course, it's extremely easy to add in other providers, with
-        most users probably starting with some services-layer security using
-        <link linkend="aop-alliance">MethodSecurityInterceptor</link>.</para>
-
-        <para>We recommend you start with the tutorial sample, as the XML is
-        minimal and easy to follow. All of the needed <link
-        linkend="filters">filters</link> are configured properly, and using
-        best practise. Most importantly, you can easily this one XML file (and
-        its corresponding <literal>web.xml</literal> entries) to your existing
-        application. Only when this basic integration is achieved do we
-        suggest you attempt adding in method authorization or domain object
-        security.</para>
-      </sect1>
-    </chapter>
-
-    <chapter id="community">
-      <title>Community Support</title>
-
-      <sect1 id="jira">
-        <title>Use JIRA for Issue Tracking</title>
-
-        <para>Acegi Security uses JIRA to manage bug reports and enhancement
-        requests. If you find a bug, please log a report using JIRA. Do not
-        log it on the support forum, mailing list or by emailing the project's
-        developers. Such approaches are ad-hoc and we prefer to manage bugs
-        using a more formal process.</para>
-
-        <para>If possible, in your JIRA report please provide a JUnit test
-        that demonstrates any incorrect behaviour. Or, better yet, provide a
-        patch that corrects the issue. Similarly, enhancements are welcome to
-        be logged in JIRA, although we only accept commit enhancement requests
-        if you include corresponding unit tests. This is necessary to ensure
-        project test coverage is adequately maintained.</para>
-
-        <para>You can access JIRA at <ulink
-        url="http://opensource.atlassian.com/projects/spring/secure/BrowseProject.jspa?id=10040"></ulink>.</para>
-      </sect1>
-
-      <sect1 id="becoming-involved">
-        <title>Becoming Involved</title>
-
-        <para>We welcome you to become involved in Acegi Security project.
-        There are many ways of contributing, including reading the mailing
-        list and responding to questions from other people, writing new code,
-        improving existing code, assisting with documentation, developing
-        samples or tutorials, or simply making suggestions.</para>
-
-        <para>Please read our project policies web page that is available on
-        Acegi Security home page. This explains the path to become a
-        committer, and the administration approaches we use within the
-        project.</para>
-      </sect1>
-
-      <sect1 id="further-info">
-        <title>Further Information</title>
-
-        <para>Questions and comments on Acegi Security are welcome. Please use
-        the Spring Community Forum web site at <ulink
-        url="http://forum.springframework.org"></ulink> for all support
-        issues. Remember to use JIRA for bug reports, as explained above.
-        Everyone is also welcome to join the Acegisecurity-developer mailing
-        list and participate in design discussions. It's also a good way of
-        finding out what's happening with regard to release timing, and the
-        traffic volume is quite light. Finally, our project home page (where
-        you can obtain the latest release of the project and convenient links
-        to Subversion, JIRA, mailing lists, forums etc) is at <ulink
-        url="http://acegisecurity.org"></ulink>.</para>
-      </sect1>
-    </chapter>
-  </part>
-</book>

+ 0 - 61
src/site/apt/building.apt

@@ -1,61 +0,0 @@
-                                -----------------------
-                                Building Acegi Security
-                                -----------------------
-
-
-Building Acegi Security System
-
-* Checking Out from Subversion (SVN)
-
-    This project uses <a href="http://maven.apache.org">Maven</a> as project manager
-	and build tool.	We recommend you to install Maven 2.0.4 or greater before trying
-	the following.
-
-    To checkout Acegi Security from SVN, see our {{{svn-usage.html}SVN Usage}} page.
-
-* Quick Build
-
-    Often people reading this document just want to see if Acegi Security will work
-	for their projects. They want to deploy a sample application, and that's about it
-	(after all, all the reference documentation can be read online at
-	{{{http://acegisecurity.org}http://acegisecurity.org}}).
-	In this case, execute:
-	TODO: Update to use tutorial app and maven 2
-
-+----------------------------------------------------------------------------------------------------------------------+
-	cd $ACEGI_SECURITY/core (or cd %ACEGI_SECURITY%/core on Windows)
-	mvn install
-	cd $ACEGI_SECURITY/samples/contacts
-	maven multiwar:multiwar
-	copy $ACEGI_SECURITY/samples/contacts/target/acegi-security-sample-contacts-filter.war $YOUR_CONTAINER/webapps
-+----------------------------------------------------------------------------------------------------------------------+
-
-    Then load up your web container and visit
-	{{{http://localhost:8080/acegi-security-sample-contacts-filter/}http://localhost:8080/acegi-security-sample-contacts-filter/}}
-	(or whatever location is appropriate for your web container).
-
-* Building All JARs
-
-    Sometimes people are already using Acegi Security, and they just want to build the
-	latest code from CVS. To build all artifacts (JARs) and install them into
-	your local Maven repository, simply perform a SVN checkout, and then execute:
-
-+----------------------------------------------------------------------------------------------------------------------+
-	cd $ACEGI_SECURITY
-	mvn install
-+----------------------------------------------------------------------------------------------------------------------+
-
-    You can then check your <<<$HOME/.m2/repository/org/acegisecurity>>>
-	directory and it should contain all of the latest Acegi Security JARs.
-
-* Building The Site
-
-    By "site" we mean the web site you can browse at
-	{{{http://acegisecurity.org}http://acegisecurity.org}},
-	which includes the reference documentation and all of the Maven reports.
-	If you'd like a local copy, simply execute:
-
-+----------------------------------------------------------------------------------------------------------------------+
-	cd $ACEGI_SECURITY
-	mvn clean site
-+----------------------------------------------------------------------------------------------------------------------+

+ 0 - 50
src/site/apt/downloads.apt

@@ -1,50 +0,0 @@
-                                                ---------
-                                                Downloads
-                                                ---------
-
-Acegi Security Downloads
-
-  If you wish to try out this project, you are probably looking for the
-  <<acegi-security-xx.zip>> file, which contains all of the officially
-  released JARs, a copy of all documentation, and two WAR artifacts. The two WAR artifacts
-  are from the Contacts Sample and the Tutorial Sample application. The Tutorial Sample
-  consists of a "bare bones" configuration that will get you up and running quickly, whereas
-  the Contacts Sample illustrates more advanced features.
-
-  Please note that in order to reduce download size, we only include in the
-  release ZIP one of the WAR artifacts produced by the Contacts Sample application.
-  The WAR artifact we include is suitable for standalone deployment (specifically, it
-  does not require a CAS server, container adapter, X509 or LDAP setup). The official release ZIP
-  therefore probably contains what you need, especially if you're initially
-  evaluating the project. If you wish to deploy the other WAR artifacts produced by
-  the Contacts Sample application (ie those that target CAS, container adapters, X509 or LDAP usage),
-  you will need to build Acegi Security from source.
-
-  The acegi-security-xx-src.zip is intended for use with IDEs. It does not contain the
-  files needed to compile Acegi Security. It also does not contain the sources to the
-  sample applications. If you need any of these files, please download from SVN.
-
-* Official Releases
-
-  The official release ZIP files are available from the
-  {{{http://sourceforge.net/project/showfiles.php?group_id=104215}Sourceforge File Release System}}.
-
-
-* Maven Dependencies
-
-  The Acegi Security JARs are also available via the
-  {{{http://www.ibiblio.org/maven2/org/acegisecurity}iBiblio Maven Repository}}.
-
-* Building From Source
-
-  Detailed instructions on downloading from CVS and building from source
-  are provided on the {{{building.html}Building with Maven}}
-  page.
-
-* SVN Snapshots and Daily Builds
-
-  If you don't wish to access SVN directly, we provide
-  {{{http://acegisecurity.sourceforge.net/nightly/}nightly SVN exports}}
-  There is also an automated build which uploads bundle of Acegi Security jar files to the same location.
-  Both binary and source archives have the date of the build and the SVN revision number appended to the filename,
-  so you can match them up easily.

+ 0 - 74
src/site/apt/standalone.apt

@@ -1,74 +0,0 @@
-                        ----------------------------------
-                        Acegi Security Use Without Spring
-                        ----------------------------------
-
-
-Acegi Security Use Without Spring
-
-* Introduction
-
-  Sometimes we get asked can Acegi Security be used without Spring.
-  This page provides a detailed answer.
-
-* History
-
-  Acegi Security started out as a method interceptor for Spring IoC container
-  managed beans. Typically such beans provide services layer functions.
-  Over time Acegi Security grew to offer authentication services, <<<ThreadLocal>>> management,
-  web request filtering, extra AOP support,
-  ACL features, additional authentication mechanisms and so on (for those interested,
-  see our {{{changes-report.html}change log}}).
-
-* Why Use Spring
-
-  There's plenty written about why the
-  {{{http://www.springframework.org}Spring Framework}}
-  is a good fit for modern applications. If you're not familiar with the benefits
-  Spring offers, please take a few minutes to learn more about it. In numerous
-  situations Spring will save you many months (or even years) of development time.
-  Not to mention your solutions will be better architected
-  (designed), better coded (implemented), and better supported (maintained) in the future.
-
-
-* Acegi Security Dependencies on Spring
-
-  Acegi Security relies on the Spring IoC container to wire its classes, and execute lifecycle
-  methods such as <<<afterPropertiesSet()>>>. Some Acegi Security classes also
-  publish events to the <<<ApplicationContext>>>, although you could provide a mock
-  implementation of <<<ApplicationContext>>> easily enough which no-ops the method.
-  In other words, if you particularly didn't want Spring in your application, you <could>
-  avoid its use by writing equivalent getter, setter and lifecycle invocation processes
-  in standard Java code. This is a natural consequence of the Spring way of development,
-  which emphasises framework independence (it is <not> because we think there are good
-  reasons people would <not> use Spring).
-
-  If it sounds too hard (it's not) or counter-productive (it is) to replace Spring's IoC
-  services, don't forget you can always deploy Acegi Security and the Spring
-  IoC container solely for configuring Acegi Security. Spring does not mandate its
-  use in every part of your application. It will work quite successfully doing nothing more than
-  acting as a configuration mechanism for Acegi Security. Whilst some may regard this as excessive,
-  it's really no different than the traditional approach of every framework having its very
-  own XML or other proprietary configuration system. The main difference is that Spring is an
-  actual de facto standard, and you can gradually introduce it to other parts of your application
-  over time (if desired).
-
-  Acegi Security does <not> use any other Spring capabilities. Most notably, the
-  entire architecture is based around <<<Filter>>>s, not Spring's MVC framework.
-  This allows it to be used with any MVC framework, or even with just straight JSPs.
-  Acegi Security uses the AOP Alliance and AspectJ interfaces for method interception -
-  it does not use any Spring-specific interfaces. As a consequence, Acegi Security is very
-  portable to applications that do not leverage <any> of Spring's capabilities. We should note
-  there are several very simple data access objects (DAOs) that use Spring's JDBC abstraction
-  layer, although each of these are defined by a simple interface and it is very common in
-  even native Spring-powered applications for these to be re-implemented using the application's
-  persistence framework of choice (eg Hibernate).
-
-* Conclusion
-
-  In summary, we recommend you take a look at Spring and consider using it in your
-  applications. Irrespective of whether you do so or not, we strongly recommend you use it
-  for configuration and lifecycle management of Acegi Security. If that is also not desired,
-  Acegi Security can easily be executed without Spring at all, providing you implement
-  similar IoC services. Acegi Security has very minimal dependencies directly on Spring,
-  with it being useful in many non-Spring applications and with non-Spring frameworks.
-

+ 4 - 5
src/site/apt/suggested.apt

@@ -15,7 +15,7 @@ Suggested Steps
 	Estimated time: 30 minutes.
 
 
-    [[2]] Next, follow the <a href="petclinic-tutorial.html">Petclinic tutorial</a>, which
+    [[2]] Next, follow the {{{petclinic-tutorial.html}Petclinic Tutorial}}, which
     covers how to add Acegi Security to the commonly-used Petclinic sample application
     that ships with Spring. This will give you a hands-on approach to integrating
     Acegi Security into your own application.
@@ -42,15 +42,14 @@ Suggested Steps
 	security is implemented, particularly with domain object access control lists. This will
 	really round-out the rest of the framework for you.
 
-	The actual java (TODO: link) code
+	The actual java code
 	is a completely standard Spring application, except <<<ContactManagerBackend>>>
 	which shows how we create and delete ACL permissions. The rest of the Java code has no
 	security awareness, with all security services being declared in the XML files
 	(don't worry, there aren't any new XML formats to learn: they're all standard Spring IoC container
-	declarations or the stock-standard <<<web.xml>>>). The main
-	XML files to review are
+	declarations or the stock-standard <<<web.xml>>>).
 
-	TODO: SVN Links:
+~~	The main X ML files to review are TODO: SVN Links:
 
 ~~	<a target="_blank" class="newWindow" href="http://cvs.sourceforge.net/viewcvs.py/acegisecurity/acegisecurity/samples/contacts/src/main/webapp/filter/WEB-INF/applicationContext-acegi-security.xml?view=auto">applicationContext-acegi-security.xml</a> (from the filter webapp),
 ~~	<a target="_blank" class="newWindow" href="http://cvs.sourceforge.net/viewcvs.py/acegisecurity/acegisecurity/samples/contacts/src/main/webapp/common/WEB-INF/applicationContext-common-authorization.xml?view=auto">applicationContext-common-authorization.xml</a>,

+ 41 - 0
src/site/resources/css/site.css

@@ -0,0 +1,41 @@
+
+#poweredBy {
+  visibility: hidden;
+}
+
+#leftColumn {
+  border: none;
+  background-color: white;
+}
+
+h2 {
+  padding: 4px 4px 4px 6px;
+  border: none;
+  color: black;
+  background-color: white;
+  font-weight:normal;
+  font-size: large;
+  text-align: center;
+}
+h3 {
+  padding: 4px 4px 4px 6px;
+  border: none;
+  color: black;
+  background-color: white;
+  font-weight: normal;
+  font-size: large;
+}
+h4 {
+  padding: 4px 4px 4px 6px;
+  border: none;
+  background-color: white;
+  color: black;
+  font-weight: normal;
+  font-size: large;
+}
+
+h5 {
+  padding: 4px 4px 4px 6px;
+  background-color: white;
+  color: black;
+}

+ 2 - 2
src/site/resources/dbinit.txt

@@ -1,4 +1,4 @@
---- $Id$
+--- $Id: dbinit.txt 1729 2006-11-12 23:03:16Z benalex $
 
 --- Sample Hypersonic SQL compatible schema and data
 ---
@@ -61,7 +61,7 @@ CREATE TABLE acl_permission (
 --- Mask integer 14 = read and write and create permissions
 
 ---------------------------------------------------------------------
---- *** INHERITED RIGHTS FOR DIFFERENT INSTANCES AND RECIPIENTS *** 
+--- *** INHERITED RIGHTS FOR DIFFERENT INSTANCES AND RECIPIENTS ***
 --- INSTANCE  RECIPIENT         PERMISSION(S) (COMMENT #INSTANCE)
 ---------------------------------------------------------------------
 ---    1      ROLE_SUPERVISOR   Administer

+ 0 - 0
src/docbook/resources/images/ACLSecurity.gif → src/site/resources/guide/images/ACLSecurity.gif


+ 0 - 0
src/docbook/resources/images/AccessDecisionVoting.gif → src/site/resources/guide/images/AccessDecisionVoting.gif


+ 0 - 0
src/docbook/resources/images/AfterInvocation.gif → src/site/resources/guide/images/AfterInvocation.gif


+ 0 - 0
src/docbook/resources/images/Authentication.gif → src/site/resources/guide/images/Authentication.gif


+ 0 - 0
src/docbook/resources/images/BasicAclProvider.gif → src/site/resources/guide/images/BasicAclProvider.gif


+ 0 - 0
src/docbook/resources/images/Context.gif → src/site/resources/guide/images/Context.gif


+ 0 - 0
src/docbook/resources/images/Permissions.gif → src/site/resources/guide/images/Permissions.gif


+ 0 - 0
src/docbook/resources/images/SecurityInterception.gif → src/site/resources/guide/images/SecurityInterception.gif


+ 0 - 0
src/docbook/resources/images/logo.gif → src/site/resources/guide/images/logo.gif


+ 0 - 0
src/docbook/resources/images/logo.psd → src/site/resources/guide/images/logo.psd


+ 0 - 70
src/site/resources/powering.html

@@ -1,70 +0,0 @@
-<!--
- * ========================================================================
- * 
- * Copyright 2005 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.
- * 
- * ========================================================================
--->
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-<head>
-<title>Products Using Acegi Security</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-</head>
-
-<body>
-  <h1>Products Using Acegi Security</h1>
-  <p>Many open source and commercial products either use Acegi Security or at least
-	  support it. Following is a partial list of such products. If you've integrated Acegi 
-	  Security with some other product, please let us know (preferably with a URL
-	  to some page explaining the integration/use)...
-	  
-  <h2>Out-Of-the-Box Supported by Acegi Security</h2>
-  <ul>
-    <li><b><a href="http://springframework.org/">Spring Framework</a></b>: J2EE abstraction framework.<br><br></li>
-    <li><b><a href="http://eclipse.org/aspectj/">AspectJ</a></b>: AOP framework.<br><br></li>
-    <li><b><a href="http://jcaptcha.sourceforge.net/">JCaptcha</a></b>: Detects human users.<br><br></li>
-    <li><b><a href="http://www.ja-sig.org/products/cas/">JA-SIG CAS</a></b>: Single Sign On system.<br><br></li>
-    <li><b><a href="http://www3.ca.com/Solutions/Product.asp?ID=5262">SiteMinder</a></b>: Single Sign On system.<br><br></li>
-  </ul>
-
-  <h2>Open Source Projects</h2>
-  <ul>
-    <li><b><a href="http://appfuse.org/">AppFuse</a></b>: Helps jump-start application development. <a href="http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseSecurity">Integration details</a>.<br><br></li>
-    <li><b><a href="http://www.andromda.org">AndroMDA</a></b>: Code generation framework that uses model driven architecture (MDA). <a href="http://team.andromda.org/docs/andromda-spring-cartridge/howto8.html">Integration details</a>.<br><br></li>
-    <li><b><a href="http://mule.codehaus.org/">Mule</a></b>: Enterprise service bus (ESB) messaging framework. <a href="http://mule.codehaus.org/Acegi+Security">Integration details</a>.<br><br></li>
-    <li><b><a href="http://rollerweblogger.org">Roller</a></b>: Blog server. <a href="http://rollerweblogger.org/wiki/Wiki.jsp?page=Proposal_AcegiSecurity">Integration details</a>.<br><br></li>
-    <li><b><a href="http://getahead.ltd.uk/dwr/">DWR</a></b>: AJAX tool. <a href="http://getahead.ltd.uk/dwr/security">Integration details</a>.<br><br></li>
-    <li><b><a href="http://sourceforge.net/projects/oaj">OAJ (OpenAccountingJ)</a></b>: Replaces OpenAccounting PHP.<br><br></li>
-    <li><b><a href="http://oness.sourceforge.net/">ONESS</a></b>: Sample web application.<br><br></li>
-    <li><b><a href="http://sourceforge.net/projects/hispacta">HISPACTA</a></b>: Sample web application.<br><br></li>
-    <li><b><a href="https://atleap.dev.java.net/">Blandware AtLeap</a></b>: Multilingal free Java CMS.<br><br></li>
-    <li><b><a href="http://photostructure.com/">PhotoStructure</a></b>: A photo management solution.<br><br></li>
-    <li><b><a href="http://app.ess.ch/tudu/welcome.action">Tudu Lists</a></b>: AJAX and RSS powered to-do list manager.<br><br></li>
-  </ul>
-
-  <h2>Commercial Deployments</h2>
-  <ul>
-    <li>A global financial institution uses Acegi Security's SiteMinder integration in a physical security management application.<br><br></li>
-    <li>A central bank that uses Acegi Security for many of its internal applications with the CAS integration.<br><br></li>
-    <li>Several Australian Government departments use Acegi Security for securing SOAP-based web services and web applications.<br><br></li>
-    <li>Enterprise Systems and Services at Rutgers University uses Acegi Security in conjunction with JA-SIG Central Authentication Service to provide authentication and authorization capabilities to its applications including those used by staff and students as well as those utilized by web services.<br><br></li>
-	<li>Plus many more... ;-)<br><br></li>
-  </ul>
-
-</body>
-</html>

+ 7 - 22
src/site/site.xml

@@ -22,11 +22,12 @@
 
 <project name="Acegi Security">
   <bannerLeft>
-    <name>Acegi Security</name>
+    <name>Acegi Security on Sourceforge</name>
     <src>http://sourceforge.net/sflogo.php?group_id=104215&amp;type=5</src>
-    <href>http://acegisecurity.sourceforge.net</href>
+    <href>http://sourceforge.net/projects/acegisecurity</href>
   </bannerLeft>
   <bannerRight>
+    <src>Acegi Security</src>
     <src>http://acegisecurity.org/logo.gif</src>
     <href>http://acegisecurity.org/</href>
   </bannerRight>
@@ -37,14 +38,13 @@
     </links>
 
     <menu name="Overview">
-      <item name="Home" href="/"/>
       <item name="Building with Maven" href="building.html"/>
       <item name="Downloads" href="downloads.html"/>
     </menu>
 
     <menu name="Documentation">
       <item name="Suggested Steps" href="suggested.html"/>
-      <item name="Reference Guide" href="docbook/acegi.html"/>
+      <item name="Reference Guide" href="reference.html"/>
       <item name="Sample SQL Schema" href="dbinit.txt"/>
       <item name="FAQ" href="faq.html"/>
       <item name="Petclinic Tutorial" href="petclinic-tutorial.html"/>
@@ -55,28 +55,13 @@
       <item name="Upgrading to 0.9.0" href="upgrade/upgrade-080-090.html"/>
       <item name="Upgrading to 0.8.0" href="upgrade/upgrade-070-080.html"/>
       <item name="Core JavaDocs" href="acegi-security/apidocs/index.html" target="_blank"/>
-      <item name="Contacts HTTPS" href="acegi-security-sample-contacts/ssl/howto.txt"/>
+      <item name="Contacts HTTPS" href="acegi-security-samples/acegi-security-sample-contacts/ssl/howto.txt"/>
       <item name="Project Policies" href="policies.html"/>
       <item name="Acegi Security JIRA" href="http://opensource.atlassian.com/projects/spring/secure/BrowseProject.jspa?id=10040"/>
-      <item name="Blog" href="http://blog.springframework.com/ben.alex/"/>
+      <item name="Core Reports" href="acegi-security/index.html"/>
     </menu>
 
-    <menu name="Projects">
-      <item name="Core Framework" href="acegi-security/index.html"/>
-      <item name="CAS Adapter" href="acegi-security-cas/index.html"/>
-      <item name="Catalina Adapter" href="acegi-security-adapters/acegi-security-catalina/index.html"/>
-      <item name="JBoss Adapter" href="acegi-security-adapters/acegi-security-jboss/index.html"/>
-      <item name="Jetty Adapter" href="acegi-security-adapters/acegi-security-jetty/index.html"/>
-      <item name="Resin Adapter" href="acegi-security-adapters/acegi-security-resin/index.html"/>
-    </menu>
-
-<!--
-    <menu name="Samples">
-      <item name="Contacts" href="acegi-security-sample-contacts/index.html"/>
-      <item name="Attributes" href="acegi-security-sample-attributes/index.html"/>
-    </menu>
--->
-    <menu name="" type="footer">
+    <menu name="Links" type="footer">
       <item name="Spring Framework" href="http://www.springframework.org/" img="http://www.springframework.org/buttons/spring_white.png"/>
     </menu>
 

+ 64 - 74
src/site/resources/articles.html → src/site/xdoc/articles.xml

@@ -1,163 +1,153 @@
-<!--
- * ========================================================================
- * 
- * 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.
- * 
- * ========================================================================
--->
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-<head>
-<title>External Web Articles covering Acegi Security</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-</head>
-
-<body>
-  <h1>External Web Articles covering Acegi Security</h1>
-  <p>Here are some of the external pages mentioning Acegi Security. If you've
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<document><properties><title>External Web Articles covering Acegi Security</title></properties><body><section name="External Web Articles covering Acegi Security"><p>Here are some of the external pages mentioning Acegi Security. If you've
 	found another, please let us know.
   <ul>
     <li><b><a href="http://forum.springframework.org">Spring Forums</a></b>:
-		The first place to look for Acegi Security support (use the 'search' function).<br><br>
+		The first place to look for Acegi Security support (use the 'search' function).<br></br><br></br>
 	</li>
     <li><b><a href="mail-lists.html">Acegi Security Mailing Lists</a></b>:
-		If you'd like to discuss development of the project.<br><br>
+		If you'd like to discuss development of the project.<br></br><br></br>
+	</li>
+    <li><b><a href="powering.html">Numerous frameworks using Acegi Security</a></b>:
+		Look here first for how to integrate with major third-party frameworks...<br></br><br></br>
+	</li>
+    <li><b><a href="http://www.vorburger.ch/blog1/2006/10/propagating-acegis-security-context-in.html">Propagating Acegi Security's Context in a WSS UsernameToken SOAP Header via XFire using WSS4J</a></b>:
+		Thanks to Michael Vorburger.<br></br><br></br>
+	</li>
+    <li><b><a href="http://www.ibm.com/developerworks/java/library/j-acegi1/index.html">DeveloperWorks Series on Using Acegi Security</a></b>:
+		A 3-part series by Bilal Siddiqui.<br></br><br></br>
+	</li>
+    <li><b><a href="http://alexfletcher.typepad.com/all_bets_off/2006/02/what_acegi_mean.html">What Acegi Means to the Enterprise</a></b>:
+		A blog entry by Alex Fletcher.<br></br><br></br>
+	</li>
+    <li><b><a href="http://jroller.com/page/sjivan?entry=ajax_based_login_using_aceci">AJAX-based login via Acegi Security</a></b>:
+		Sanjiv Jivan offers a way of approaching AJAX login.<br></br><br></br>
 	</li>
     <li><b><a href="http://weblog.morosystems.cz/spring/Spring-Acegi-JCaptcha-integration">Acegi Security and Captcha Layer</a></b>:
-		How to use Acegi Security with JCaptcha.<br><br>
+		How to use Acegi Security with JCaptcha.<br></br><br></br>
 	</li>
     <li><b><a href="http://java.sys-con.com/read/171482_1.htm">Introduction to Acegi: Mastering the security framework</a></b>:
-		Java Developer's Journal (JDJ) article by David Hardwick.<br><br>
+		Java Developer's Journal (JDJ) article by David Hardwick.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.javalobby.org/articles/acegisecurity/part1.jsp">Securing Your Java Applications - Acegi Security Style</a></b>:
-		Matthew Porter wrote this good introductory article for Javalobby.<br><br>
+		Matthew Porter wrote this good introductory article for Javalobby.<br></br><br></br>
 	</li>
     <li><b><a href="http://home.hccnet.nl/bart.van.riel/">Acegi Spring Tutorial</a></b>:
-		Available in PDF and HTML formats, thanks to Bart van Riel.<br><br>
+		Available in PDF and HTML formats, thanks to Bart van Riel.<br></br><br></br>
 	</li>
     <li><b><a href="http://peter.jteam.nl/wp-trackback.php?p=6">Testing Acegi Security</a></b>:
-		Peter Veentjer discussed how to test Acegi Security-protected objects in isolation.<br><br>
+		Peter Veentjer discussed how to test Acegi Security-protected objects in isolation.<br></br><br></br>
 	</li>
     <li><b><a href="http://iremia.univ-reunion.fr/intranet/wiki/Wiki.jsp?page=DWRandAcegi">Integrating DWR and Acegi Security</a></b>:
-		Explanation on using Acegi Security's MethodSecurityInterceptor with DWR.<br><br>
+		Explanation on using Acegi Security's MethodSecurityInterceptor with DWR.<br></br><br></br>
 	</li>
     <li><b><a href="http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg05355.html">AspectJ with Acegi Security</a></b>:
-		AspectJ with Acegi Security thread on the AspectJ list.<br><br>
+		AspectJ with Acegi Security thread on the AspectJ list.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.acooke.org/cute/SessionLim0.html">Session Limitation with Acegi Security</a></b>:
-		Andrew Cooke discusses using concurrent sessions.<br><br>
+		Andrew Cooke discusses using concurrent sessions.<br></br><br></br>
 	</li>
     <li><b><a href="http://jroller.com/page/paskos?entry=acegi_portable_independent_and_rich">Acegi: Portable, Independent and Rich Webapp Security</a></b>:
-		Pascal Gehl relates his experience in migrating from CMA to Acegi Security.<br><br>
+		Pascal Gehl relates his experience in migrating from CMA to Acegi Security.<br></br><br></br>
 	</li>
     <li><b><a href="http://affy.blogspot.com/2005/10/how-do-i-create-private-bean-using.html">Creating a private bean with Acegi</a></b>:
-		By David Medinets.<br><br>
+		By David Medinets.<br></br><br></br>
 	</li>
     <li><b><a href="http://affy.blogspot.com/2005/10/acegi-tutorial-example-of-method-based.html">Method based access control and JUnit for testing</a></b>:
-		By David Medinets.<br><br>
+		By David Medinets.<br></br><br></br>
 	</li>
     <li><b><a href="http://affy.blogspot.com/2005/10/acegi-example-of-when-to-use.html">Acegi: When to use AffirmativeBased voting</a></b>:
-		By David Medinets.<br><br>
+		By David Medinets.<br></br><br></br>
 	</li>
     <li><b><a href="http://raibledesigns.com/page/rd/20050617#presentations_acegi_security_and_spring">Acegi Security High-Level Overview Presentation</a></b>:
-		Matt Raible has provided a nice <a href="http://www2.java.no/web/files/moter/mai05/AcegiSecurity.pdf">PDF presentation</a> comparing Acegi Security and J2EE CMA.<br><br>
+		Matt Raible has provided a nice <a href="http://www2.java.no/web/files/moter/mai05/AcegiSecurity.pdf">PDF presentation</a> comparing Acegi Security and J2EE CMA.<br></br><br></br>
 	</li>
     <li><b><a href="http://jroller.com/page/raible?entry=how_to_upgrade_to_upgrade">How to upgrade to upgrade from Acegi Security 0.9.0 to 1.0 RC1</a></b>:
-		Matt Raible's upgrade instructions.<br><br>
+		Matt Raible's upgrade instructions.<br></br><br></br>
 	</li>
     <li><b><a href="http://jaredtech.blogspot.com/2005/08/webworkvelocityacegi-config.html">Webwork + Velocity + Acegi Config</a></b>:
-		Jared Odulio offers some configuration tips.<br><br>
+		Jared Odulio offers some configuration tips.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.almaer.com/blog/archives/000640.html">Container Managed Security: If your standard covers a lowest common denominator</a></b>:
-		"For this reason I end up using something like Acegi Security", Dion Almaer comments after listing a series of missing hooks from the Servlet Spec security approach.<br><br>
+		"For this reason I end up using something like Acegi Security", Dion Almaer comments after listing a series of missing hooks from the Servlet Spec security approach.<br></br><br></br>
 	</li>
     <li><b><a href="http://opensource.atlassian.com/seraph/status.html">Seraph Development Status</a></b>:
-		The fine folks at Atlassian have noted, "for more complex needs than Seraph meets, we suggest considering alternative frameworks like ACEGI, which provides more functionality (at the cost of greater complexity)."<br><br>
+		The fine folks at Atlassian have noted, "for more complex needs than Seraph meets, we suggest considering alternative frameworks like ACEGI, which provides more functionality (at the cost of greater complexity)."<br></br><br></br>
+	</li>
+    <li><b><a href="http://www.javalobby.org/java/forums/t91426.html">Implementing application-specific UserDetails in Acegi</a></b>:
+		Andrei Tudose has provided a JavaLobby article on this common customization point.<br></br><br></br>
 	</li>
     <li><b><a href="http://raibledesigns.com/page/rd/20050104#re_j2ee_app_server_security">J2EE App Server Security</a></b>:
 		"After using Acegi for the last month, I think I'm going to ditch the 'standard' J2EE security stuff", blogged Matt Raible. I should note
-		our CVS tree has become stable and there are <a href="building.html">build instructions</a>.<br><br>
+		our CVS tree has become stable and there are <a href="building.html">build instructions</a>.<br></br><br></br>
 	</li>
     <li><b><a href="http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseAuthentication">AppFuse Authentication</a></b>:
-		Discusses AppFuse 1.8+'s replacement of Container-Managed Authentication (CMA) with Acegi Security.<br><br>
+		Discusses AppFuse 1.8+'s replacement of Container-Managed Authentication (CMA) with Acegi Security.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.jroller.com/page/fairTrade?entry=integrating_acegi_and_jsf_revisited"> Integrating Acegi and JSF: Revisited</a></b>:
-		Thanks to tony_k.<br><br>
+		Thanks to tony_k.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.jroller.com/page/vtatai/20050505#integrating_acegi_with_jsf">Java Server Faces (JSF) with Acegi Security</a></b>:
-		Covers using these two frameworks - thanks to Victor Tatai.<br><br>
+		Covers using these two frameworks - thanks to Victor Tatai.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.jroller.com/page/cagataycivici?entry=acegi_jsf_components_hit_the">Acegi Security Java Server Faces (JSF) components</a></b>:
-		Cagatay Civici has provided a JSF version of our taglibs.<br><br>
+		Cagatay Civici has provided a JSF version of our taglibs.<br></br><br></br>
 	</li>
     <li><b><a href="http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseSecurity">Acegi Security use with AppFuse</a></b>:
-		The popular AppFuse project now uses Acegi Security instead of container managed authentication!<br><br>
+		The popular AppFuse project now uses Acegi Security instead of container managed authentication!<br></br><br></br>
 	</li>
     <li><b><a href="http://jroller.com/page/habuma/20041124#simplifying_acegi_configuration">Simplifying Acegi Configuration</a></b>:
 		Craig Walls provides a good approach to reusing your Acegi Security configuration between projects. This has been
-		<a href="http://www.picklematrix.net/archives/000974.html">updated</a> by Seth Ladd for release 0.7.0.<br><br>
+		<a href="http://www.picklematrix.net/archives/000974.html">updated</a> by Seth Ladd for release 0.7.0.<br></br><br></br>
 	</li>
     <li><b><a href="http://confluence.sourcebeat.com/display/SPL/Update+Chapters">Spring Live Update Chapters</a></b>:
-		Matt Raible is including Acegi Security in Chapter 12 of his popular ebook.<br><br>
+		Matt Raible is including Acegi Security in Chapter 12 of his popular ebook.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.china-pub.com/computers/common/info.asp?id=24483">Mastering Spring (Chinese) Book</a></b>:
-		Acegi Security is included in Chapter 17 of this book.<br><br>
+		Acegi Security is included in Chapter 17 of this book.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.manning.com/walls2">Spring In Action</a></b>:
-		Craig Walls has also written another popular Spring book, which includes Acegi Security in Chapter 11.<br><br>
+		Craig Walls has also written another popular Spring book, which includes Acegi Security in Chapter 11.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.ja-sig.org/products/cas/client/faq.html#8">Central Authentication Service FAQ</a></b>:
-		A general overview of how Acegi Security is used with JA-SIG's CAS.<br><br>
+		A general overview of how Acegi Security is used with JA-SIG's CAS.<br></br><br></br>
 	</li>
     <li><b><a href="http://oness.sourceforge.net/JavaHispano%20Acegi%20presentacion.pdf">JavaHispano 2004 Acegi Security Presentation</a></b>:
 		Carlos Sanchez's presentation (in Spanish), delivered 17 December 2004. An
         <a href="http://oness.sourceforge.net/JavaHispano%20Acegi.pdf">article</a> was also published.
-        <br><br>
+        <br></br><br></br>
 	</li>
     <li><b><a href="http://up-u.com/?p=183">Annotations in Acegi Security</a></b>:
-		An implementation of JDK 1.5 annotations with Acegi Security's SecurityConfig.<br><br>
+		An implementation of JDK 1.5 annotations with Acegi Security's SecurityConfig.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.fstxblog.com/completely-geeked/2005/05/java-acegi-security-simple-example-v2.html">Acegi Security - The Simplest Possible Example</a></b>:
-		Reid Carlberg has provided a downloadable WAR containing the simplest possible Acegi Security 0.8.2 configuration.<br><br>
+		Reid Carlberg has provided a downloadable WAR containing the simplest possible Acegi Security 0.8.2 configuration.<br></br><br></br>
 	</li>
     <li><b><a href="http://fishdujour.typepad.com/blog/2005/02/junit_testing_w.html">JUnit Testing with Acegi Security</a></b>:
-		A tip from Gavin Terrill on unit testing with Acegi Security.<br><br>
+		A tip from Gavin Terrill on unit testing with Acegi Security.<br></br><br></br>
 	</li>
     <li><b><a href="http://jroller.com/page/carlossg/20050226#acegi_security_reducing_configuration_in">Acegi Security: reducing configuration in web.xml</a></b>:
-		Carlos Sanchez provides an overview of our new <code>FilterChainProxy</code> class.<br><br>
+		Carlos Sanchez provides an overview of our new <code>FilterChainProxy</code> class.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.manageability.org/blog/stuff/single-sign-on-in-java/view">Open Source Identity Management Solutions Written in Java</a></b>:
-		From <code>manageability.org</code>.<br><br>
+		From <code>manageability.org</code>.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.porterhome.com/blog/matthew/2005/03/13/1110732830996.html">WW Live: Integrating Acegi and WebWork</a></b>:
-		Discussion about enhancing Acegi Security and WebWork integration.<br><br>
+		Discussion about enhancing Acegi Security and WebWork integration.<br></br><br></br>
 	</li>
     <li><b><a href="http://www.orablogs.com/fnimphius/archives/000730.html">J2EE Security: Struts "Shale" proposal does improve web application security</a></b>:
 		Frank Nimphius' blog contains some comments on Acegi Security. See
-		our <a href="faq.html">FAQ</a> for additional JAAS comments.<br><br>
+		our <a href="faq.html">FAQ</a> for additional JAAS comments.<br></br><br></br>
 	</li>
     <li><b><a href="http://jakarta.apache.org/commons/attributes/faq.html">Anyone else using C-A (Commons Attributes)?</a></b>: Acegi Security made the list
 		of projects using Jakarta Commons Attributes. Our
 		<a href="/multiproject/acegi-security-sample-attributes/index.html">Attributes Sample</a>
-		demonstrates C-A integration.<br><br>
+		demonstrates C-A integration.<br></br><br></br>
 	</li>
-    <li><b><a href="http://www.arroco.com/cgi-bin/blosxom.cgi/2005/08/22#acegi-javadoc">Documenting the Future At the Expense of the Present</a></b>: 
-		Blog entry on the JavaDocs missing from Acegi release ZIPs. They're actually there. Just check /docs/multiproject/acegi-security/apidocs/.<br><br>
+    <li><b><a href="http://www.arroco.com/cgi-bin/blosxom.cgi/2005/08/22#acegi-javadoc">Documenting the Future At the Expense of the Present</a></b>:
+		Blog entry on the JavaDocs missing from Acegi release ZIPs. They're actually there. Just check /docs/multiproject/acegi-security/apidocs/.<br></br><br></br>
 	</li>
   </ul>
-</body>
-</html>
+
+
+</p></section></body></document>

+ 40 - 0
src/site/xdoc/building.xml

@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<document>
+    <properties><title>Building</title></properties>
+    <body>
+    <section name="Building Acegi Security System">
+
+    <subsection name="Checking Out from Subversion (SVN)">
+
+        <p>This project uses <a href="http://maven.apache.org">Maven</a> as project manager
+	and build tool.	We recommend you to install Maven 2.0.5 or greater before trying
+	the following. <b>Note there are workarounds at the bottom of this page.</b></p><p>To checkout Acegi Security from SVN, see our
+  <a href="cvs-usage.html">CVS Usage</a> page.</p>
+
+    </subsection>
+
+    <subsection name="Quick Build"><p>Often people reading this document just want to see if Acegi Security will work
+	for their projects. They want to deploy a sample application, and that's about it
+	(after all, all the reference documentation can be read online at
+	<a href="http://acegisecurity.org">http://acegisecurity.org</a>).
+	In this case, execute:</p>
+    <ol>
+	<pre>cd $ACEGI_SECURITY/core (or cd %ACEGI_SECURITY%/core on Windows)</pre>
+	<pre>mvn install</pre>
+	<pre>cd $ACEGI_SECURITY/samples/contacts</pre>
+	<pre>mvn package</pre>
+    <pre>mvn jetty:run</pre>
+    </ol>
+
+    <p>This should build main framework library, build the sample application and run the "contacts" sample application
+       using the maven jetty plugin. You should then be able to point your browser at
+       <a href="http://localhost:8080/contacts/">http://localhost:8080/contacts/</a> to use the application.
+    </p>
+
+</subsection>
+
+</section>
+
+</body>
+
+</document>

+ 33 - 0
src/site/xdoc/cvs-usage.xml

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<document>
+    <properties>
+        <title>Subversion Usage</title>
+    </properties>
+    <body>
+        <section name="Accessing the Source">
+            <subsection name="Web Access">
+                <p>
+                    You can browse the source tree directly via
+                    <a href="http://acegisecurity.svn.sourceforge.net/viewvc/acegisecurity/">
+                        http://acegisecurity.svn.sourceforge.net/viewvc/acegisecurity/
+                    </a>
+                </p>
+            </subsection>
+            <subsection name="Subversion Command-Line Access">
+                <p>
+                    The code can be checked out anonymously with the following command:
+                </p>
+                <p>
+                    svn co http://acegisecurity.svn.sourceforge.net/svnroot/acegisecurity/spring-security/trunk/
+                </p>
+
+            </subsection>
+            <subsection name="Nightly Snapshots">
+                <p>If you'd prefer not to use subversion directly, please see our
+                    <a href="downloads.html">downloads page</a>
+                    for nightly snapshots.
+                </p>
+            </subsection>
+        </section>
+    </body>
+</document>

+ 28 - 0
src/site/xdoc/downloads.xml

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<document><properties><title>Acegi Security Downloads</title></properties><body><section name="Acegi Security Downloads"><p>If you wish to try out this project, you are probably looking for the
+  <strong>acegi-security-xx.zip</strong> file, which contains all of the officially
+  released JARs, a copy of all documentation, and two WAR artifacts. The two WAR artifacts
+  are from the Contacts Sample and the Tutorial Sample application. The Tutorial Sample
+  consists of a "bare bones" configuration that will get you up and running quickly, whereas
+  the Contacts Sample illustrates more advanced features.</p><p>Please note that in order to reduce download size, we only include in the
+  release ZIP one of the WAR artifacts produced by the Contacts Sample application.
+  The WAR artifact we include is suitable for standalone deployment (specifically, it
+  does not require a CAS server, container adapter, X509 or LDAP setup). The official release ZIP
+  therefore probably contains what you need, especially if you're initially
+  evaluating the project. If you wish to deploy the other WAR artifacts produced by
+  the Contacts Sample application (ie those that target CAS, container adapters, X509 or LDAP usage),
+  you will need to build Acegi Security from source.
+
+  </p><p>The acegi-security-xx-src.zip is intended for use with IDEs. It does not contain the
+  files needed to compile Acegi Security. It also does not contain the sources to the
+  sample applications. If you need any of these files, please download from SVN.</p><subsection name="Official Releases"><p>The official release ZIP files are available from the
+  <a href="http://sourceforge.net/project/showfiles.php?group_id=104215">Sourceforge File Release System</a>.</p></subsection><subsection name="Maven Dependencies"><p>The Acegi Security JARs are also available via the
+  <a href="http://www.ibiblio.org/maven2/org/acegisecurity">iBiblio Maven Repository</a>.</p></subsection><subsection name="Building From Source"><p>Detailed instructions on downloading from CVS and building from source
+  are provided on the <a href="building.html">Building with Maven</a>
+  page.</p></subsection><subsection name="SVN Snapshots and Daily Builds"><p>
+  If you don't wish to access SVN directly, we provide
+  <a href="http://acegisecurity.sourceforge.net/nightly/">nightly SVN exports</a> for your convenience.
+  There is also an automated build which uploads bundle of Acegi Security jar files to the same location.
+  Both binary and source archives have the date of the build and the SVN revision number appended to the filename,
+  so you can match them up easily.
+  </p></subsection></section></body></document>

+ 147 - 146
src/site/resources/faq.html → src/site/xdoc/faq.xml

@@ -1,36 +1,16 @@
-<!--
- * ========================================================================
- * 
- * 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.
- * 
- * ========================================================================
--->
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-<head>
-<title>Frequently Asked Questions (FAQ) on Acegi Security</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-</head>
-
-<body>
-  <h1>Frequently Asked Questions</h1>
-  
-  <h2>What is Acegi Security?</h2>
-  <p>Acegi Security is an open source project that provides comprehensive authentication
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<document>
+    <properties>
+        <title>Frequently Asked Questions (FAQ) on Acegi Security</title>
+    </properties>
+
+    <body>
+
+    <section name="Frequently Asked Questions">
+
+    <subsection name="What is Acegi Security?">
+
+    <p>Acegi Security is an open source project that provides comprehensive authentication
 	and authorisation services for enterprise applications based on
 	<a href="http://www.springframework.org">The Spring Framework</a>.
 	Acegi Security can authenticate using a variety of pluggable providers, and
@@ -38,32 +18,35 @@
 	Acegi Security provides an integrated security approach across
 	these various targets, and also offers access control list (ACL) capabilities to
 	enable individual domain object instances to be secured. At an implementation
-	level, Acegi Security is managed through Spring's inversion of control and 
+	level, Acegi Security is managed through Spring's inversion of control and
 	lifecycle services,	and actually enforces security using interception through
 	servlet Filters and Java AOP frameworks. In terms of AOP framework support, Acegi
 	Security currently supports AOP Alliance (which is what the
 	Spring IoC container uses internally) and AspectJ, although additional frameworks
 	can be easily supported.</p>
 
-  <h2>Why not just use web.xml security?</h2>
-  <p>Let's assume you're developing an enterprise application based on Spring.
+    </subsection>
+
+    <subsection name="Why not just use web.xml security?">
+
+    <p>Let's assume you're developing an enterprise application based on Spring.
 	There are four security concerns you typically need to address: authentication,
 	web request security, service layer security (ie your methods that implement
 	business logic), and domain object instance security (ie different domain objects
 	have different permissions). With these typical requirements in mind:
 	<ol>
 		<li><b>Authentication</b>: The servlet specification provides an approach
-			to authentication. However, you will need to configure the container 
+			to authentication. However, you will need to configure the container
 			to perform authentication which typically requires editing of
 			container-specific "realm" settings. This makes a non-portable
-			configuration, and if you need to write an actual Java class to implement 
+			configuration, and if you need to write an actual Java class to implement
 			the container's authentication interface, it becomes even more non-portable.
-			With Acegi Security you achieve complete portability - right down to the 
+			With Acegi Security you achieve complete portability - right down to the
 			WAR level. Also, Acegi Security offers a choice of production-proven
-			authentication providers and mechanisms, meaning you can switch your 
+			authentication providers and mechanisms, meaning you can switch your
 			authentication approaches at deployment time. This is particularly
 			valuable for software vendors writing products that need to work in
-			an unknown target environment.<br><br></li>
+			an unknown target environment.<br></br><br></br></li>
 		<li><b>Web request security:</b> The servlet specification provides an
 			approach to secure your request URIs. However, these URIs can only be
 			expressed in the servlet specification's own limited URI path format.
@@ -72,132 +55,145 @@
 			URI other than simply the requested page (eg you can consider HTTP GET
 			parameters), and you can implement your own runtime source of configuration
 			data. This means your web request security can be dynamically changed during
-			the actual execution of your webapp.<br><br></li>
-		<li><b>Service layer and domain object security:</b> The absence of support 
-			in the servlet specification for services layer security or domain object 
-			instance security represent serious limitations for multi-tiered 
+			the actual execution of your webapp.<br></br><br></br></li>
+		<li><b>Service layer and domain object security:</b> The absence of support
+			in the servlet specification for services layer security or domain object
+			instance security represent serious limitations for multi-tiered
 			applications. Typically developers either ignore these requirements, or
 			implement security logic within their MVC controller code (or even worse,
-			inside the views). There are serious disadvantages with this approach:<br><br>
+			inside the views). There are serious disadvantages with this approach:<br></br><br></br>
 				<ol>
-					<li><i>Separation of concerns:</i> Authorization is a 
-						crosscutting concern and should be implemented as such. 
-						MVC controllers or views implementing authorization code 
-						makes it more difficult to test both the controller and 
-						authorization logic, more difficult to debug, and will 
+					<li><i>Separation of concerns:</i> Authorization is a
+						crosscutting concern and should be implemented as such.
+						MVC controllers or views implementing authorization code
+						makes it more difficult to test both the controller and
+						authorization logic, more difficult to debug, and will
 						often lead to code duplication.</li>
-					<li><i>Support for rich clients and web services:</i> If an 
-						additional client type must ultimately be supported, any 
-						authorization code embedded within the web layer is 
-						non-reusable. It should be considered that Spring remoting 
-						exporters only export service layer beans (not MVC 
-						controllers). As such authorization logic needs to be 
-						located in the services layer to support a multitude of 
+					<li><i>Support for rich clients and web services:</i> If an
+						additional client type must ultimately be supported, any
+						authorization code embedded within the web layer is
+						non-reusable. It should be considered that Spring remoting
+						exporters only export service layer beans (not MVC
+						controllers). As such authorization logic needs to be
+						located in the services layer to support a multitude of
 						client types.</li>
-					<li><i>Layering issues:</i> An MVC controller or view is simply 
-						the incorrect architectural layer to implement authorization 
-						decisions concerning services layer methods or domain object 
-						instances. Whilst the Principal may be passed to the services 
-						layer to enable it to make the authorization decision, doing 
-						so would introduce an additional argument on every services 
-						layer method. A more elegant approach is to use a ThreadLocal 
-						to hold the Principal, although this would likely increase 
+					<li><i>Layering issues:</i> An MVC controller or view is simply
+						the incorrect architectural layer to implement authorization
+						decisions concerning services layer methods or domain object
+						instances. Whilst the Principal may be passed to the services
+						layer to enable it to make the authorization decision, doing
+						so would introduce an additional argument on every services
+						layer method. A more elegant approach is to use a ThreadLocal
+						to hold the Principal, although this would likely increase
 						development time to a point where it would become more
-						economical (on a cost-benefit basis) to simply use a dedicated 
+						economical (on a cost-benefit basis) to simply use a dedicated
 						security framework.</li>
-					<li><i>Authorisation code quality:</i> It is often said of web 
-						frameworks that they "make it easier to do the right things, 
-						and harder to do the wrong things". Security frameworks are 
-						the same, because they are designed in an abstract manner for 
-						a wide range of purposes. Writing your own authorization code 
-						from scratch does not provide the "design check" a framework 
-						would offer, and in-house authorization code will typically 
-						lack the improvements that emerge from widespread deployment, 
+					<li><i>Authorisation code quality:</i> It is often said of web
+						frameworks that they "make it easier to do the right things,
+						and harder to do the wrong things". Security frameworks are
+						the same, because they are designed in an abstract manner for
+						a wide range of purposes. Writing your own authorization code
+						from scratch does not provide the "design check" a framework
+						would offer, and in-house authorization code will typically
+						lack the improvements that emerge from widespread deployment,
 						peer review and new versions.
-				</ol>
+				</li></ol>
 				</li>
 	</ol>
 	For simple applications, servlet specification security may just be enough.
-	Although when considered within the context of web container portability, 
-	configuration requirements, limited web request security flexibility, and 
-	non-existent services layer and domain object instance security, it becomes 
+	Although when considered within the context of web container portability,
+	configuration requirements, limited web request security flexibility, and
+	non-existent services layer and domain object instance security, it becomes
 	clear why developers often look to alternative solutions.
-	</p>
+	</p></subsection>
 
-  <h2>How do you pronounce "Acegi"?</h2>
-  <p><i>Ah-see-gee</i>. Said quickly, without emphasis on any part.
+    <subsection name="How do you pronounce &quot;Acegi&quot;?">
+
+    <p><i>Ah-see-gee</i>. Said quickly, without emphasis on any part.
 	Acegi isn't an acronym, name of a Greek God or anything similarly
 	impressive - it's just letters #1, #3, #5, #7 and #9 of the alphabet.</p>
 
-  <h2>Is it called "Acegi" or "Acegi Security"?</h2>
-  <p>It's official name is <i>Acegi Security System for Spring</i>,
+    </subsection>
+
+    <subsection name="Is it called &quot;Acegi&quot; or &quot;Acegi Security&quot;?">
+
+    <p>It's official name is <i>Acegi Security System for Spring</i>,
 	although we're happy for it to be abbreviated to
 	<i>Acegi Security</i>. Please don't just call it <i>Acegi</i>, though,
 	as that gets confused with the name of the company that maintains Acegi
-	Security.</p>
+	Security.</p></subsection>
+
+    <subsection name="What catches 80% of users reporting problems?">
 
-  <h2>What catches 80% of users reporting problems?</h2>
-  <p>80% of support questions are because people have not defined
+    <p>80% of support questions are because people have not defined
 	the necessary filters in <code>web.xml</code>, or the filters are being
-	mapped in the incorrect order. Check the 
+	mapped in the incorrect order. Check the
 	<a href="reference.html">Reference Guide</a>, which
-	has a specific section on filter ordering.</p>
-  
-  <h2>I'm sure my filters are ordered correctly. What else could be wrong?</h2>
-  <p>The next most common source of problems stem from custom
+	has a specific section on filter ordering.</p></subsection>
+
+    <subsection name="I&apos;m sure my filters are ordered correctly. What else could be wrong?">
+
+    <p>The next most common source of problems stem from custom
 	<code>AuthenticationDao</code> implementations that simply don't properly
 	implement the interface contract. For example, they return <code>null</code> instead
 	of the user not found exception, or fail to add in the
 	<code>GrantedAuthority[]</code>s. Whilst <code>DaoAuthenticationProvider</code>
-	does its best to check the <code>AuthenticationDao</code> returns a valid 
+	does its best to check the <code>AuthenticationDao</code> returns a valid
 	<code>UserDetails</code>, we suggest you write the
-	<code>UserDetails</code> object to the log and check it looks correct.</p>
+	<code>UserDetails</code> object to the log and check it looks correct.</p></subsection>
 
-  <h2>Common Problem #1: My application goes into an "endless loop" when I try to login, what's going on?</h2>
-  <p>A common user problem with infinite loop and redirecting to the login page
+    <subsection name="Common Problem #1: My application goes into an &quot;endless loop&quot; when I try to login, what&apos;s going on?">
+
+    <p>A common user problem with infinite loop and redirecting to the login page
      is caused by accidently configuring the login page as a "secured" resource.
      Generally make sure you mark your login page as requiring ROLE_ANONYMOUS.
-     </p>
+     </p></subsection>
+
+     <subsection name="Common Problem #2: My application pages don&apos;t seem to be protected.">
 
-  <h2>Common Problem #2: My application pages don't seem to be protected.</h2>
-  <p>If you are securing web resources and they dont seem to be matched in the URL patterns,
+     <p>If you are securing web resources and they dont seem to be matched in the URL patterns,
      check the objectDefinitionSource in the FilterSecurityInterceptor.
      If you are using the <tt>CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON</tt> setting,
      then the URL patterns configured MUST be in lowercase.
-  <p>
-     For example, making a request ending in <tt>/someAction.do</tt> will need 
+  </p><p>
+     For example, making a request ending in <tt>/someAction.do</tt> will need
      to be configured as: <tt>/someaction.do</tt> (Note the case).
 <pre>
-&lt;property name="objectDefinitionSource">
-  &lt;value>
+&lt;property name="objectDefinitionSource"&gt;
+  &lt;value&gt;
     CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
     PATTERN_TYPE_APACHE_ANT
     /index.jsp=ROLE_ANONYMOUS,ROLE_USER
-    /someaction.do=ROLE_USER     			    
-  &lt;value>
-&lt;/property>     
+    /someaction.do=ROLE_USER
+  &lt;value&gt;
+&lt;/property&gt;
 </pre>
 
-  <h2>Common Problem #3: How do I disable a user after a number of failed logins?</h2>
-  <p>A common user requirement is to disable / lock an account after a number of failed login attempts.
-     Acegi itself does not provide anything "out of the box", however in your application you can implement 
+  </p></subsection>
+
+  <subsection name="Common Problem #3: How do I disable a user after a number of failed logins?">
+
+     <p>A common user requirement is to disable / lock an account after a number of failed login attempts.
+     Acegi itself does not provide anything "out of the box", however in your application you can implement
      and register an <tt>org.springframework.context.ApplicationListener</tt>. Inside your application
      event listener you can then check for an instanceof the particular <tt>AuthenticationFailureEvent</tt>
      and then call your application user management interface to update the user details.
-     <p>
+     </p><p>
      For example:
      <pre>
      public void onApplicationEvent(ApplicationEvent event) {
-     
+
        // check failed event
        if(event instanceof AuthenticationFailurePasswordEvent){
           // call user management interface to increment failed login attempts, etc.
           . . .
-       }  
+       }
      }
      </pre>
 
-  <h2>Common Problem #4: I am changing my password using a web controller and DAO, why is my password still not being refreshed?</h2>
+  </p></subsection>
+
+  <subsection name="Common Problem #4: I am changing my password using a web controller and DAO, why is my password still not being refreshed?">
   <p>There are three things you must do to make a user password change take affect:
   <ul>
   <li> Change the password using your authentication DAO</li>
@@ -205,48 +201,54 @@
   <li> Update the <tt>SecurityContextHolder</tt> to include the new <tt>Authentication</tt> object and password</li>
   </ul>
 
-  <h2>I need some help. What files should I post?</h2>
+  </p>
+
+  </subsection>
+
+  <subsection name="I need some help. What files should I post?">
+
   <p>The most important things to post with any support requests on the
 	<a href="http://forum.springframework.org">Spring Forums</a> are your
 	<code>web.xml</code>, <code>applicationContext.xml</code> (or whichever
 	XML loads the security-related beans) as well as any custom
 	<code>AuthenticationDao</code> you might be using. For really odd problems,
-	also switch on debug-level logging and include the resulting log.</p>
+	also switch on debug-level logging and include the resulting log.</p></subsection>
+
+  <subsection name="How do I switch on debug-level logging?">
 
-  <h2>How do I switch on debug-level logging?</h2>
   <p>Acegi Security uses Commons Logging, just as Spring does. So you use the
 	same approach as you'd use for Spring. Most people output to Log4J, so
-	the following <code>log4j.properties</code> would work:</p>
-	
-	<pre>
+	the following <code>log4j.properties</code> would work:</p><source>
 		log4j.rootCategory=WARN, stdout
-		
+
 		log4j.appender.stdout=org.apache.log4j.ConsoleAppender
 		log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 		log4j.appender.stdout.layout.ConversionPattern=%d %p %c - %m%n
-		
-		log4j.category.net.sf.acegisecurity=DEBUG</pre>
 
-  <h2>How do I store custom properties, like a user's email address?</h2>
+		log4j.category.net.sf.acegisecurity=DEBUG
+
+  </source></subsection>
+
+  <subsection name="How do I store custom properties, like a user&apos;s email address?">
+
   <p>In most cases write an <code>AuthenticationDao</code> which returns
 	a subclass of <code>User</code>. Alternatively, write your own
-	<code>UserDetails</code> implementation from scratch and return that.</p>
+	<code>UserDetails</code> implementation from scratch and return that.</p></subsection>
+
+  <subsection name="Why doesn&apos;t Acegi Security use JAAS?">
 
-  <h2>Why doesn't Acegi Security use JAAS?</h2>
-  <p>Acegi Security targets <i>enterprise applications</i>, which are typically
+    <p>Acegi Security targets <i>enterprise applications</i>, which are typically
 	multi-user, data-oriented applications that are important to
 	the core business. Acegi Security was designed to provide a portable and effective
 	security framework for this target application type. It was not designed for securing
 	limited privilege runtime environments, such as web browser applets.</p>
-	
-	<p>We did consider JAAS when designing Acegi Security, but it simply
+
+    <p>We did consider JAAS when designing Acegi Security, but it simply
 	wasn't suitable for our purpose. We needed to avoid complex JRE configurations,
 	we needed container portability, and we wanted maximum leveraging of the Spring IoC
 	container. Particularly as limited privilege runtime environments were not
 	an actual requirement, this lead to the natural design of Acegi Security as
-	it exists today.</p>
-	
-	<p>Acegi Security already provides some JAAS integration. It can today authenticate
+	it exists today.</p><p>Acegi Security already provides some JAAS integration. It can today authenticate
 	via delegation to a JAAS login module. This means it offers the same level of JAAS
 	integration as many web containers. Indeed the container adapter model supported by
 	Acegi Security allows Acegi Security and container-managed security to happily
@@ -254,34 +256,33 @@
 	should therefore centre on the authorisation issue. An evaluation of major
 	containers and security frameworks would reveal that Acegi Security is by no
 	means unusual in not using JAAS for authorisation.</p>
-	
-	<p>There are many examples of open source applications being preferred to
+    <p>There are many examples of open source applications being preferred to
 	official standards. A few that come to mind in the Java community include
 	using Spring managed POJOs (rather than EJBs), Hibernate (instead of entity beans),
 	Log4J (instead of JDK logging), Tapestry (instead of JSF), and Velocity/FreeMarker
 	(instead of JSP). It's important to recognise that many open source projects do
 	develop into de facto standards, and in doing so play a legitimate and beneficial
-	role in professional software development.</p>
+	role in professional software development.</p></subsection>
 
-  <h2>Do you welcome contributions?</h2>
-  <p>Yes. If you've written something and it works well, please feel free to share it.
-	Simply email the contribution to the 
+    <subsection name="Do you welcome contributions?">
+    <p>Yes. If you've written something and it works well, please feel free to share it.
+	Simply email the contribution to the
 	<a href="mail-lists.html">acegisecurity-developers</a> list. If you haven't yet
-	written the contribution, we encourage you to send your thoughts to the same 
+	written the contribution, we encourage you to send your thoughts to the same
 	list so that you can receive some initial design feedback.</p>
-	
-	<p>For a contribution to be used, it must have appropriate unit test coverage and
+    <p>For a contribution to be used, it must have appropriate unit test coverage and
 	detailed JavaDocs. It will ideally have some comments for the Reference Guide
 	as well (this can be sent in word processor or HTML format if desired). This
 	helps ensure the contribution maintains the same quality as the remainder of
-	the project.</p>
-	
-	<p>We also welcome documentation improvements, unit tests, illustrations,
+	the project.</p><p>We also welcome documentation improvements, unit tests, illustrations,
 	people supporting the user community (especially on the forums), design ideas,
 	articles, blog entries, presentations and alike. If you're looking for something
 	to do, you can always email the
 	<a href="mail-lists.html">acegisecurity-developers</a> list and we'll be
-	pleased to suggest something. :-)</p>
+	pleased to suggest something. :-)</p></subsection>
+
+    </section>
+
+    </body>
 
-</body>
-</html>
+    </document>

+ 54 - 82
src/site/resources/policies.html → src/site/xdoc/policies.xml

@@ -1,131 +1,103 @@
-<!--
- * ========================================================================
- * 
- * Copyright 2005 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.
- * 
- * ========================================================================
--->
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-<head>
-<title>Project Policies and Procedures</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-</head>
-
-<body>
-  <h1>Project Policies and Procedures Version 1.0</h1>
-  <p>The following policies and procedures are intended to ensure that Acegi Security will
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<document><properties><title>Project Policies and Procedures</title></properties><body><section name="Project Policies and Procedures Version 1.0"><p>The following policies and procedures are intended to ensure that Acegi Security will
   continue to achieve its project objectives and support the community in the context of an
   expanding development team.
-  
-  <p>
+
+  </p><p>
   The following was unanimously supported by the community supporting following
   <a href="http://www.mail-archive.com/acegisecurity-developer%40lists.sourceforge.net/msg01174.html">discussion</a>
   on acegisecurity-developer. The policies and procedures below represent version 1.0
   and are effective 1 August 2005.
   <ul type="1">
-  
+
     <li>
-    This project uses <a href="http://opensource.atlassian.com/projects/spring/secure/BrowseProject.jspa?id=10040">JIRA</a>. Please log a task in JIRA for any changes you make to SVN, with the exception of very minor changes that users are unlikely to ever be interested in searching for and/or the change affects code that has never been in an officially released version of the project (eg ongoing changes to a new feature in SVN HEAD that hasn't been released previously).<br><br>
+    This project uses <a href="http://opensource.atlassian.com/projects/spring/secure/BrowseProject.jspa?id=10040">JIRA</a>. Please log a task in JIRA for any changes you make to SVN, with the exception of very minor changes that users are unlikely to ever be interested in searching for and/or the change affects code that has never been in an officially released version of the project (eg ongoing changes to a new feature in SVN HEAD that hasn't been released previously).<br></br><br></br>
 	</li>
-	
+
 	<li>
-	Any users running from SVN HEAD are warmly encouraged to <a href="http://lists.sourceforge.net/mailman/listinfo/acegisecurity-cvs">join acegisecurity-cvs</a> so that they can keep an eye on commit comments. Developers are encouraged to join acegisecurity-cvs and read the commit comments. If anyone has a concern with any commit, please raise it on <a href="http://lists.sourceforge.net/mailman/listinfo/acegisecurity-developer">acegisecurity-developer</a> so that the broader community can participate (not acegisecurity-cvs). Alternatively, contact the author of the change directly if you think that would be more appropriate or diplomatic.<br><br>
+	Any users running from SVN HEAD are warmly encouraged to <a href="http://lists.sourceforge.net/mailman/listinfo/acegisecurity-cvs">join acegisecurity-cvs</a> so that they can keep an eye on commit comments. Developers are encouraged to join acegisecurity-cvs and read the commit comments. If anyone has a concern with any commit, please raise it on <a href="http://lists.sourceforge.net/mailman/listinfo/acegisecurity-developer">acegisecurity-developer</a> so that the broader community can participate (not acegisecurity-cvs). Alternatively, contact the author of the change directly if you think that would be more appropriate or diplomatic.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	Please make your commit comments informative, yet not too detailed. Detailed comments are ideally placed in the JIRA task. In the case of a contribution by a non-developer, please use the SVN commits to reflect who provided the contribution and add that person's name to /pom.xml in the contributors section. If the contributors section does not list the name of someone who has contributed accepted code, please add them or let me know so that I can do so.<br><br>
+	Please make your commit comments informative, yet not too detailed. Detailed comments are ideally placed in the JIRA task. In the case of a contribution by a non-developer, please use the SVN commits to reflect who provided the contribution and add that person's name to /pom.xml in the contributors section. If the contributors section does not list the name of someone who has contributed accepted code, please add them or let me know so that I can do so.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	If you add a major new feature, please announce it on acegisecurity-developer. That way people using the project have an idea of what is coming up in the next release, and any implementation-specific comments can be received prior to the first release when users will start expecting some degree of consistency and stability. It also encourages people to try out your new feature.<br><br>
+	If you add a major new feature, please announce it on acegisecurity-developer. That way people using the project have an idea of what is coming up in the next release, and any implementation-specific comments can be received prior to the first release when users will start expecting some degree of consistency and stability. It also encourages people to try out your new feature.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	Please make sure /docs/xdocs/changes.xml has a reference to JIRA for the upcoming release version.  You don't need to add the name of contributors to /doc/xdocs/changes.xml, as acknowledgement is already provided via /pom.xml, source code @author tags, the SVN commit message, and typically a JIRA task.<br><br>
+	Please make sure /docs/xdocs/changes.xml has a reference to JIRA for the upcoming release version.  You don't need to add the name of contributors to /doc/xdocs/changes.xml, as acknowledgement is already provided via /pom.xml, source code @author tags, the SVN commit message, and typically a JIRA task.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	Please edit /docs/xdocs/upgrade/upgrade-xx-yy.html if you make a change that is significant and you think users who are upgrading should be aware of it. Equally, users are encouraged to consult the upgrade-xx-yy.html file before they deploy subsequent official release JARs.<br><br>
+	Please edit /docs/xdocs/upgrade/upgrade-xx-yy.html if you make a change that is significant and you think users who are upgrading should be aware of it. Equally, users are encouraged to consult the upgrade-xx-yy.html file before they deploy subsequent official release JARs.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	Please use Jalopy with the /jalopy.xml file to format your Java code before checkin. This keeps our code consistent and ensures the license message is correct. There are plugins for all major IDEs.<br><br>
+	Please use Jalopy with the /jalopy.xml file to format your Java code before checkin. This keeps our code consistent and ensures the license message is correct. There are plugins for all major IDEs.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	The /sandbox can be used to obtain feedback from fellow developers and the community about your code, general approach or new ideas. If you have SVN rights, please use /sandbox instead of emailing ZIP files to other developers for feedback. The community should understand that code in the sandbox is unsupported, subject to refactoring, may not have any unit tests, and may be removed at any time. The /sandbox will never be included in official release ZIPs. It's a "scratching pad" only.<br><br>
+	The /sandbox can be used to obtain feedback from fellow developers and the community about your code, general approach or new ideas. If you have SVN rights, please use /sandbox instead of emailing ZIP files to other developers for feedback. The community should understand that code in the sandbox is unsupported, subject to refactoring, may not have any unit tests, and may be removed at any time. The /sandbox will never be included in official release ZIPs. It's a "scratching pad" only.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	Unit tests are important to any security project, and we have a good history of high coverage. You can view the <a href="http://acegisecurity.sourceforge.net/multiproject/acegi-security/clover/index.html">latest coverage report</a> online (rebuilt every 24 hours). Please keep an eye on coverage and don't hesitate to add more unit tests. Please do not check code into /core unless it has at least an exercising unit test - use the /sandbox instead.<br><br>
+	Unit tests are important to any security project, and we have a good history of high coverage. You can view the <a href="http://acegisecurity.sourceforge.net/multiproject/acegi-security/clover/index.html">latest coverage report</a> online (rebuilt every 24 hours). Please keep an eye on coverage and don't hesitate to add more unit tests. Please do not check code into /core unless it has at least an exercising unit test - use the /sandbox instead.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	Never check in code if the unit tests fail. This means, at minimum, successfully running "maven test:test" from /core. Always name your unit test classes so they end in "*Tests" - this ensures that Maven picks them up. If there is code in SVN which you didn't write and it is breaking the unit tests, please correct it yourself - don't leave SVN "broken" whilst waiting for the responsible developer to address it (the delay causes confusing and long-running threads on the list and forum). You can always rollback to the previous working version if in doubt of how the class works (just remember to comment the commit appropriately and let the author know).<br><br>
+	Never check in code if the unit tests fail. This means, at minimum, successfully running "mvn test" from /core. Always name your unit test classes so they end in "*Tests" - this ensures that Maven picks them up. If there is code in SVN which you didn't write and it is breaking the unit tests, please correct it yourself - don't leave SVN "broken" whilst waiting for the responsible developer to address it (the delay causes confusing and long-running threads on the list and forum). You can always rollback to the previous working version if in doubt of how the class works (just remember to comment the commit appropriately and let the author know).<br></br><br></br>
 	</li>
-	
+
 	<li>
-	Please update the reference guide and JavaDocs for any new major features. The JavaDocs should always be correct. The reference guide may be kept updated with less rigor, although please briefly discuss any major new features. <a href="http://www.xmlmind.com/xmleditor/">XMLmind</a> can be used if you don't have a DocBook editor.<br><br>
+	Please update the reference guide and JavaDocs for any new major features. The JavaDocs should always be correct. The reference guide may be kept updated with less rigor, although please briefly discuss any major new features. <a href="http://www.xmlmind.com/xmleditor/">XMLmind</a> can be used if you don't have a DocBook editor.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	Developers please keep an eye on the <a href="http://forum.springframework.org">Acegi Security forum</a>. It's a very active forum, and it takes a lot of work if not shared around. Please don't hesitate to reply to users - I try to read every thread and correct/confirm the situation if someone mentions they're unsure. I also will generally send developers an email if there's a question I can't answer as I didn't write the code.<br><br>
+	Developers please keep an eye on the <a href="http://forum.springframework.org">Acegi Security forum</a>. It's a very active forum, and it takes a lot of work if not shared around. Please don't hesitate to reply to users - I try to read every thread and correct/confirm the situation if someone mentions they're unsure. I also will generally send developers an email if there's a question I can't answer as I didn't write the code.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	In the future, I will put to vote any proposed new developers. New developers will be firstly encouraged to attach patches to JIRA tasks to illustrate their understanding of the project, or, if they're long-time users, they might be given access without this JIRA stage if they're undertaking a major new feature.<br><br>
+	In the future, I will put to vote any proposed new developers. New developers will be firstly encouraged to attach patches to JIRA tasks to illustrate their understanding of the project, or, if they're long-time users, they might be given access without this JIRA stage if they're undertaking a major new feature.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	Developers should be subscribed to acegisecurity-developer. Obviously it would take significant time to read every thread, but reading the high priority messages (as indicated by the subject line) is needed to ensure we all have a way of communicating.<br><br>
+	Developers should be subscribed to acegisecurity-developer. Obviously it would take significant time to read every thread, but reading the high priority messages (as indicated by the subject line) is needed to ensure we all have a way of communicating.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	Please do not hesitate to assign yourself any JIRA task that is unassigned, or assigned to me and not in the "In Progress" status. Also feel free to approach fellow developers to volunteer to work on tasks they might be assigned but haven't started.<br><br>
+	Please do not hesitate to assign yourself any JIRA task that is unassigned, or assigned to me and not in the "In Progress" status. Also feel free to approach fellow developers to volunteer to work on tasks they might be assigned but haven't started.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	 No code in SVN is "sacred". If you have a good idea or refactoring for an area of code that someone else wrote, raise it on acegisecurity-developer or contact the author directly. Please don't commit changes to such code unless it is a unit test failure correction, or you've firstly raised it on the acegisecurity-developer list or directly with the author.<br><br>
+	 No code in SVN is "sacred". If you have a good idea or refactoring for an area of code that someone else wrote, raise it on acegisecurity-developer or contact the author directly. Please don't commit changes to such code unless it is a unit test failure correction, or you've firstly raised it on the acegisecurity-developer list or directly with the author.<br></br><br></br>
 	</li>
-	
+
 	<li>
-	People's priorities are ever-changing, and we're all short on time. For this reason it's perfectly understandable that over time developers will move on to other things. This is not a negative reflection in any way - just part of any long-term project. If a developer no longer has the time or inclination to participate in the project , please send an email to acegisecurity-developer or myself. I will remove the SVN rights and reassign any JIRA tasks. Importantly, this helps find a new maintainer of the former developer's code (or, in very extreme cases, their code might be relocated to the sandbox or removed).<br><br>
+	People's priorities are ever-changing, and we're all short on time. For this reason it's perfectly understandable that over time developers will move on to other things. This is not a negative reflection in any way - just part of any long-term project. If a developer no longer has the time or inclination to participate in the project , please send an email to acegisecurity-developer or myself. I will remove the SVN rights and reassign any JIRA tasks. Importantly, this helps find a new maintainer of the former developer's code (or, in very extreme cases, their code might be relocated to the sandbox or removed).<br></br><br></br>
 	</li>
-	
+
 	<li>
-	Use CDATA inside XML files for multi-line properties. There is no tab/space policy for XML files, although try to maintain whatever the file is already using. The tab/space policy for Java files is managed by Jalopy.<br><br>
+	Use CDATA inside XML files for multi-line properties. There is no tab/space policy for XML files, although try to maintain whatever the file is already using. The tab/space policy for Java files is managed by Jalopy.<br></br><br></br>
 	</li>
 
 	<li>
-	Keep the warm community spirit. The Spring community is a nice place to be - especially compared with some of the other open source communities out there where people are abused, ignored, insulted or excluded. No policy or procedure (including those above) should ever compromise operating in a considerate and diplomatic manner that respects the dignity of each individual member of the community. If in doubt, please contact me directly first. If I am ever guilty of this, please let me know and I will correct myself.<br><br>
+	Keep the warm community spirit. The Spring community is a nice place to be - especially compared with some of the other open source communities out there where people are abused, ignored, insulted or excluded. No policy or procedure (including those above) should ever compromise operating in a considerate and diplomatic manner that respects the dignity of each individual member of the community. If in doubt, please contact me directly first. If I am ever guilty of this, please let me know and I will correct myself.<br></br><br></br>
 	</li>
-	
+
   </ul>
-  
-  <p>Thanks for your help in connection with the above. If you have any suggestions for improving these
+
+  </p><p>Thanks for your help in connection with the above. If you have any suggestions for improving these
   policies and procedures, please use the acegisecurity-developer list to raise them.
-  
-  <p>
-  Ben Alex<br>
+
+  </p><p>
+  Ben Alex<br></br>
   Project Admin
-  
-  <p>
-  $Id: policies.html 1377 2006-04-25 00:22:00Z benalex $
-  
-</body>
-</html>
+
+  </p><p>
+  $Id: policies.xml 1984 2007-08-29 11:00:28Z luke_t $
+
+
+
+</p></section></body></document>

+ 39 - 0
src/site/xdoc/powering.xml

@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<document><properties><title>Products Using Acegi Security</title></properties><body><section name="Products Using Acegi Security"><p>Many open source and commercial products either use Acegi Security or at least
+	  support it. Following is a partial list of such products. If you've integrated Acegi
+	  Security with some other product, please let us know (preferably with a URL
+	  to some page explaining the integration/use)...
+
+  </p><subsection name="Out-Of-the-Box Supported by Acegi Security"><ul>
+    <li><b><a href="http://springframework.org/">Spring Framework</a></b>: J2EE abstraction framework.<br></br><br></br></li>
+    <li><b><a href="http://eclipse.org/aspectj/">AspectJ</a></b>: AOP framework.<br></br><br></br></li>
+    <li><b><a href="http://jcaptcha.sourceforge.net/">JCaptcha</a></b>: Detects human users.<br></br><br></br></li>
+    <li><b><a href="http://www.ja-sig.org/products/cas/">JA-SIG CAS</a></b>: Single Sign On system.<br></br><br></br></li>
+    <li><b><a href="http://www3.ca.com/Solutions/Product.asp?ID=5262">SiteMinder</a></b>: Single Sign On system.<br></br><br></br></li>
+  </ul></subsection><subsection name="Open Source Projects"><ul>
+    <li><b><a href="http://www.opennms.org/">OpenNMS</a></b>: An open source network management platform <a href="http://www.opennms.org/index.php/Acegi_Security_and_LDAP">Integration details</a>.<br></br><br></br></li>
+    <li><b><a href="http://appfuse.org/">AppFuse</a></b>: Helps jump-start application development. <a href="http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseSecurity">Integration details</a>.<br></br><br></br></li>
+    <li><b><a href="http://www.andromda.org">AndroMDA</a></b>: Code generation framework that uses model driven architecture (MDA). <a href="http://team.andromda.org/docs/andromda-spring-cartridge/howto8.html">Integration details</a>.<br></br><br></br></li>
+    <li><b><a href="http://mule.codehaus.org/">Mule</a></b>: Enterprise service bus (ESB) messaging framework. <a href="http://mule.codehaus.org/Acegi+Security">Integration details</a>.<br></br><br></br></li>
+    <li><b><a href="http://rollerweblogger.org">Roller</a></b>: Blog server. <a href="http://rollerweblogger.org/wiki/Wiki.jsp?page=Proposal_AcegiSecurity">Integration details</a>.<br></br><br></br></li>
+    <li><b><a href="http://getahead.ltd.uk/dwr/">DWR</a></b>: AJAX tool. <a href="http://getahead.ltd.uk/dwr/security">Integration details</a>.<br></br><br></br></li>
+    <li><b><a href="http://sourceforge.net/projects/oaj">OAJ (OpenAccountingJ)</a></b>: Replaces OpenAccounting PHP.<br></br><br></br></li>
+    <li><b><a href="http://oness.sourceforge.net/">ONESS</a></b>: Sample web application.<br></br><br></br></li>
+    <li><b><a href="http://sourceforge.net/projects/hispacta">HISPACTA</a></b>: Sample web application.<br></br><br></br></li>
+    <li><b><a href="https://atleap.dev.java.net/">Blandware AtLeap</a></b>: Multilingal free Java CMS.<br></br><br></br></li>
+    <li><b><a href="http://photostructure.com/">PhotoStructure</a></b>: A photo management solution.<br></br><br></br></li>
+    <li><b><a href="http://app.ess.ch/tudu/welcome.action">Tudu Lists</a></b>: AJAX and RSS powered to-do list manager.<br></br><br></br></li>
+    <li><b><a href="http://trails.dev.java.net/">Trails</a></b>: Native Java Ruby-On-Rails-like framework. <a href="http://os.inspiring.nl/confluence/display/trails/Using+Security">Integration details</a>.<br></br><br></br></li>
+    <li><b><a href="http://grails.codehaus.org/">Grails</a></b>: Native Java and Groovy Ruby-On-Rails-like framework. <a href="http://bbweblog.kevinhooke.com/BBWeblog/viewPost.do?entryID=803&amp;instanceID=1&amp;categoryID=111&amp;action=detail">Integration details</a>.<br></br><br></br></li>
+    <li><b><a href="http://tapestry.apache.org/">Tapestry</a></b>: The original Java event-driven web framework. <a href="http://www.carmanconsulting.com/tapestry-acegi">Integration details</a>.<br></br><br></br></li>
+    <li><b><a href="http://jtrac.info/">JTrac</a></b>: A Java-based issue management system. <a href="http://jtrac.info/doc/html/faq.html">Integration details</a>.<br></br><br></br></li>
+    <li><b><a href="http://plazma.sourceforge.net/">Plazma</a></b>: Swing-based ERP and CRM system for SMEs.<br></br><br></br></li>
+    <li><b><a href="http://www.jasypt.org/">Jasypt</a></b>: Java encryption project. <a href="http://www.jasypt.org/faq.html#i-am-already-using-spring-security-for-encrypting-passwords">Integration details</a>.<br></br><br></br></li>
+  </ul></subsection><subsection name="Commercial Deployments"><ul>
+    <li>A global financial institution uses Acegi Security's SiteMinder integration in a physical security management application.<br></br><br></br></li>
+    <li>A central bank that uses Acegi Security for many of its internal applications with the CAS integration.<br></br><br></br></li>
+    <li>Several Australian Government departments use Acegi Security for securing SOAP-based web services and web applications.<br></br><br></br></li>
+    <li>Enterprise Systems and Services at Rutgers University uses Acegi Security in conjunction with JA-SIG Central Authentication Service to provide authentication and authorization capabilities to its applications including those used by staff and students as well as those utilized by web services.<br></br><br></br></li>
+	<li><a href="http://www.elasticpath.com/ecommerce/architecture/soa.jsp">Elastic Path</a> uses Acegi Security for security.<br></br><br></br></li>
+	<li>Plus many more... ;-)<br></br><br></br></li>
+  </ul></subsection></section></body></document>

+ 15 - 60
src/site/resources/standalone.html → src/site/xdoc/standalone.xml

@@ -1,68 +1,26 @@
-<!--
- * ========================================================================
- * 
- * Copyright 2005 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.
- * 
- * ========================================================================
--->
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-<head>
-<title>Acegi Security Use Without Spring</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-</head>
-
-<body>
-  <h1>Acegi Security Use Without Spring</h1>
-  
-  <h2>Introduction</h2>
-  <p>Sometimes we get asked can Acegi Security be used without Spring.
-  This page provides a detailed answer.</p>
-  
-  <h2>History</h2>
-  <p>Acegi Security started out as a method interceptor for Spring IoC container
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<document><properties><title>Acegi Security Use Without Spring</title></properties><body><section name="Acegi Security Use Without Spring"><subsection name="Introduction"><p>Sometimes we get asked can Acegi Security be used without Spring.
+  This page provides a detailed answer.</p></subsection><subsection name="History"><p>Acegi Security started out as a method interceptor for Spring IoC container
   managed beans. Typically such beans provide services layer functions.
   Over time Acegi Security grew to offer authentication services, <code>ThreadLocal</code> management,
   web request filtering, extra AOP support,
   ACL features, additional authentication mechanisms and so on (for those interested,
-  see our <a href="changes-report.html">change log</a>).</p>
-
-  <h2>Why Use Spring</h2>
-  <p>There's plenty written about why the
-  <a href="http://www.springframework.org">Spring Framework</a> 
+  see our <a href="changes-report.html">change log</a>).</p></subsection><subsection name="Why Use Spring"><p>There's plenty written about why the
+  <a href="http://www.springframework.org">Spring Framework</a>
   is a good fit for modern applications. If you're not familiar with the benefits
   Spring offers, please take a few minutes to learn more about it. In numerous
   situations Spring will save you many months (or even years) of development time.
   Not to mention your solutions will be better architected
   (designed), better coded (implemented), and better supported (maintained) in the future.
-  </p>
-  
-  <h2>Acegi Security Dependencies on Spring</h2>
-  <p>Acegi Security relies on the Spring IoC container to wire its classes, and execute lifecycle
-  methods such as <code>afterPropertiesSet()</code>. Some Acegi Security classes also 
+  </p></subsection><subsection name="Acegi Security Dependencies on Spring"><p>Acegi Security relies on the Spring IoC container to wire its classes, and execute lifecycle
+  methods such as <code>afterPropertiesSet()</code>. Some Acegi Security classes also
   publish events to the <code>ApplicationContext</code>, although you could provide a mock
   implementation of <code>ApplicationContext</code> easily enough which no-ops the method.
   In other words, if you particularly didn't want Spring in your application, you <i>could</i>
   avoid its use by writing equivalent getter, setter and lifecycle invocation processes
   in standard Java code. This is a natural consequence of the Spring way of development,
   which emphasises framework independence (it is <i>not</i> because we think there are good
-  reasons people would <i>not</i> use Spring).</p>
-  
-  <p>If it sounds too hard (it's not) or counter-productive (it is) to replace Spring's IoC
+  reasons people would <i>not</i> use Spring).</p><p>If it sounds too hard (it's not) or counter-productive (it is) to replace Spring's IoC
   services, don't forget you can always deploy Acegi Security and the Spring
   IoC container solely for configuring Acegi Security. Spring does not mandate its
   use in every part of your application. It will work quite successfully doing nothing more than
@@ -70,26 +28,23 @@
   it's really no different than the traditional approach of every framework having its very
   own XML or other proprietary configuration system. The main difference is that Spring is an
   actual de facto standard, and you can gradually introduce it to other parts of your application
-  over time (if desired).</p>
-  
-  <p>Acegi Security does <i>not</i> use any other Spring capabilities. Most notably, the
+  over time (if desired).</p><p>Acegi Security does <i>not</i> use any other Spring capabilities. Most notably, the
   entire architecture is based around <code>Filter</code>s, not Spring's MVC framework.
   This allows it to be used with any MVC framework, or even with just straight JSPs.
   Acegi Security uses the AOP Alliance and AspectJ interfaces for method interception -
   it does not use any Spring-specific interfaces. As a consequence, Acegi Security is very
   portable to applications that do not leverage <i>any</i> of Spring's capabilities. We should note
   there are several very simple data access objects (DAOs) that use Spring's JDBC abstraction
-  layer, although each of these are defined by a simple interface and it is very common in 
+  layer, although each of these are defined by a simple interface and it is very common in
   even native Spring-powered applications for these to be re-implemented using the application's
   persistence framework of choice (eg Hibernate).
-  
-  <h1>Conclusion</h1>
-  
-  <p>In summary, we recommend you take a look at Spring and consider using it in your
+
+  </p></subsection></section><section name="Conclusion"><p>In summary, we recommend you take a look at Spring and consider using it in your
   applications. Irrespective of whether you do so or not, we strongly recommend you use it
   for configuration and lifecycle management of Acegi Security. If that is also not desired,
   Acegi Security can easily be executed without Spring at all, providing you implement
   similar IoC services. Acegi Security has very minimal dependencies directly on Spring,
   with it being useful in many non-Spring applications and with non-Spring frameworks.
-</body>
-</html>
+
+
+</p></section></body></document>

+ 0 - 293
src/site/xdocs/changes.xml

@@ -1,293 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- * ========================================================================
- * 
- * Copyright 2004, 2005 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.
- * 
- * ========================================================================
- 
- 
- **** THIS FILE SHOULD ONLY BE USED TO POINT TO JIRA FOR EACH RELEASE!!!! (BPA, 4 November 2005) ****
- 
- 
--->
-
-<document>
-  <properties>
-    <title>Acegi Security changes</title>
-  </properties>
-  <body>
-    <release version="1.0.0 Final" date="In CVS">
-      <action dev="benalex" type="update">All changes are in JIRA at http://opensource2.atlassian.com/projects/spring/secure/ReleaseNote.jspa?projectId=10040</action>
-    </release>
-    <release version="1.0.0 RC2" date="2006-02-09">
-      <action dev="benalex" type="update">All changes are in JIRA at http://opensource2.atlassian.com/projects/spring/secure/ReleaseNote.jspa?projectId=10040</action>
-    </release>
-    <release version="1.0.0 RC1" date="2005-12-05">
-      <action dev="benalex" type="update">All changes are in JIRA at http://opensource2.atlassian.com/projects/spring/secure/ReleaseNote.jspa?projectId=10040</action>
-    </release>
-    <release version="0.9.0" date="2005-11-11">
-      <action dev="benalex" type="update">All changes are in JIRA at http://opensource2.atlassian.com/projects/spring/secure/ReleaseNote.jspa?projectId=10040</action>
-    </release>
-    <release version="0.8.3" date="2005-05-12">
-      <action dev="benalex" type="fix">HttpSessionContextIntegrationFilter elegantly handles IOExceptions and ServletExceptions within filter chain (see http://opensource.atlassian.com/projects/spring/browse/SEC-20)</action>
-    </release>
-    <release version="0.8.1.1" date="2005-07-12">
-      <action dev="benalex" type="fix">HttpSessionContextIntegrationFilter elegantly handles IOExceptions and ServletExceptions within filter chain (see http://opensource.atlassian.com/projects/spring/browse/SEC-20)</action>
-    </release>
-    <release version="0.7.1" date="2005-07-12">
-      <action dev="benalex" type="fix">AbstractIntegrationFilter elegantly handles IOExceptions and ServletExceptions within filter chain (see http://opensource.atlassian.com/projects/spring/browse/SEC-20)</action>
-    </release>
-    <release version="0.8.2" date="2005-04-20">
-      <action dev="benalex" type="fix">Correct location of AuthenticationSimpleHttpInvokerRequestExecutor in clientContext.xml</action>
-      <action dev="benalex" type="fix">TokenBasedRememberMeServices changed to use long instead of int for tokenValiditySeconds (SPR-807)</action>
-      <action dev="benalex" type="fix">Handle null Authentication.getAuthorities() in AuthorizeTag</action>
-      <action dev="benalex" type="fix">PasswordDaoAuthenticationProvider no longer stores String against Authentication.setDetails()</action>
-      <action dev="benalex" type="update">Update commons-codec dependency to 1.3</action>
-      <action dev="raykrueger" type="update">AbstractProcessingFilter no longer has setters for failures, it uses the exceptionMappings property</action>
-      <action dev="benalex" type="update">Update to match Spring 1.2-RC2 official JAR dependencies</action>
-      <action dev="raykrueger" type="update">AuthenticationProcessingFilter now provides an obtainUsername method</action>
-      <action dev="luke_t" type="update">Correct PathBasedFilterInvocationDefinitionMap compatibility with Spring 1.2-RC2</action>
-      <action dev="luke_t" type="update">Refactoring to leverage Spring's Assert class and mocks where possible</action>
-    </release>
-    <release version="0.8.1" date="2005-03-22">
-      <action dev="luke_t" type="add">X509 (certificate-based) authentication support</action>
-      <action dev="benalex" type="update">UserDetails now advises locked accounts, with corresponding DaoAuthenticationProvider events and enforcement</action>
-      <action dev="benalex" type="update">ContextHolderAwareRequestWrapper methods return null if user is anonymous</action>
-      <action dev="benalex" type="update">AbstractBasicAclEntry improved compatibility with Hibernate</action>
-      <action dev="benalex" type="update">User now provides a more useful toString() method</action>
-      <action dev="benalex" type="update">Update to match Spring 1.1.5 official JAR dependencies (NB: now using Servlet 2.4 and related JSP/taglib JARs)</action>
-      <action dev="benalex" type="fix">SecurityEnforcementFilter caused NullPointerException when anonymous authentication used with BasicProcessingFilterEntryPoint</action>
-      <action dev="benalex" type="fix">FilterChainProxy now supports replacement of ServletRequest and ServetResponse by Filter beans</action>
-      <action dev="fbos" type="fix">Corrected Authz parsing of whitespace in GrantedAuthoritys</action>
-      <action dev="benalex" type="fix">TokenBasedRememberMeServices now respects expired users, expired credentials and disabled users</action>
-      <action dev="benalex" type="fix">HttpSessionContextIntegrationFilter now handles HttpSession invalidation without redirection</action>
-      <action dev="benalex" type="fix">StringSplitUtils.split() ignored delimiter argument</action>
-      <action dev="benalex" type="fix">DigestProcessingFilter now provides userCache getter and setter</action>
-      <action dev="benalex" type="fix">Contacts Sample made to work with UserDetails-based Principal</action>
-      <action dev="benalex" type="update">Documentation improvements</action>
-      <action dev="benalex" type="update">Test coverage improvements</action>
-    </release>
-    <release version="0.8.0" date="2005-03-03">
-      <action dev="benalex" type="add">Added Digest Authentication support (RFC 2617 and RFC 2069)</action>
-      <action dev="benalex" type="add">Added pluggable remember-me services</action>
-      <action dev="benalex" type="add">Added pluggable mechnism to prevent concurrent login sessions</action>
-      <action dev="benalex" type="add">FilterChainProxy added to significantly simplify web.xml configuration of Acegi Security</action>
-      <action dev="benalex" type="add">AuthenticationProcessingFilter now provides hook for extra credentials (eg postcodes)</action>
-      <action dev="benalex" type="add">New WebAuthenticationDetails class now used by processing filters for Authentication.setDetails()</action>
-      <action dev="benalex" type="add">Additional debug-level logging</action>
-      <action dev="benalex" type="add">Improved Tapestry support in AbstractProcessingFilter</action>
-      <action dev="benalex" type="update">Made ConfigAttributeDefinition and ConfigAttribute Serializable</action>
-      <action dev="benalex" type="update">User now accepts blank passwords (null passwords still rejected)</action>
-      <action dev="benalex" type="update">FilterToBeanProxy now searches hierarchical bean factories</action>
-      <action dev="benalex" type="update">User now accepted blank passwords (null passwords still rejected)</action>
-      <action dev="benalex" type="update">ContextHolderAwareRequestWrapper now provides a getUserPrincipal() method</action>
-      <action dev="benalex" type="update">HttpSessionIntegrationFilter no longer creates a HttpSession unnecessarily</action>
-      <action dev="benalex" type="update">FilterSecurityInterceptor now only executes once per request (improves performance with SiteMesh)</action>
-      <action dev="raykrueger" type="update">JaasAuthenticatinProvider now uses System.property "java.security.auth.login.config"</action>
-      <action dev="raykrueger" type="update">JaasAuthenticationCallbackHandler Authentication is passed to handle method setAuthentication removed</action>
-      <action dev="raykrueger" type="update">Added AuthenticationException to the AutenticationEntryPoint.commence method signature</action>
-      <action dev="raykrueger" type="update">Added AccessDeniedException to the SecurityEncorcementFilter.sendAccessDeniedError method signature</action>
-      <action dev="benalex" type="update">FilterToBeanProxy now addresses lifecycle mismatch (IoC container vs servlet container) issue</action>
-      <action dev="benalex" type="update">Significantly refactor "well-known location model" to authentication processing mechanism and HttpSessionContextIntegrationFilter model</action>
-      <action dev="benalex" type="fix">Correct issue with JdbcDaoImpl default SQL query not using consistent case sensitivity</action>
-      <action dev="benalex" type="fix">Improve Linux and non-Sun JDK (specifically IBM JDK) compatibility</action>
-      <action dev="benalex" type="fix">Log4j now included in generated WAR artifacts (fixes issue with Log4j listener)</action>
-      <action dev="benalex" type="fix">Correct NullPointerException in FilterInvocationDefinitionSource implementations</action>
-    </release>
-    <release version="0.7.0" date="2005-01-16">
-      <action dev="carlossg" type="add">Major CVS repository restructure to support Maven and eliminate libraries</action>
-      <action dev="benalex" type="update">Major improvements to Contacts sample application (now demos ACL security)</action>
-      <action dev="benalex" type="add">Added AfterInvocationManager to mutate objects return from invocations</action>
-      <action dev="benalex" type="add">Added BasicAclEntryAfterInvocationProvider to ACL evaluate returned Object</action>
-      <action dev="benalex" type="add">Added BasicAclEntryAfterInvocationCollectionFilteringProvider</action>
-      <action dev="benalex" type="add">Added security propagation during RMI invocations (from sandbox)</action>
-      <action dev="benalex" type="add">Added security propagation for Spring's HTTP invoker</action>
-      <action dev="benalex" type="add">Added BasicAclEntryVoter, which votes based on AclManager permissions</action>
-      <action dev="benalex" type="add">Added AspectJ support (especially useful for instance-level security)</action>
-      <action dev="benalex" type="add">Added MethodDefinitionSourceAdvisor for performance and autoproxying</action>
-      <action dev="benalex" type="add">Added MethodDefinitionMap querying of interfaces defined by secure objects</action>
-      <action dev="benalex" type="add">Added AuthenticationProcessingFilter.setDetails for use by subclasses</action>
-      <action dev="benalex" type="add">Added 403-causing exception to HttpSession via SecurityEnforcementFilter</action>
-      <action dev="benalex" type="add">Added net.sf.acegisecurity.intercept.event package</action>
-      <action dev="benalex" type="add">Added BasicAclExtendedDao interface and JdbcExtendedDaoImpl for ACL CRUD</action>
-      <action dev="benalex" type="add">Added additional remoting protocol demonstrations to Contacts sample</action>
-      <action dev="benalex" type="add">Added AbstractProcessingFilter property to always use defaultTargetUrl</action>
-      <action dev="benalex" type="add">Added ContextHolderAwareRequestWrapper to integrate with getRemoteUser()</action>
-      <action dev="benalex" type="add">Added attempted username to view if processed by AuthenticationProcessingFilter</action>
-      <action dev="benalex" type="add">Added UserDetails account and credentials expiration methods</action>
-      <action dev="benalex" type="add">Added exceptions and events to support new UserDetails methods</action>
-      <action dev="benalex" type="add">Added new exceptions to JBoss container adapter</action>
-      <action dev="benalex" type="update">Improved BasicAclProvider to only respond to specified ACL object requests</action>
-      <action dev="benalex" type="update">Refactored MethodDefinitionSource to work with Method, not MethodInvocation</action>
-      <action dev="benalex" type="update">Refactored AbstractFilterInvocationDefinitionSource to work with URL Strings alone</action>
-      <action dev="benalex" type="update">Refactored AbstractSecurityInterceptor to better support other AOP libraries</action>
-      <action dev="benalex" type="update">Improved performance of JBoss container adapter (see reference docs)</action>
-      <action dev="benalex" type="update">Made DaoAuthenticationProvider detect null in Authentication.principal</action>
-      <action dev="benalex" type="update">Improved JaasAuthenticationProvider startup error detection</action>
-      <action dev="benalex" type="update">Refactored EH-CACHE implementations to use Spring IoC defined caches instead</action>
-      <action dev="benalex" type="update">AbstractProcessingFilter now has various hook methods to assist subclasses</action>
-      <action dev="benalex" type="update">DaoAuthenticationProvider better detects AuthenticationDao interface violations</action>
-      <action dev="benalex" type="update">The User class has a new constructor (the old constructor is deprecated)</action>
-      <action dev="benalex" type="fix">Fixed ambiguous column references in JdbcDaoImpl default query</action>
-      <action dev="benalex" type="fix">Fixed AbstractProcessingFilter to use removeAttribute (JRun compatibility)</action>
-      <action dev="benalex" type="fix">Fixed GrantedAuthorityEffectiveAclResolver support of UserDetails principals</action>
-      <action dev="benalex" type="fix">Fixed HttpSessionIntegrationFilter "cannot commit to container" during logoff</action>
-      <action dev="benalex" type="update">Moved MethodSecurityInterceptor to ...intercept.method.aopalliance package</action>
-      <action dev="benalex" type="update">Documentation improvements</action>
-      <action dev="benalex" type="update">Test coverage improvements</action>
-    </release>
-    <release version="0.6.1" date="2004-09-24">
-      <action dev="benalex" type="update">Resolved to use http://apr.apache.org/versioning.html for future versioning</action>
-      <action dev="benalex" type="add">Added additional DaoAuthenticationProvider event when user not found</action>
-      <action dev="benalex" type="add">Added Authentication.getDetails() to DaoAuthenticationProvider response</action>
-      <action dev="benalex" type="add">Added DaoAuthenticationProvider.hideUserNotFoundExceptions (default=true)</action>
-      <action dev="benalex" type="add">Added PasswordAuthenticationProvider for password-validating DAOs (eg LDAP)</action>
-      <action dev="benalex" type="add">Added FilterToBeanProxy compatibility with ContextLoaderServlet (lazy inits)</action>
-      <action dev="benalex" type="add">Added convenience methods to ConfigAttributeDefinition</action>
-      <action dev="benalex" type="update">Improved sample applications' bean reference notation</action>
-      <action dev="benalex" type="update">Clarified contract for ObjectDefinitionSource.getAttributes(Object)</action>
-      <action dev="benalex" type="update">Extracted removeUserFromCache(String) to UserCache interface</action>
-      <action dev="benalex" type="update">Improved ConfigAttributeEditor so it trims preceding and trailing spaces</action>
-      <action dev="benalex" type="update">Refactored UsernamePasswordAuthenticationToken.getDetails() to Object</action>
-      <action dev="benalex" type="fix">Fixed MethodDefinitionAttributes to implement ObjectDefinitionSource change</action>
-      <action dev="benalex" type="fix">Fixed EH-CACHE-based caching implementation behaviour when cache exists</action>
-      <action dev="benalex" type="fix">Fixed Ant "release" target not including project.properties</action>
-      <action dev="benalex" type="fix">Fixed GrantedAuthorityEffectiveAclsResolver if null ACLs provided to method</action>
-      <action dev="benalex" type="update">Documentation improvements</action>
-    </release>
-    <release version="0.6"   date="2004-08-08">
-      <action dev="benalex" type="add">Added domain object instance access control list (ACL) packages</action>
-      <action dev="benalex" type="add">Added feature so DaoAuthenticationProvider returns User in Authentication</action>
-      <action dev="benalex" type="add">Added AbstractIntegrationFilter.secureContext property for custom contexts</action>
-      <action dev="benalex" type="add">Added stack trace logging to SecurityEnforcementFilter</action>
-      <action dev="benalex" type="add">Added exception-specific target URLs to AbstractProcessingFilter</action>
-      <action dev="benalex" type="add">Added JdbcDaoImpl hook so subclasses can insert custom granted authorities</action>
-      <action dev="raykrueger" type="add">Added AuthenticationProvider that wraps JAAS login modules</action>
-      <action dev="fbos" type="add">Added support for EL expressions in the authz tag library</action>
-      <action dev="benalex" type="add">Added failed Authentication object to AuthenticationExceptions</action>
-      <action dev="benalex" type="add">Added signed JARs to all official release builds (see readme.txt)</action>
-      <action dev="benalex" type="add">Added remote client authentication validation package</action>
-      <action dev="benalex" type="add">Added protected sendAccessDeniedError method to SecurityEnforcementFilter</action>
-      <action dev="benalex" type="update">Updated Authentication to be serializable (Weblogic support)</action>
-      <action dev="benalex" type="update">Updated JAR to Spring 1.1 RC 1</action>
-      <action dev="benalex" type="update">Updated to Clover 1.3</action>
-      <action dev="benalex" type="update">Updated to HSQLDB version 1.7.2 Release Candidate 6D</action>
-      <action dev="benalex" type="update">Refactored User to net.sf.acegisecurity.UserDetails interface</action>
-      <action dev="benalex" type="update">Refactored CAS package to store UserDetails in CasAuthenticationToken</action>
-      <action dev="benalex" type="update">Improved organisation of DaoAuthenticationProvider to facilitate subclassing</action>
-      <action dev="benalex" type="update">Improved test coverage (now 98.3%)</action>
-      <action dev="benalex" type="update">Improved JDBC-based tests to use in-memory database rather than filesystem</action>
-      <action dev="benalex" type="update">Fixed Linux compatibility issues (directory case sensitivity etc)</action>
-      <action dev="benalex" type="update">Fixed AbstractProcessingFilter to handle servlet spec container differences</action>
-      <action dev="benalex" type="update">Fixed AbstractIntegrationFilter to resolve a Weblogic compatibility issue</action>
-      <action dev="benalex" type="fix">Fixed CasAuthenticationToken if proxy granting ticket callback not requested</action>
-      <action dev="benalex" type="fix">Fixed EH-CACHE handling on web context refresh</action>
-      <action dev="benalex" type="update">Documentation improvements</action>
-    </release>
-    <release version="0.5.1" date="2004-06-05">
-      <action dev="benalex" type="add">Added samples/quick-start</action>
-      <action dev="benalex" type="add">Added NullRunAsManager and made default for AbstractSecurityInterceptor</action>
-      <action dev="benalex" type="add">Added event notification (see net.sf.acegisecurity.providers.dao.event)</action>
-      <action dev="benalex" type="update">Updated JAR to Spring 1.0.2</action>
-      <action dev="benalex" type="update">Updated JAR to Commons Attributes CVS snapshot from Spring 1.0.2 release</action>
-      <action dev="benalex" type="update">Updated GrantedAuthorityImpl to be serializable (JBoss support)</action>
-      <action dev="benalex" type="update">Updated Authentication interface to present extra details for a request</action>
-      <action dev="benalex" type="update">Updated Authentication interface to subclass java.security.Principal</action>
-      <action dev="benalex" type="update">Refactored DaoAuthenticationProvider caching (refer to reference docs)</action>
-      <action dev="benalex" type="update">Improved HttpSessionIntegrationFilter to manage additional attributes</action>
-      <action dev="benalex" type="update">Improved URL encoding during redirects</action>
-      <action dev="benalex" type="fix">Fixed issue with hot deploy of EhCacheBasedTicketCache (used with CAS)</action>
-      <action dev="fbos" type="fix">Fixed issue with NullPointerExceptions in taglib</action>
-      <action dev="benalex" type="update">Removed DaoAuthenticationToken and session-based caching</action>
-      <action dev="benalex" type="update">Documentation improvements</action>
-      <action dev="benalex" type="update">Upgrade Note: DaoAuthenticationProvider no longer has a "key" property</action>
-    </release>
-    <release version="0.5" date="2004-04-28">
-      <action dev="benalex" type="add">Added single sign on support via Yale Central Authentication Service (CAS)</action>
-      <action dev="benalex" type="add">Added full support for HTTP Basic Authentication</action>
-      <action dev="benalex" type="add">Added caching for DaoAuthenticationProvider successful authentications</action>
-      <action dev="benalex" type="add">Added Burlap and Hessian remoting to Contacts sample application</action>
-      <action dev="colins" type="add">Added pluggable password encoders including plaintext, SHA and MD5</action>
-      <action dev="benalex" type="add">Added pluggable salt sources to enhance security of hashed passwords</action>
-      <action dev="benalex" type="add">Added FilterToBeanProxy to obtain filters from Spring application context</action>
-      <action dev="colins" type="add">Added support for prepending strings to roles created by JdbcDaoImpl</action>
-      <action dev="colins" type="add">Added support for user definition of SQL statements used by JdbcDaoImpl</action>
-      <action dev="colins" type="add">Added definable prefixes to avoid expectation of "ROLE_" GrantedAuthoritys</action>
-      <action dev="benalex" type="add">Added pluggable AuthenticationEntryPoints to SecurityEnforcementFilter</action>
-      <action dev="benalex" type="add">Added Apache Ant path syntax support to SecurityEnforcementFilter</action>
-      <action dev="benalex" type="add">Added filter to automate web channel requirements (eg HTTPS redirection)</action>
-      <action dev="benalex" type="update">Updated JAR to Spring 1.0.1</action>
-      <action dev="benalex" type="update">Updated several classes to use absolute (not relative) redirection URLs</action>
-      <action dev="benalex" type="update">Refactored filters to use Spring application context lifecycle support</action>
-      <action dev="benalex" type="update">Improved constructor detection of nulls in User and other key objects</action>
-      <action dev="benalex" type="fix">Fixed FilterInvocation.getRequestUrl() to also include getPathInfo()</action>
-      <action dev="benalex" type="fix">Fixed Contacts sample application <A></A> tags</action>
-      <action dev="benalex" type="update">Established acegisecurity-developer mailing list</action>
-      <action dev="benalex" type="update">Documentation improvements</action>
-    </release>
-    <release version="0.4" date="2004-04-03">
-      <action dev="benalex" type="add">Added HTTP session authentication as an alternative to container adapters</action>
-      <action dev="benalex" type="add">Added HTTP request security interceptor (offers considerable flexibility)</action>
-      <action dev="fbos" type="add">Added security taglib</action>
-      <action dev="benalex" type="add">Added Clover test coverage instrumentation (currently 97.2%)</action>
-      <action dev="benalex" type="add">Added support for Catalina (Tomcat) 4.1.30 to in-container integration tests</action>
-      <action dev="benalex" type="add">Added HTML test and summary reporting to in-container integration tests</action>
-      <action dev="benalex" type="update">Updated JARs to Spring Framework release 1.0, with associated AOP changes</action>
-      <action dev="benalex" type="update">Updated to Apache License version 2.0</action>
-      <action dev="benalex" type="update">Updated copyright with permission of past contributors</action>
-      <action dev="benalex" type="update">Refactored unit tests to use mock objects and focus on a single class each</action>
-      <action dev="benalex" type="update">Refactored many classes to enable insertion of mock objects during testing</action>
-      <action dev="benalex" type="update">Refactored core classes to ease support of new secure object types</action>
-      <action dev="benalex" type="update">Changed package layout to better describe the role of contained items</action>
-      <action dev="benalex" type="update">Changed the extractor to extract additional classes from JBoss and Catalina</action>
-      <action dev="benalex" type="update">Changed Jetty container adapter configuration (see reference documentation)</action>
-      <action dev="benalex" type="update">Improved AutoIntegrationFilter handling of deployments without JBoss JARs</action>
-      <action dev="benalex" type="fix">Fixed case handling support in data access object authentication provider</action>
-      <action dev="benalex" type="update">Documentation improvements</action>
-    </release>
-    <release version="0.3" date="2004-03-18">
-      <action dev="benalex" type="add">Added "in container" unit test system for container adapters and sample app</action>
-      <action dev="benalex" type="add">Added library extractor tool to reduce the "with deps" ZIP release sizes</action>
-      <action dev="benalex" type="add">Added unit test to the attributes sample</action>
-      <action dev="benalex" type="add">Added Jalopy source formatting</action>
-      <action dev="benalex" type="update">Modified all files to use net.sf.acegisecurity namespace</action>
-      <action dev="benalex" type="update">Renamed springsecurity.xml to acegisecurity.xml for consistency</action>
-      <action dev="benalex" type="update">Reduced length of ZIP and JAR filenames</action>
-      <action dev="benalex" type="update">Clarified licenses and sources for all included libraries</action>
-      <action dev="benalex" type="update">Updated documentation to reflect new file and package names</action>
-      <action dev="benalex" type="update">Setup Sourceforge.net project and added to CVS etc</action>
-    </release>
-    <release version="0.2"   date="2004-03-10">
-      <action dev="benalex" type="add">Added Commons Attributes support and sample (thanks to Cameron Braid)</action>
-      <action dev="benalex" type="add">Added JBoss container adapter</action>
-      <action dev="benalex" type="add">Added Resin container adapter</action>
-      <action dev="benalex" type="add">Added JDBC DAO authentication provider</action>
-      <action dev="benalex" type="add">Added several filter implementations for container adapter integration</action>
-      <action dev="benalex" type="add">Added SecurityInterceptor startup time validation of ConfigAttributes</action>
-      <action dev="benalex" type="add">Added more unit tests</action>
-      <action dev="benalex" type="update">Refactored ConfigAttribute to interface and added concrete implementation</action>
-      <action dev="benalex" type="update">Enhanced diagnostics information provided by sample application debug.jsp</action>
-      <action dev="benalex" type="update">Modified sample application for wider container portability (Resin, JBoss)</action>
-      <action dev="benalex" type="fix">Fixed switch block in voting decision manager implementations</action>
-      <action dev="benalex" type="update">Removed Spring MVC interceptor for container adapter integration</action>
-      <action dev="benalex" type="update">Documentation improvements</action>
-    </release>
-    <release version="0.1"   date="2004-03-03">
-      <action dev="benalex" type="add">Initial public release</action>
-    </release>
-  </body>
-</document>

+ 0 - 69
src/site/xdocs/reference.xml

@@ -1,69 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- * ========================================================================
- * 
- * 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.
- * 
- * ========================================================================
--->
-
-<document>
-
-  <properties>
-    <title>Reference Documentation</title>
-  </properties>
-
-  <body>
-    <section name="Reference Documentation">
-
-      <subsection name="Overview of the Reference Documentation">
-        <table>
-          <tr><th>Document</th><th>Description</th></tr>
-
-			<!--  disabled by Ben Alex on 9 April 2005 as it is still not auto-updating on Monkey Machine nightly build
-          <tr>
-            <td>
-              <a href="docbook/index.html">Reference Guide HTML One Page per Chapter</a>
-            </td>
-            <td>
-              The reference guide using one page per chapter.
-            </td>
-          </tr>
-			 -->
-
-          <tr>
-            <td>
-              <a href="docbook/acegi.html">Reference Guide HTML Single Page</a>
-            </td>
-            <td>
-              The reference guide in a single html page.
-            </td>
-          </tr>
-
-          <tr>
-            <td>
-              <a href="docbook/acegi.pdf">Reference Guide PDF</a>
-            </td>
-            <td>
-              The PDF version of the reference guide.
-            </td>
-          </tr>
-
-        </table>
-      </subsection>
-    </section>
- </body>
-</document>