Skip to content

Commit 48dcc21

Browse files
committed
SEC-1148: Simple classname mapping from 2.0 to 3.0
1 parent 2d1a5db commit 48dcc21

File tree

3 files changed

+72
-10
lines changed

3 files changed

+72
-10
lines changed

class_mapping_from_2.0.x.txt

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Class Mapping from 2.0.x to 3.0.x
2+
------------------------------------
3+
4+
Approximate mapping of classes which have new names, or new implementations in 3.0. These may not be a
5+
straightforward replacement, but the listed classes and interfaces from 3.0 will give some indication of where to
6+
look in the APIs when upgrading.
7+
8+
AbstractProcessingFilter, AbstractAuthenticationProcessingFilter
9+
AbstractFallbackMethodDefinitionSource, AbstractFallbackMethodSecurityMetadataSource
10+
AnonymousProcessingFilter, AnonymousAuthenticationFilter
11+
AuthenticationFailureConcurrentLoginEvent
12+
AuthenticationProcessingFilter, UsernamePasswordAuthenticationFilter
13+
AuthenticationProcessingFilterEntryPoint, LoginUrlAuthenticationEntryPoint
14+
15+
BasicProcessingFilter, BasicAuthenticationFilter
16+
BasicProcessingFilterEntryPoint, BasicAuthenticationEntryPoint
17+
18+
CasProcessingFilter, CasAuthenticationFilter
19+
CasProcessingFilterEntryPoint, CasAuthenticationEntryPoint
20+
ConcurrentSessionController, ConcurrentSessionControlStrategy (Now implemented through the SessionManagementFilter)
21+
ConfigAttributeDefinition, Collection<ConfigAttribute>
22+
23+
DefaultFilterInvocationDefinitionSource, DefaultFilterInvocationSecurityMetadataSource
24+
DigestProcessingFilter, DigestAuthenticationFilter
25+
DigestProcessingFilterEntryPoint, DigestAuthenticationEntryPoint
26+
27+
FilterInvocationDefinitionSource, FilterInvocationSecurityMetadataSource
28+
29+
HttpSessionContextIntegrationFilter, SecurityContextPersistenceFilter (see also SecurityContextRepository)
30+
31+
Jsr250MethodDefinitionSource, Jsr250MethodSecurityMetadataSource
32+
33+
MapBasedMethodDefinitionSource, MapBasedMethodSecurityMetadataSource
34+
MethodDefinitionAttributes
35+
MethodDefinitionSource, MethodSecurityMetadataSource
36+
MethodDefinitionSourceAdvisor, MethodSecurityMetadataSourceAdvisor
37+
MethodDefinitionSourceEditor, MethodSecurityMetadataSourceEditor
38+
39+
ObjectDefinitionSource SecurityMetadataSource
40+
OpenIDAuthenticationProcessingFilter, OpenIDAuthenticationFilter
41+
42+
RedirectUtils, DefaultRedirectStrategy
43+
RememberMeProcessingFilter, RememberMeAuthenticationFilter
44+
RequestHeaderPreAuthenticatedProcessingFilter, RequestHeaderAuthenticationFilter
45+
46+
SecuredMethodDefinitionSource, SecuredAnnotationSecurityMetadataSource
47+
SessionFixationProtectionFilter, SessionManagementFilter (See also SessionAuthenticationStrategy, SessionFixationProtectionStrategy)
48+
SpringSecurityContextSource, LdapContextSource (from Spring LDAP 1.3, which introduced the ability to bind as a specific user)
49+
SwitchUserFilter, SwitchUserProcessingFilter
50+
51+
TargetUrlResolver, AuthenticationSuccessHandler (see also AuthenticationFailureHandler)
52+
TargetUrlResolverImpl, SavedRequestAwareAuthenticationSuccessHandler (see also SimpleUrlAuthenticationSuccessHandler)
53+
54+
WASSecurityHelper, DefaultWASUsernameAndGroupsExtractor
55+
56+
X509PreAuthenticatedProcessingFilter, X509AuthenticationFilter
57+

docs/manual/src/docbook/appendix-namespace.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111
xlink:href="#ns-config">introductory chapter</link> on namespace configuration, as this is
1212
intended as a supplement to the information there. Using a good quality XML editor while editing
1313
a configuration based on the schema is recommended as this will provide contextual information
14-
on which elements and attributes are available as well as comments explaining their purpose. </para>
14+
on which elements and attributes are available as well as comments explaining their purpose. The
15+
namespace is captured in <link xlink:href="http://www.relaxng.org/">RELAX NG</link> Compact
16+
format and later converted into an XSD schema. If you are familiar with this format, you may
17+
wish to examine the <link
18+
xlink:href="https://src.springsource.org/svn/spring-security/trunk/config/src/main/resources/org/springframework/security/config/spring-security-3.0.rnc"
19+
>schema file</link>.</para>
1520
<section xml:id="nsa-http">
1621
<title>Web Application Security - the <literal>&lt;http&gt;</literal> Element</title>
1722
<para> The <literal>&lt;http&gt;</literal> element encapsulates the security configuration for
@@ -488,8 +493,8 @@
488493
configuration as web security, but this can be overridden as explained above <xref
489494
xlink:href="#nsa-access-decision-manager-ref"/>, using the same attribute. </para>
490495
<section>
491-
<title>The <literal>secured-annotations</literal> and
492-
<literal>jsr250-annotations</literal> Attributes</title>
496+
<title>The <literal>secured-annotations</literal> and <literal>jsr250-annotations</literal>
497+
Attributes</title>
493498
<para> Setting these to "true" will enable support for Spring Security's own
494499
<literal>@Secured</literal> annotations and JSR-250 annotations, respectively. They are
495500
both disabled by default. Use of JSR-250 annotations also adds a

docs/manual/src/docbook/introduction.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@
164164
</section>
165165
<section xml:id="history">
166166
<title>History</title>
167-
<para>Spring Security began in late 2003 as "The Acegi Security System for Spring". A
168-
question was posed on the Spring Developers' mailing list asking whether there had been
169-
any consideration given to a Spring-based security implementation. At the time the
170-
Spring community was relatively small (especially by today's size!), and indeed Spring
171-
itself had only existed as a SourceForge project from early 2003. The response to the
172-
question was that it was a worthwhile area, although a lack of time currently prevented
173-
its exploration.</para>
167+
<para>Spring Security began in late 2003 as <quote>The Acegi Security System for
168+
Spring</quote>. A question was posed on the Spring Developers' mailing list asking
169+
whether there had been any consideration given to a Spring-based security
170+
implementation. At the time the Spring community was relatively small (especially
171+
compared with the size today!), and indeed Spring itself had only existed as a
172+
SourceForge project from early 2003. The response to the question was that it was a
173+
worthwhile area, although a lack of time currently prevented its exploration.</para>
174174
<para>With that in mind, a simple security implementation was built and not released. A few
175175
weeks later another member of the Spring community inquired about security, and at the
176176
time this code was offered to them. Several other requests followed, and by January 2004

0 commit comments

Comments
 (0)